/* ammenstute.com – Grundgestaltung
   Warme, ruhige Farben. Bewusst schlicht und gut lesbar. */

:root {
    --bg:        #faf6f1;
    --surface:   #ffffff;
    --ink:       #2f2a24;
    --ink-soft:  #6b6258;
    --line:      #e7ddd1;
    --brand:     #8a5a3b;   /* warmes Braun */
    --brand-dark:#6f462d;
    --accent:    #c98a4b;   /* Karamell */
    --life:      #6f9c5d;   /* sanftes Wiesengrün – emotionaler Akzent */
    --life-dark: #557a45;
    --life-soft: #eef5ea;
    --good:      #4f7d4f;
    --warn:      #b5532f;
    --info:      #3f6f8f;
    --radius:    14px;
    --shadow:    0 6px 24px rgba(60, 45, 30, 0.08);
    --maxw:      1040px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Footer immer am unteren Rand halten, auch bei wenig Inhalt. */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: 1.9rem; margin: 0 0 .4em; }
h2 { font-size: 1.4rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }

p { margin: 0 0 1em; }

/* ---- Kopfzeile ---- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.2rem;
}
.brand-mark { font-size: 1.5rem; color: var(--accent); }
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .95rem;
}
.main-nav a {
    position: relative;
    transition: color .15s ease;
}
.main-nav a:hover { color: var(--life-dark); }
/* feiner grüner Unterstrich beim Überfahren – „da passiert was“ */
.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--life);
    transition: right .18s ease;
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
    background: var(--brand);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-dark); }

/* ---- Seiteninhalt ---- */
/* Wächst und schiebt den Footer nach unten. */
.page { padding: 32px 20px 64px; flex: 1 0 auto; }

/* ---- Karten / Boxen ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.card-narrow { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---- Formulare ---- */
label {
    display: block;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--ink);
}
input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=date], input[type=number],
select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 138, 75, 0.18);
}
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--ink-soft); font-size: .88rem; margin-top: 4px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 200px; }
.check { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; cursor: pointer; }
.check input[type=checkbox], .check input[type=radio] { width: auto; margin-top: 3px; flex: 0 0 auto; }

/* Gut sichtbare Zustimmungs-Box (z. B. „Mir ist bewusst …") – auch auf dem Handy. */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
    font-weight: 400;
    cursor: pointer;
    margin-top: 14px;
    padding: 14px 16px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    background: #faf6f0;
}
.consent-check input[type=checkbox] {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--life);
    cursor: pointer;
}

/* ---- Schaltflächen ---- */
.btn {
    display: inline-block;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; }
