/*
Theme Name: Christiane Journal
Theme URI: https://example.local/
Author: Christiane
Description: Schlankes, responsives WordPress-Theme für Blog, Journal und Post-Formats mit Reaktionen und Kommentaren.
Version: 1.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: christiane-journal
*/

:root{
  --cj-max:650px;
  --cj-bg:#fff;
  --cj-fg:#111;
  --cj-muted:#777;
  --cj-soft:#f5f5f5;
  --cj-border:#e4e4e4;
  --cj-radius:16px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  padding:clamp(1rem,3vw,2rem);
  background:var(--cj-bg);
  color:var(--cj-fg);
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.75;
  letter-spacing:0;
}
img{max-width:100%;height:auto}
a{color:inherit;text-decoration-thickness:.08em;text-underline-offset:.18em}
button,input,textarea{font:inherit}
.site{
  max-width:var(--cj-max);
  margin-inline:auto;
}
.site-header{
  padding:1rem 0 5rem;
  text-align:center;
}
.site-branding{
  display:block;
  text-align:center;
}
.custom-logo{
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
  margin-bottom:1rem;
}
.site-title{
  font-size:clamp(2.5rem,4vw,4rem);
  line-height:.9;
  font-weight:850;
  letter-spacing:0;
  margin:1rem 0 0;
}
.site-title a{text-decoration:none}
.site-description{
  margin:1rem 0 0;
  color:var(--cj-muted);
  font-size:.95rem;
  letter-spacing:0;
}
.site-nav{
  text-align:center;
  margin-bottom:2rem;
}
.menu-toggle{
  display:none;
}
.primary-menu{
  list-style:none;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.35rem 1rem;
  padding:0;
  margin:0;
}
.primary-menu a{
  display:inline-block;
  padding:.25rem 0;
  color:var(--cj-muted);
  text-decoration:none;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:0;
}
.primary-menu .current-menu-item>a,
.primary-menu a:hover{color:var(--cj-fg)}

.loop{display:grid;gap:4.5rem}
.entry{
  padding:0;
  border:0;
}
.entry-header{margin-bottom:.75rem}
.entry-title{
  font-size:clamp(1.75rem,3vw,2.5rem);
  line-height:1.05;
  letter-spacing:0;
  font-weight:600;
  margin:0 0 .5rem;
}
.entry-title a{text-decoration:none}
.entry-meta{
  color:var(--cj-muted);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:0;
  margin:.25rem 0 .75rem;
}
.entry-content{
  font-weight:400;
}
.entry-content > *:first-child{margin-top:0}
.entry-content > *:last-child{margin-bottom:0}
.entry-content p{margin:0 0 1rem}
.entry-content h2,.entry-content h3{line-height:1.2;margin:2rem 0 .75rem}

.entry-content h2{
  font-weight:400;
}

.entry-content ul,.entry-content ol{padding-left:1.3rem}
.entry-content blockquote{
  margin:1.5rem 0;
  padding-left:1rem;
  border-left:4px solid var(--cj-border);
  font-size:1.25rem;
}
.format-aside .entry-content,
.format-link .entry-content{
  font-size:1.05rem;
}
.format-quote .entry-content{
  font-size:clamp(1.35rem,4vw,1.9rem);
  line-height:1.45;
}
.format-image .entry-media img,
.image-post img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:var(--cj-radius);
  display:block;
  background:var(--cj-soft);
}

.entry-media img,
.entry-content img{
  border-radius:var(--cj-radius);
}

.wp-caption-text,
.entry-caption{
  color:var(--cj-muted);
  font-size:.92rem;
  margin:.5rem 0 0;
}
.post-actions{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:.35rem;
  margin-top:1rem;
}
.post-actions button,
.post-actions a,
.post-actions .reaction-static{
  min-height:36px;
  border:1px solid var(--cj-border);
  border-radius:10px;
  background:transparent;
  color:var(--cj-fg);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.3rem;
  text-decoration:none;
  padding:.1rem;
  cursor:pointer;
  font-size:.85rem;
  opacity:.8;
}
.post-actions button:hover,
.post-actions a:hover{
  background:var(--cj-soft);
  opacity:1;
  transform:translateY(-1px);
}

.post-actions button,
.post-actions a{
  transition:background .15s ease, opacity .15s ease, transform .15s ease;
}

