/* Herzraum — heller, warmer Look für den öffentlichen Forumsbereich. */

:root{
    --bg:         #FBF7F5;
    --surface:    #FFFFFF;
    --line:       #EFE4E0;
    --ink:        #2E2825;
    --muted:      #8C8078;
    --coral:      #E8776B;
    --coral-deep: #D5604F;
    --coral-soft: #FBE7E3;
    --teal:       #5C9A96;
    --teal-deep:  #3F7975;
    --teal-soft:  #E4F1EF;
    --sun:        #E3A94C;
    --sun-soft:   #FBF0DD;
    --danger:     #C1483A;
    --danger-soft:#FBE7E3;
    --radius:     20px;
    --radius-sm:  12px;
    --shadow:     0 16px 40px -22px rgba(60,40,30,0.18);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:"Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing:antialiased;
    font-size:15.5px;
    line-height:1.55;
}

h1,h2,h3,.display{
    font-family:"Fraunces", Georgia, serif;
    font-weight:550;
    letter-spacing:-0.01em;
    margin:0;
}

a{ color:inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
    outline:2px solid var(--coral-deep);
    outline-offset:3px;
}

.wrap{ max-width:1080px; margin:0 auto; padding:0 28px; }
.wrap-narrow{ max-width:640px; margin:0 auto; padding:0 28px; }

/* ---------- Nav ---------- */
nav.top{ padding:24px 0; border-bottom:1px solid var(--line); margin-bottom:44px; position:relative; }
nav.top .wrap{ display:flex; align-items:center; gap:20px; }
.logo{
    font-family:"Fraunces", serif;
    font-size:21px; font-weight:650;
    display:flex; align-items:center; gap:9px;
    text-decoration:none; color:var(--ink);
    flex:none;
}
.logo .mark{ width:11px; height:11px; border-radius:50%; background:var(--coral); box-shadow:0 0 0 5px var(--coral-soft); }
.nav-links{ display:flex; align-items:center; gap:26px; font-size:14.5px; color:var(--muted); flex:none; }
.nav-links a{ text-decoration:none; transition:color .15s ease; }
.nav-links a:hover{ color:var(--ink); }
.nav-right{ display:flex; align-items:center; gap:12px; flex:none; }
.hello{ font-size:14px; color:var(--muted); }
.hello strong{ color:var(--ink); font-weight:600; }

.nav-search{ flex:1; min-width:0; max-width:280px; }
.nav-search input{
    width:100%; margin:0; padding:8px 14px;
    border-radius:999px; border:1px solid var(--line);
    background:var(--bg); font-size:13.5px;
}
.nav-search input:focus{ background:var(--surface); }

/* Hamburger: unsichtbar/inaktiv auf Desktop */
.nav-toggle-checkbox{ display:none; }
.nav-toggle-label{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    width:34px; height:34px;
    cursor:pointer;
    position:relative;
    flex:none;
}
.nav-toggle-label span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; }
.nav-toggle-dot{ position:absolute; top:-4px; right:-4px; }
.nav-mobile{ display:none; }

.notif-bell{ position:relative; }
.notif-dot{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:16px;
    height:16px;
    padding:0 4px;
    margin-left:6px;
    border-radius:999px;
    background:var(--danger);
    color:#fff;
    font-size:10.5px;
    font-weight:700;
    line-height:1;
    vertical-align:middle;
}