.btn-ghost:hover { border-color: var(--life); color: var(--life-dark); }
.btn-danger { background: var(--warn); color: #fff; }
.btn-danger:hover { background: #973f20; color: #fff; }
/* Teilen-Buttons (Weiterempfehlen) in vertrauten Plattformfarben */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1db954; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #1463d2; color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---- Flash-Nachrichten ---- */
.flash {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-weight: 600;
}
.flash-success { background: #eaf3ea; color: var(--good);  border-color: #cfe3cf; }
.flash-error   { background: #fbeae5; color: var(--warn);  border-color: #f3cfc2; }
.flash-info    { background: #e8f0f5; color: var(--info);  border-color: #cfe0ea; }

/* ---- Inserate / Pinnwand ---- */
.board-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.board-tab {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 700;
}
.board-tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px 22px;
    padding-top: 10px;
}
.listing {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* wie ein aufgeklebter Zettel – leicht schief */
    transform: rotate(-1.4deg);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* abwechselnde Neigung, damit es „handgepinnt“ wirkt */
.listing:nth-child(2n) { transform: rotate(1.2deg); }
.listing:nth-child(3n) { transform: rotate(-0.6deg); }
.listing:nth-child(4n) { transform: rotate(1.8deg); }
.listing:nth-child(5n) { transform: rotate(-2deg); }
/* kleines Klebeband oben – Grundform */
.listing::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 70px;
    height: 18px;
    transform: translateX(-50%) rotate(-2.5deg);
    background: rgba(111, 156, 93, 0.22);
    border: 1px solid rgba(111, 156, 93, 0.30);
    border-radius: 2px;
}
/* bunte Klebebänder – jedes Inserat bekommt eine andere Farbe,
   abwechselnd und leicht unterschiedlich geneigt */
.listing:nth-child(5n+1)::before { /* Grün */
    background: rgba(111, 156, 93, 0.22);
    border-color: rgba(111, 156, 93, 0.32);
    transform: translateX(-50%) rotate(-2.5deg);
}
.listing:nth-child(5n+2)::before { /* Karamell */
    background: rgba(201, 138, 75, 0.22);
    border-color: rgba(201, 138, 75, 0.34);
    transform: translateX(-50%) rotate(2deg);
}
.listing:nth-child(5n+3)::before { /* Blau */
    background: rgba(63, 111, 143, 0.20);
    border-color: rgba(63, 111, 143, 0.32);
    transform: translateX(-50%) rotate(-1.5deg);
}
.listing:nth-child(5n+4)::before { /* Rosé/Terrakotta */
    background: rgba(181, 83, 47, 0.18);
    border-color: rgba(181, 83, 47, 0.30);
    transform: translateX(-50%) rotate(3deg);
}
.listing:nth-child(5n+5)::before { /* Flieder */
    background: rgba(138, 110, 160, 0.20);
    border-color: rgba(138, 110, 160, 0.32);
    transform: translateX(-50%) rotate(-3deg);
}
.listing:hover {
    transform: rotate(0) translateY(-3px);
    box-shadow: 0 14px 32px rgba(60, 45, 30, 0.16);
    border-color: var(--life);
    z-index: 2;
}
.listing h3 { margin: 0; font-size: 1.05rem; }
.listing .meta { color: var(--ink-soft); font-size: .85rem; }
.listing .excerpt { color: var(--ink); font-size: .95rem; flex: 1; }
.listing .listing-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 6px;
}

.badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge-biete { background: #eef5ee; color: var(--good); }
.badge-suche { background: #fdf0e6; color: var(--accent); }
.badge-closed { background: #efeae3; color: var(--ink-soft); }

/* ---- Tabellen ---- */
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}
table.data th { color: var(--ink-soft); font-weight: 700; }

/* ---- Statistik-Kacheln ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.stat .num { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat .lbl { color: var(--ink-soft); font-size: .9rem; }

/* ---- Hilfsklassen ---- */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 14px; }
.code-box {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    background: #f3ece3;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    font-size: 1.1rem;
    letter-spacing: .12em;
    text-align: center;
}

/* ---- Kopfzeile Fuß ---- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    margin-top: 40px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
}
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--life-dark); }
.footer-tag { margin: 0; color: var(--brand-dark); font-weight: 700; }
.footer-copy { margin: 0; color: var(--ink-soft); font-size: .85rem; }

/* ---- Startseite (Landing) ---- */
.hero {
    background: linear-gradient(160deg, #fbf3ea 0%, #f3e2d2 100%);
    border-radius: 22px;
    padding: 48px 32px;
    margin-bottom: 28px;
    overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 2.3rem; }
.hero p.lead { font-size: 1.15rem; color: var(--ink); }
.hero-art { text-align: center; }
.hero-art svg { width: 100%; max-width: 320px; height: auto; }
.hero-art img.hero-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    /* sitzt als freigestelltes Motiv weich auf dem Hero-Verlauf */
    filter: drop-shadow(0 10px 18px rgba(60, 45, 30, 0.16));
}

details.more {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 20px;
    box-shadow: var(--shadow);
}
details.more > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--brand);
    padding: 14px 0;
    list-style: none;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; color: var(--life); }
details.more[open] > summary::before { content: "▾ "; }

@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    h1 { font-size: 1.6rem; }
}

/* Wer animationsarm surft, bekommt gerade Kacheln ohne Wackeln. */
@media (prefers-reduced-motion: reduce) {
    .listing,
    .listing:nth-child(2n),
    .listing:nth-child(3n),
    .listing:nth-child(4n),
    .listing:nth-child(5n) {
        transform: none;
        transition: none;
    }
}

/* ---- QR-Code bei der 2FA-Einrichtung ---- */
.qr-box {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.qr-box svg { display: block; width: 260px; height: 260px; max-width: 100%; image-rendering: pixelated; }

/* ---- Cookie-Hinweis ---- */
.cookie-note {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(60, 45, 30, 0.18);
}
.cookie-note.is-hidden { display: none; }
.cookie-note-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 20px;
}
.cookie-note-text {
    margin: 0;
    flex: 1 1 280px;
    font-size: .92rem;
    color: var(--ink);
}
.cookie-note .btn { flex: 0 0 auto; }

/* ---- Navigation: Burgermenü (mobil) ---- */
.nav-toggle { display: none; }   /* unsichtbarer Zustands-Schalter */
.nav-burger { display: none; }   /* am Desktop kein Burger nötig */

@media (max-width: 760px) {
    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 46px;
        height: 42px;
        padding: 9px 10px;
        cursor: pointer;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
    }
    .nav-burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--brand-dark);
        border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    /* Navigation eingeklappt – erst per Burger sichtbar */
    .main-nav {
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px 0 2px;
        display: none;
    }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .main-nav a {
        padding: 12px 10px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .main-nav a:hover { background: var(--life-soft); color: var(--life-dark); }
    .main-nav a:not(.nav-cta)::after { display: none; }  /* Unterstrich passt im Stapel nicht */
    .nav-cta { text-align: center; }
    /* Burger wird beim Öffnen zum Kreuz */
    .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