.post-actions button{
  cursor:help;
}
.post-actions button.is-selected{
  background:var(--cj-soft);
  opacity:1;
  border-color:var(--cj-muted);
}
.screen-reader-text{
  border:0;
  clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute;
  width:1px;
}
.pagination{
  padding:2rem 0 1rem;
}
.nav-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.4rem;
}
.page-numbers{
  border:1px solid var(--cj-border);
  border-radius:10px;
  min-width:2.2rem;
  min-height:2.2rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.2rem .7rem;
  text-decoration:none;
}
.page-numbers.current{
  background:var(--cj-fg);
  color:var(--cj-bg);
}
.post-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
}
.post-tags a{
  color:var(--cj-muted);
  background:none;
  border-radius:0;
  padding:0;
  text-decoration:none;
  font-size:.86rem;
}
.post-tags a:before{content:"#"}
.author-box{
  margin:2rem 0;
  padding:1rem;
  border:1px solid var(--cj-border);
  border-radius:var(--cj-radius);
  background:var(--cj-soft);
}
.author-box-title{margin:0 0 .3rem}
.search-form{
  display:flex;
  gap:.5rem;
  margin:1rem 0;
}
.search-field{
  width:100%;
  border:1px solid var(--cj-border);
  border-radius:10px;
  padding:.65rem .9rem;
  background:var(--cj-bg);
  color:var(--cj-fg);
}
.search-submit{
  border:1px solid var(--cj-border);
  border-radius:10px;
  background:var(--cj-fg);
  color:var(--cj-bg);
  padding:.65rem 1rem;
}
.comments-area{
  margin-top:2.5rem;
}
.comment-list{
  list-style:none;
  padding:0;
}
.comment-body{
  margin:1rem 0;
  padding:1rem;
  border:1px solid var(--cj-border);
  border-radius:var(--cj-radius);
}
.comment-meta{font-size:.9rem;color:var(--cj-muted)}

.comment-body{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:.75rem 1rem;
  align-items:start;
}

.comment-author{
  grid-column:1 / 2;
  grid-row:1 / 3;
}

.comment-author .avatar{
  border-radius:50%;
  display:block;
}

.comment-author .fn,
.comment-author .says{
  display:none;
}

.comment-meta{
  grid-column:2 / 3;
  grid-row:1 / 2;
}

.comment-meta a{
  color:var(--cj-muted);
  text-decoration:none;
}

.comment-content,
.comment-body > p,
.reply{
  grid-column:2 / 3;
}

.comment-content p,
.comment-body > p{
  margin-top:.25rem;
}



.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"]{
  width:100%;
  border:1px solid var(--cj-border);
  border-radius:12px;
  padding:.7rem;
  background:var(--cj-bg);
  color:var(--cj-fg);
}
.comment-form input[type="submit"]{
  border:1px solid var(--cj-border);
  border-radius:10px;
  padding:.65rem 1rem;
  background:var(--cj-fg);
  color:var(--cj-bg);
}
.site-footer{
  padding:3rem 0 1rem;
  color:var(--cj-muted);
  font-size:.92rem;
  text-align:center;
}
.site-footer .primary-menu{
  margin-bottom:1rem;
}
@media(max-width:640px){
  body{font-size:16px}
  .menu-toggle{
    display:inline-flex;
    margin-bottom:1rem;
    border:1px solid var(--cj-border);
    border-radius:10px;
    background:transparent;
    color:var(--cj-fg);
    padding:.45rem .8rem;
  }
  .primary-menu{display:none}
  .primary-menu.is-open{display:flex}
  .post-actions{grid-template-columns:1fr 1fr}
}
@media(prefers-color-scheme:dark){
  :root{
    --cj-bg:#111;
    --cj-fg:#f1f1f1;
    --cj-muted:#aaa;
    --cj-soft:#1c1c1c;
    --cj-border:#333;
  }
}


/* Comments Feinschliff */
.comments-area ul,
.comments-area ol,
.comments-area li,
.comment-list,
.comment-list .children{
  list-style:none;
  margin-left:0;
  padding-left:0;
}

.comment-list .children{
  margin-top:1rem;
  margin-left:1.5rem;
}

.comment-body{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:.25rem 1rem;
  align-items:start;
}

.comment-author{
  grid-column:1 / 2;
  grid-row:1 / 3;
}

.comment-author .avatar{
  border-radius:50%;
  display:block;
}

.comment-meta{
  grid-column:2 / 3;
  grid-row:1 / 2;
  font-size:.9rem;
  color:var(--cj-muted);
  line-height:1.35;
}

.comment-author-name{
  display:block;
  font-weight:600;
  color:var(--cj-fg);
  line-height:1.25;
  margin-bottom:.1rem;
}

.comment-meta a{
  color:var(--cj-muted);
  text-decoration:none;
}

.comment-content{
  grid-column:2 / 3;
  grid-row:2 / 3;
}

.comment-content p{
  margin:.35rem 0 0;
}

.reply{
  grid-column:2 / 3;
  grid-row:3 / 4;
  margin-top:.5rem;
}