.btn{
    font-family:"Work Sans", sans-serif;
    font-size:14px; font-weight:600;
    padding:11px 22px;
    border-radius:999px;
    border:1px solid transparent;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    background:none;
}
.btn-primary{ background:var(--coral); color:#fff; box-shadow:0 10px 22px -10px rgba(232,119,107,0.65); }
.btn-primary:hover{ background:var(--coral-deep); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--muted); }
.btn-secondary{ background:var(--surface); color:var(--ink); border-color:var(--line); }
.btn-secondary:hover{ background:var(--bg); }
.btn-danger{ background:var(--danger); color:#fff; }
.btn-danger:hover{ background:#a53c30; }
.btn-sm{ padding:7px 15px; font-size:13px; }
.btn[disabled]{ opacity:.5; cursor:default; }

/* ---------- Hero (nur Startseite) ---------- */
.hero{ position:relative; padding:20px 0 70px; text-align:center; overflow:hidden; }
.blob{
    position:absolute; top:-260px; left:50%;
    width:760px; height:760px;
    transform:translateX(-50%);
    background:radial-gradient(circle, rgba(232,119,107,0.16) 0%, rgba(227,169,76,0.10) 42%, rgba(232,119,107,0) 70%);
    pointer-events:none;
    animation:breathe 8s ease-in-out infinite;
}
@keyframes breathe{ 0%,100%{ opacity:.8; transform:translateX(-50%) scale(1); } 50%{ opacity:1; transform:translateX(-50%) scale(1.05); } }
@media (prefers-reduced-motion: reduce){ .blob{ animation:none; } }

.eyebrow{
    position:relative; display:inline-flex; align-items:center; gap:8px;
    font-size:13px; font-weight:600; color:var(--teal);
    background:var(--teal-soft); padding:7px 16px 7px 12px; border-radius:999px; margin-bottom:26px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--teal); }

.hero h1{ position:relative; font-size:50px; line-height:1.1; max-width:700px; margin:0 auto; }
.hero h1 em{ font-style:italic; color:var(--coral-deep); }
.hero p.sub{ position:relative; max-width:480px; margin:20px auto 0; color:var(--muted); font-size:16.5px; }
.hero .cta{ position:relative; margin-top:32px; }

.welcome-hero{ padding-top:12px; }
.welcome-heart{
    position:relative;
    width:64px; height:64px;
    margin:0 auto 22px;
    display:flex; align-items:center; justify-content:center;
    font-size:30px;
    color:#fff;
    background:linear-gradient(135deg, var(--coral), var(--coral-deep));
    border-radius:50%;
    box-shadow:0 14px 30px -10px rgba(213,96,79,0.55);
    animation:welcome-pop .7s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes welcome-pop{
    0%{ transform:scale(0); opacity:0; }
    60%{ transform:scale(1.15); opacity:1; }
    100%{ transform:scale(1); opacity:1; }
}
@media (prefers-reduced-motion: reduce){
    .welcome-heart{ animation:none; }
}

.stats{ position:relative; margin-top:26px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap; font-size:13.5px; color:var(--muted); }
.stats span:not(:last-child)::after{ content:"·"; margin-left:10px; color:#DDD0CB; }

.divider{ display:block; width:100%; height:34px; margin:6px 0 54px; }

/* ---------- Cards / Sections ---------- */
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:22px; gap:12px; }
.section-head h2{ font-size:24px; }
.section-head .hint-link{ font-size:13.5px; color:var(--teal); text-decoration:none; font-weight:600; white-space:nowrap; }

.category-block{ margin-bottom:38px; }
.category-block h2{ font-size:19px; margin-bottom:16px; }

.topics{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap:16px; }
.topic-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
    padding:24px 22px; text-decoration:none; color:var(--ink);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display:flex; flex-direction:column; gap:12px; min-height:150px;
}
.topic-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:transparent; }
.topic-card .ico{ width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.ico-0{ background:var(--coral-soft); color:var(--coral-deep); }
.ico-1{ background:var(--teal-soft); color:var(--teal-deep); }
.ico-2{ background:var(--sun-soft); color:#B5822A; }
.ico-3{ background:#EDEBFA; color:#7A72C9; }
.topic-card h3{ font-size:16.5px; font-weight:550; }
.topic-card p{ margin:0; font-size:13.5px; color:var(--muted); }
.topic-card .card-meta{ margin-top:auto; font-size:12px; color:var(--muted); display:flex; gap:10px; }
.topic-card .last-activity{
    padding-top:10px;
    margin-top:2px;
    border-top:1px dashed var(--line);
    font-size:12px;
    color:var(--muted);
    line-height:1.5;
}
.topic-card .last-activity strong{ color:var(--ink); font-weight:600; }
.topic-card .last-activity.muted{ font-style:italic; }

.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px 28px; margin-bottom:24px; }
.card h2{ font-size:19px; margin-bottom:4px; }
.card p.hint{ color:var(--muted); font-size:13.5px; margin:4px 0 18px; }

/* ---------- Feed / Post-Listen (Startseite, Themenliste) ---------- */
.feed{ display:flex; flex-direction:column; gap:1px; background:var(--line); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.post-row{ background:var(--surface); padding:20px 24px; display:flex; gap:16px; text-decoration:none; color:var(--ink); transition:background .15s ease; align-items:flex-start; }
.post-row:hover{ background:#FFFCFB; }
.avatar{ flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:"Fraunces", serif; font-size:14px; font-weight:650; color:#fff; }
.av-0{ background:linear-gradient(135deg,#F0968C,var(--coral-deep)); }
.av-1{ background:linear-gradient(135deg,#8FC0BB,var(--teal)); }
.av-2{ background:linear-gradient(135deg,#EFC372,#C9932E); }
.av-3{ background:linear-gradient(135deg,#B7AEEA,#7A72C9); }

.post-row .body{ flex:1; min-width:0; }
.post-row .meta{ display:flex; align-items:center; gap:10px; margin-bottom:5px; font-size:12.5px; color:var(--muted); flex-wrap:wrap; }
.tag{ font-size:11.5px; font-weight:650; padding:3px 11px; border-radius:999px; background:var(--coral-soft); color:var(--coral-deep); text-decoration:none; }
.post-row h3{ font-size:16px; font-weight:550; margin-bottom:3px; }
.post-row p{ margin:0; font-size:13.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-row .replies{ flex:none; align-self:center; font-size:12.5px; color:var(--muted); text-align:right; min-width:62px; }
.post-row .replies b{ display:block; color:var(--ink); font-size:15px; font-weight:650; }
.post-row.pinned{ background:var(--sun-soft); }
.post-row .flags{ font-size:13px; margin-right:2px; }

/* ---------- Thread-Detailansicht (einzelne Beiträge) ---------- */
.post-detail{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; margin-bottom:16px; display:flex; gap:18px; }
.post-detail .author-col{ flex:none; width:130px; text-align:center; }
.post-detail .author-col .avatar{ width:52px; height:52px; font-size:18px; margin:0 auto 8px; }
.post-detail .author-name{ font-weight:600; font-size:14px; }
.post-detail .author-col small{ display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.post-detail .content{ flex:1; min-width:0; }
.post-detail .post-meta{ font-size:12.5px; color:var(--muted); margin-bottom:10px; }
.post-detail .post-body{ font-size:15px; line-height:1.7; }
.post-detail .post-body p{ margin:0 0 12px; }
.post-detail .signature{ margin-top:14px; padding-top:12px; border-top:1px dashed var(--line); font-size:13px; color:var(--muted); }
.post-detail .post-actions{ margin-top:12px; font-size:12.5px; }
.post-detail .post-actions a{ color:var(--teal-deep); text-decoration:none; font-weight:600; }
.post-detail .post-actions a.danger{ color:var(--danger); }

blockquote.quote{
    margin:10px 0;
    padding:10px 14px;
    background:var(--bg);
    border-left:3px solid var(--coral);
    border-radius:6px;
    font-size:13.5px;
    color:var(--muted);
}

.like-btn{
    display:inline-flex;
    align-items:center;
    gap:5px;
    background:none;
    border:1px solid var(--line);
    border-radius:999px;
    padding:5px 13px;
    font-size:13px;
    font-weight:600;
    color:var(--muted);
    cursor:pointer;
    font-family:inherit;
    transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.like-btn:hover{ border-color:var(--coral); color:var(--coral-deep); }
.like-btn.liked{ background:var(--coral-soft); border-color:var(--coral); color:var(--coral-deep); }

.badge{ display:inline-block; padding:2px 10px; border-radius:999px; font-size:11.5px; font-weight:650; }
.badge-admin{ background:var(--coral-soft); color:var(--coral-deep); }
.badge-moderator{ background:var(--teal-soft); color:var(--teal-deep); }
.badge-member{ background:var(--bg); color:var(--muted); }

/* ---------- Formulare (Login, Registrieren, Themen erstellen, Antworten) ---------- */
.auth-card{ max-width:420px; margin:20px auto 60px; }
label{ display:block; margin-bottom:16px; font-size:13.5px; font-weight:600; color:var(--ink); }
label .field-hint{ font-weight:400; color:var(--muted); font-size:12.5px; display:block; margin-top:2px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], textarea, select{
    font-family:inherit; font-size:14.5px; padding:10px 13px;
    border:1px solid var(--line); border-radius:10px;
    background:var(--surface); color:var(--ink);
    width:100%; margin-top:6px;
}
textarea{ resize:vertical; min-height:120px; font-family:"Work Sans", sans-serif; }
input:focus, textarea:focus, select:focus{ outline:none; border-color:var(--coral); box-shadow:0 0 0 3px var(--coral-soft); }
input[type="checkbox"]{ width:auto; margin:0 6px 0 0; }

.composer{
    background:var(--surface); border:1px solid var(--line); border-radius:999px;
    padding:8px 8px 8px 26px; display:flex; align-items:center; gap:10px; box-shadow:var(--shadow);
    max-width:580px; margin:0 auto;
}
.composer input{ flex:1; background:transparent; border:none; padding:11px 0; margin:0; box-shadow:none; }
.composer input:focus{ box-shadow:none; }

.reply-box textarea{ min-height:130px; }

/* ---------- Meldungen ---------- */
.error{ background:var(--danger-soft); color:var(--danger); padding:12px 16px; border-radius:var(--radius-sm); font-size:13.5px; margin-bottom:18px; }
.error ul{ margin:0; padding-left:18px; }
.ok{ background:var(--teal-soft); color:var(--teal-deep); padding:12px 16px; border-radius:var(--radius-sm); font-size:13.5px; margin-bottom:18px; display:inline-block; }

/* ---------- Pagination ---------- */
.pagination{ display:flex; align-items:center; justify-content:center; gap:14px; margin:28px 0; font-size:13.5px; color:var(--muted); }
.pagination a{ color:var(--teal-deep); text-decoration:none; font-weight:600; }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--line); padding:34px 0 50px; margin-top:20px; }
footer .wrap{ display:flex; flex-direction:column; gap:14px; }
.care-note{ font-size:13px; color:var(--muted); max-width:560px; line-height:1.6; }
.care-note strong{ color:var(--ink); font-weight:650; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
footer .fmeta{ font-size:12.5px; color:var(--muted); }
.footer-links{ display:flex; gap:18px; flex-wrap:wrap; }
.footer-links a{ font-size:12.5px; color:var(--muted); text-decoration:none; }
.footer-links a:hover{ color:var(--ink); text-decoration:underline; }
.footer-credit{ text-align:center; font-size:12px; color:var(--muted); padding-top:6px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
    .hero h1{ font-size:36px; }
    .post-detail{ flex-direction:column; }
    .post-detail .author-col{ width:auto; display:flex; align-items:center; gap:10px; text-align:left; }
    .post-detail .author-col .avatar{ margin:0; }

    /* Nav: Desktop-Elemente ausblenden, Hamburger + mobiles Panel zeigen */
    .nav-links, .nav-right, nav.top .wrap > .nav-search{ display:none; }
    .nav-toggle-label{ display:flex; margin-left:auto; }
    nav.top .wrap{ flex-wrap:nowrap; }

    .nav-mobile{
        display:none;
        flex-direction:column;
        gap:2px;
        padding:16px 20px 20px;
        border-top:1px solid var(--line);
        margin-top:18px;
    }
    .nav-toggle-checkbox:checked ~ .nav-mobile{ display:flex; }

    .nav-mobile .nav-search{ max-width:none; margin-bottom:10px; }
    .nav-mobile a{
        display:block;
        padding:12px 4px;
        border-bottom:1px solid var(--line);
        text-decoration:none;
        color:var(--ink);
        font-size:15px;
    }
    .nav-mobile a:last-child{ border-bottom:none; }
}
@media (max-width: 560px){
    .composer{ flex-direction:column; align-items:stretch; border-radius:22px; padding:16px; }
    .post-row{ flex-wrap:wrap; }
    .post-row .replies{ text-align:left; margin-left:56px; }
}
