/* ════════════════════════════════════════════════════════════════════
   Pforte.de — Gemeinsames Stylesheet
   ════════════════════════════════════════════════════════════════════
   © Pforte.de — kontakt@pforte.de — https://www.pforte.de

   INHALTSVERZEICHNIS
   ────────────────────────────────────────────────────────────────────
   §1   DESIGN-TOKENS (CSS-Variablen)
   §2   GLOBAL / RESET
   §3   LAYOUT (.frame, .working)
   §4   NAVIGATION (.nav-top, .brand)
   §5   HERO
   §6   BUTTONS (.btn)
   §7   CARDS — STARTSEITE (.card-l, .card-s)
   §8   FORM-FELDER (.field, input, select, textarea)
   §9   CHOICES & CHECKBOXEN (.choice, .check)
   §10  PROGRESS-BAR (.progress, .pip)
   §11  STEP-HEADER (.step-head, .step-num)
   §12  PREVIEW / DOKUMENT (.preview-wrap, .doc)
   §13  REVIEW (.review-list, .review-item)
   §14  PILLS (.pill)
   §15  DIALOG (.dlg)
   §16  FOOTER / COLOPHON
   §17  WASSERZEICHEN & SCHUTZ
   §18  RESPONSIVE-BREAKPOINTS
   §19  PRINT-STYLES
   ════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════
   §1  DESIGN-TOKENS — CSS-Variablen
   ════════════════════════════════════════════════════════════════════ */
:root
{
    /* Hintergrund & Flächen */
    --bg:           #FAFAF8;
    --surface:      #FFFFFF;
    --surface-2:    #F1F1ED;

    /* Schrift-Farben */
    --ink:          #000000;
    --ink-2:        #1A1A1B;
    --muted:        #3F3F45;
    --muted-2:      #6B6B70;

    /* Linien & Trenner */
    --line:         #BFBFB8;
    --line-2:       #D9D9D3;

    /* Akzentfarben (salbei-grün) */
    --accent:       oklch(0.38 0.05 160);
    --accent-soft:  oklch(0.95 0.015 160);
    --accent-line:  oklch(0.86 0.02 160);

    /* Status-Farben */
    --danger:       #8A1F1F;
    --danger-soft:  #FBEEEE;
    --warn-bg:      #FFF6E0;
    --warn-line:    #E8C977;

    /* Schriftarten */
    --display:      "Inter Tight", system-ui, sans-serif;
    --sans:         "Inter", system-ui, sans-serif;
    --mono:         "IBM Plex Mono", ui-monospace, monospace;

    /* Radius */
    --radius:       14px;
    --radius-sm:    10px;

    /* Spacing & Layout */
    --r:   12px;
    --mw:  1400px;
    --pad: 24px;
    --sh:  0 2px 12px rgba(0, 0, 0, .06);
    --shh: 0 8px 32px rgba(0, 0, 0, .12);

}


/* ════════════════════════════════════════════════════════════════════
   §2  GLOBAL / RESET
   ════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

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

body
{
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 19px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.quiet { color: var(--muted); }


/* ════════════════════════════════════════════════════════════════════
   §3  LAYOUT — Container & Grids
   ════════════════════════════════════════════════════════════════════ */
.frame
{
    /*max-width: 1300px; */
    max-width: var(--mw);
    padding: 0 24px;
    margin: 0 auto;
}

.working
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 40px;
    padding-top: 25px;
    /* padding: 40px 0 80px; */
    align-items: start;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr;     gap: 22px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }


/* ════════════════════════════════════════════════════════════════════
   §4  NAVIGATION — Top-Bar
   ════════════════════════════════════════════════════════════════════ */
.nav-top
{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 248, 0.97);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.nav-tools { display: flex; gap: 14px; align-items: center; }


/* Brand */
.brand
{
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}

.brand-dot
{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.brand-tld
{
    color: var(--muted-2);
    font-weight: 500;
}


/* Save-Tag (Status-Indikator) */
.save-tag
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 500;
}

.save-dot
{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.save-tag.saving .save-dot
{
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse
{
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}


/* ════════════════════════════════════════════════════════════════════
   §5  HERO
   ════════════════════════════════════════════════════════════════════ */
.hero
{
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--line);
}

.hero h1
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
}

.hero h1 .accent { color: var(--accent); }

.hero .lede
{
    font-size: 19px;
    color: var(--muted);
    margin: 8px 0 0;
    /* max-width: 60ch; */
    line-height: 1.55;
}

.hero .label
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 22px;
}


/* ─── Trust-Zeile unter Hero-Headline ────────────────────────── */
.hero-trust {
    margin: 0.8rem 0 1.5rem 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.hero-trust-icon {
    color: oklch(0.38 0.05 160);   /* gleiche Farbe wie .accent */
    font-weight: 700;
    margin-right: 0.2rem;
}

@media (max-width: 600px) {
    .hero-trust {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}




/* Hero — Großvariante (für Startseite) */
.hero--xl
{
    padding: 80px 0 56px;
}

.hero--xl h1
{
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 0 0 22px;
}


/* Breadcrumb */
.breadcrumb
{
    font-size: 15px;
    color: var(--muted-2);
    margin-bottom: 20px;
}

.breadcrumb a
{
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover
{
    color: var(--accent);
    border-bottom-color: var(--accent);
}


/* Desk-Note (Hinweis-Banner unter Hero) */
.desk-note
{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--ink-2);
    line-height: 1.45;
    margin-top: 22px;
    margin-bottom: 25px;
}

.desk-note .icon
{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E8C977;
    color: #4A3300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    flex: 0 0 auto;
    font-size: 18px;
}


/* Section-Header (für Inhalts-Abschnitte) */
.section { padding: 64px 0 32px; }

.section-head
{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.section-head h2
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.025em;
    margin: 0;
}

.section-head .label
{
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}


/* ════════════════════════════════════════════════════════════════════
   §6  BUTTONS
   ════════════════════════════════════════════════════════════════════ */
.btn
{
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
    padding: 14px 26px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.btn:hover
{
    background: var(--ink-2);
    border-color: var(--ink-2);
}

.btn:disabled
{
    background: var(--surface-2);
    color: var(--muted-2);
    border-color: var(--line);
    cursor: not-allowed;
}


/* Button-Varianten */
.btn.ghost
{
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
.btn.ghost:hover
{
    background: var(--surface-2);
    border-color: var(--ink);
}

.btn.accent
{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn.accent:hover { filter: brightness(0.95); }

.btn.danger
{
    background: var(--surface);
    color: var(--danger);
    border-color: var(--danger);
}
.btn.danger:hover { background: var(--danger-soft); }

.btn.large
{
    padding: 16px 30px;
    font-size: 18px;
}



.hero-blank-cta
{
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-blank-cta p
{
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}




/* Wizard-Navigation (Zurück / Weiter) */
.nav
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    gap: 16px;
}


/* ════════════════════════════════════════════════════════════════════
   §7  CARDS — Startseite
   ════════════════════════════════════════════════════════════════════ */

/* Card-Grid (groß) */
.grid-large
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* Karte (groß) */
.card-l
{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.card-l:hover
{
    border-color: var(--accent);
    box-shadow:
        0 1px 2px rgba(15, 15, 16, 0.04),
        0 16px 40px -16px rgba(15, 15, 16, 0.12);
    transform: translateY(-2px);
}

.card-l .num
{
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 14px;
    font-weight: 500;
}

.card-l .title
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.card-l .desc
{
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.card-l .foot
{
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.card-l .arrow
{
    color: var(--accent);
    font-family: var(--display);
    font-size: 16px;
    transition: transform .2s ease;
}

.card-l:hover .arrow { transform: translateX(4px); }

.card-l .badge
{
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 500;
}


/* Karten-Modifier */
.card-l.featured
{
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 60%);
}
.card-l.featured .badge { color: var(--accent); }

.card-l.coming { opacity: 0.62; }
.card-l.coming:hover
{
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    border-color: var(--line);
}


/* Card-Grid (klein) */
.grid-small
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


/* Karte (klein) */
.card-s
{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .15s ease;
}

.card-s:hover
{
    border-color: var(--accent);
    background: var(--accent-soft);
}

.card-s .glyph
{
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
    flex: 0 0 auto;
    background: var(--surface-2);
}

.card-s:hover .glyph
{
    border-color: var(--accent);
    background: var(--surface);
}

.card-s .title
{
    font-family: var(--display);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card-s .desc
{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
}


/* Generator-Card (Wizard-Container) */
.card
{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}


/* ════════════════════════════════════════════════════════════════════
   §8  FORM-FELDER
   ════════════════════════════════════════════════════════════════════ */
.field { margin-bottom: 26px; }

.field label
{
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.field .help
{
    font-size: 15.5px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.5;
}


/* Inputs, Selects, Textareas */
.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select
{
    width: 100%;
    font-family: var(--sans);
    font-size: 19px;
    padding: 14px 16px;
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    line-height: 1.4;
}

.field input:focus,
.field textarea:focus,
.field select:focus
{
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder
{
    color: var(--muted-2);
}

.field textarea
{
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}


/* Custom Select-Pfeil */
.field select
{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 1.5l6 6 6-6' stroke='%231A1A1B' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}


/* ════════════════════════════════════════════════════════════════════
   §9  CHOICES & CHECKBOXEN — Auswahl-Karten im Wizard
   ════════════════════════════════════════════════════════════════════ */

/* Choice-Cards (Single-Select) */
.choices { display: grid; gap: 12px; }

.choice
{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
}

.choice:hover
{
    border-color: var(--accent);
    background: var(--accent-soft);
}

.choice.selected
{
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1.5px var(--accent);
}


/* Choice — Marker (Radio-Indicator) */
.choice .marker
{
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 2px solid var(--line);
    border-radius: 50%;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

.choice.selected .marker
{
    border-color: var(--accent);
    background: var(--accent);
}

.choice.selected .marker::after
{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}


/* Choice — Body */
.choice .body { flex: 1; }

.choice .body .h
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.choice .body .d
{
    font-size: 16px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}


/* Check-Cards (Multi-Select) */
.check
{
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all .15s ease;
    margin-bottom: 10px;
}

.check:hover { border-color: var(--accent); }

.check.on
{
    border-color: var(--accent);
    background: var(--accent-soft);
}


/* Check — Box */
.check .box
{
    width: 24px;
    height: 24px;
    border: 2px solid var(--line);
    border-radius: 6px;
    flex: 0 0 auto;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .15s ease;
}

.check.on .box
{
    border-color: var(--accent);
    background: var(--accent);
}

.check.on .box::after
{
    content: "✓";
    font-size: 16px;
    font-weight: 700;
}


/* Check — Body */
.check .body .h
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 18px;
}

.check .body .d
{
    font-size: 15.5px;
    color: var(--muted);
    margin-top: 4px;
}


/* ════════════════════════════════════════════════════════════════════
   §10  PROGRESS — Fortschrittsbalken
   ════════════════════════════════════════════════════════════════════ */
.progress
{
    margin: 0 0 28px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.progress-top
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--muted);
}

.progress-top strong
{
    color: var(--ink);
    font-weight: 600;
    font-family: var(--display);
    font-size: 17px;
}


/* Balken */
.progress-bar
{
    height: 6px;
    background: var(--line-2);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.progress-bar .fill
{
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .35s ease;
}


/* Progress-Pips (klickbare Schritt-Anzeige) */
.progress-pips
{
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.progress-pips .pip
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--muted-2);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
    white-space: nowrap;
    font-weight: 500;
}

.progress-pips .pip:hover    { color: var(--ink); }
.progress-pips .pip.done     { color: var(--accent); }
.progress-pips .pip.current
{
    color: var(--ink);
    background: var(--surface-2);
}


/* ════════════════════════════════════════════════════════════════════
   §11  STEP-HEADER — Schritt-Überschrift im Wizard
   ════════════════════════════════════════════════════════════════════ */
.step-head
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}


/* Schritt-Nummer (große Zahl) */
.step-num
{
    font-family: var(--display);
    font-weight: 500;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.step-num small
{
    display: block;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.step-num .total
{
    font-size: 26px;
    color: var(--muted-2);
    margin-left: 4px;
}


/* Schritt-Titel */
.step-title
{
    flex: 1;
    padding-top: 6px;
}

.step-title .label
{
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.step-title h2
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 34px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: var(--ink);
}

.step-title .sub
{
    font-size: 18px;
    color: var(--muted);
    margin-top: 10px;
    max-width: 50ch;
    line-height: 1.5;
}


/* ════════════════════════════════════════════════════════════════════
   §12  PREVIEW / DOKUMENT — Live-Vorschau rechts
   ════════════════════════════════════════════════════════════════════ */
.preview-wrap
{
    position: sticky;
    top: 96px;
}

.preview-meta
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--muted);
}

.preview-meta .l
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}


/* Dokument-Container */
.doc
{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 36px 40px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 30px -14px rgba(0, 0, 0, 0.10);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15.5px;
    line-height: 1.6;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: relative;
}

.doc::-webkit-scrollbar       { width: 10px; }
.doc::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }


/* Dokument — Versteckter Wasserzeichen-Footer */
.doc::after
{
    content: "Erstellt mit Pforte.de — © Pforte.de";
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--line);
    letter-spacing: 0.04em;
    pointer-events: none;
}


/* Dokument — Header */
.doc-head
{
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.doc-head .title
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 6px;
}

.doc-head .sub
{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}


/* Dokument — Sektionen */
.doc-section
{
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 18px;
    align-items: baseline;
}

.doc-section:last-of-type { border-bottom: none; }

.doc-section .lbl
{
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}

.doc-section .lbl .num
{
    color: var(--accent);
    margin-right: 6px;
    font-weight: 600;
}

.doc-section .val          { color: var(--ink-2); }
.doc-section .val + .val   { margin-top: 4px; }
.doc-section .val.empty
{
    color: var(--muted-2);
    font-style: italic;
}
.doc-section .val.quote
{
    font-family: var(--display);
    font-style: italic;
    color: var(--ink-2);
}


/* Dokument — Unterschrift */
.doc-sign
{
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.doc-sign .lbl
{
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.doc-sign .val
{
    font-size: 14.5px;
    color: var(--ink-2);
}

.doc-sign .line
{
    height: 1px;
    background: var(--line);
    margin-top: 22px;
}


/* ════════════════════════════════════════════════════════════════════
   §13  REVIEW — Übersichts-Schritt am Ende
   ════════════════════════════════════════════════════════════════════ */
.review-list
{
    display: flex;
    flex-direction: column;
}

.review-item
{
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 22px;
    align-items: baseline;
}

.review-item:last-child { border-bottom: none; }


/* Review — Nummer */
.review-item .num
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.review-item .num small
{
    display: block;
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}


/* Review — Titel & Zusammenfassung */
.review-item .title
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.review-item .summary
{
    font-size: 16px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.5;
}

.review-item .summary.empty
{
    color: var(--muted-2);
    font-style: italic;
}


/* Review — Edit-Link */
.review-item .edit-link
{
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    padding: 8px 14px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.review-item .edit-link:hover { background: var(--accent-soft); }


/* Review — Aktionen am Ende */
.review-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    justify-content: space-between;
    align-items: center;
}

.review-actions-l,
.review-actions-r
{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ════════════════════════════════════════════════════════════════════
   §14  PILLS — Tag-artige Eingaben (z.B. Gästeliste)
   ════════════════════════════════════════════════════════════════════ */
.pill-row
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pill
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 15px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
}

.pill:hover
{
    border-color: var(--accent);
    color: var(--accent);
}

.pill .x
{
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
}


/* ════════════════════════════════════════════════════════════════════
   §15  DIALOG — Modal-Overlay
   ════════════════════════════════════════════════════════════════════ */
.dlg-back
{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.dlg
{
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 32px 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.3);
}

.dlg h3
{
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.dlg p
{
    font-size: 17px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 24px;
}

.dlg .row
{
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}


/* ════════════════════════════════════════════════════════════════════
   §16  FOOTER / COLOPHON
   ════════════════════════════════════════════════════════════════════ */
.colophon
{
    border-top: 1px solid var(--line);
    padding: 36px 0 56px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 36px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.colophon h5
{
    font-family: var(--mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 12px;
}


/* ════════════════════════════════════════════════════════════════════
   §17  WASSERZEICHEN & SCHUTZ
   ════════════════════════════════════════════════════════════════════ */

/* Hintergrund-Wasserzeichen — sichtbar, dezent */
body::before
{
    content: "pforte.de · pforte.de · pforte.de";
    position: fixed;
    bottom: 6px;
    right: 12px;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--line);
    pointer-events: none;
    z-index: 0;
    letter-spacing: 0.06em;
    opacity: 0.7;
}


/* Schutz: Markendaten gegen Doppelklick-Selektion */
.brand,
.save-tag,
.progress-pips
{
    -webkit-user-select: none;
    user-select: none;
}


/* ════════════════════════════════════════════════════════════════════
   §18  RESPONSIVE — Breakpoints
   ════════════════════════════════════════════════════════════════════ */

/* Tablet: bis 1100px */
@media (max-width: 1100px)
{
    .grid-large    { grid-template-columns: repeat(2, 1fr); }
    .grid-small    { grid-template-columns: repeat(2, 1fr); }
    .working       { grid-template-columns: 1fr; }
    .preview-wrap  { position: static !important; }
}


/* Mobile groß: bis 760px */
@media (max-width: 760px)
{
    .colophon { grid-template-columns: 1fr; }
}


/* Mobile: bis 700px */
@media (max-width: 700px)
{
    .row-2,
    .row-3 { grid-template-columns: 1fr; }
}


/* Mobile klein: bis 600px */
@media (max-width: 600px)
{
    .grid-large { grid-template-columns: 1fr; }
    .grid-small { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   §19  PRINT — Druck-Styles (nur Dokument)
   ════════════════════════════════════════════════════════════════════ */
@media print
{
    body
    {
        background: white;
        font-size: 13px;
    }

    body::before
    {
        content: "Quelle: pforte.de";
        bottom: 4px;
        right: 8px;
        color: #999;
        opacity: 1;
    }

    .nav-top,
    .hero,
    .working > .left,
    .colophon,
    .nav,
    .progress,
    .preview-meta { display: none !important; }

    .working
    {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    .preview-wrap { position: static; }

    .doc
    {
        box-shadow: none;
        border: none;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .doc::after
    {
        content: "© Pforte.de — Bestattungsverfügung · pforte.de";
        bottom: -20px;
        color: #888;
    }
}













/* ───────── Toolbar oberhalb der Vorschau (kompakter) ───────── */
.right .nav-tools
{
    gap: 22px;              /* mehr Abstand zwischen den 3 Elementen */
    margin-bottom: 14px;    /* Abstand zur Vorschau darunter */
    flex-wrap: wrap;
}

.right .save-tag
{
    font-size: 11px;
    padding: 5px 10px;
    gap: 7px;
}

.right .save-dot
{
    width: 6px;
    height: 6px;
}

.right .nav-tools .btn
{
    font-size: 12px;
    padding: 6px 14px;
    border-width: 1px;
    gap: 6px;
}


/* ───────── Save-Tag: sanftes Aufflackern beim Speichern ───────── */
.save-tag.saving
{
    animation: pforte-save-flash 0.5s ease-in-out 3;
}

@keyframes pforte-save-flash
{
    0%, 100%
    {
        background: var(--surface);
        border-color: var(--line);
        color: var(--muted);
    }
    50%
    {
        background: rgba(68, 82, 74, 0.12);     /* sanftes Salbeigrün */
        border-color: var(--accent);
        color: var(--accent);
    }
}










/* ───────── MOBILE TEST: Layout 1-Spalte ───────── */
@media (max-width: 768px)
{
    .working
    {
        grid-template-columns: 1fr;       /* eine Spalte volle Breite */
        gap: 24px;
    }

    .working .left,
    .working .right
    {
        width: 100%;
        min-width: 0;                     /* verhindert overflow durch lange Inhalte */
    }

    /* Frame-Padding etwas reduzieren */
    .frame
    {
        padding-left: 16px;
        padding-right: 16px;
    }

    .step-title h2
    {
        font-size: 22px;
        line-height: 1.25;
    }
}













/* ═══ Sektionen ═══════════════════════════════════════════════════ */

.info-section
{
    padding: 56px 0 24px;
}

.section-head
{
    margin-bottom: 28px;
}

.section-head .label
{
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-head h2
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}


/* ═══ Karten-Grid (wie Übersichtsseite) ══════════════════════════ */

.info-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.info-card
{
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 24px 24px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    display: block;
}

.info-card .num
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

.info-card .title
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.info-card .desc
{
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}


/* Verlinkte Karten (Verwandte Themen) ─────────────────────────── */

.info-card.linked:hover
{
    border-color: var(--accent);
}

.info-card.linked .num
{
    font-size: 22px;
}


/* ═══ Stichpunkt-Liste (Definition-Style) ════════════════════════ */

.info-list
{
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 8px 0;
}

.info-item
{
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 24px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.info-item:last-child
{
    border-bottom: none;
}

.info-item strong
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.info-item span
{
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}


/* Mobile: gestapelt */
@media (max-width: 640px)
{
    .info-item
    {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 18px;
    }
}


/* ═══ CTA-Sektion (Notar finden) ══════════════════════════════════ */

.cta-section
{
    padding: 32px 0 24px;
}

.cta-card
{
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 36px 32px;
    background: rgba(68, 82, 74, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-text
{
    flex: 1 1 320px;
}

.cta-text .label
{
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-text h2
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.2;
}

.cta-text p
{
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    max-width: 540px;
}

.cta-btn
{
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}


/* ═══ Quellen-Hinweis ═════════════════════════════════════════════ */

.sources-section
{
    padding: 24px 0 56px;
}

.sources
{
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent);
    background: rgba(68, 82, 74, 0.03);
}


/* ═══ Responsive Anpassung Hero ═══════════════════════════════════ */

@media (max-width: 640px)
{
    .info-section,
    .cta-section,
    .sources-section,
    .related-section
    {
        padding: 32px 0 16px;
    }

    .section-head h2
    {
        font-size: 22px;
    }

    .cta-card
    {
        padding: 24px 20px;
    }

    .cta-text h2
    {
        font-size: 20px;
    }
}





.aha-section
{
    padding: 24px 0 16px;
}

.aha-card
{
    border-radius: 18px;
    padding: 40px 36px;
    background: linear-gradient(135deg,
        #44524a 0%,
        #5a6e63 50%,
        #7a9485 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.aha-eyebrow
{
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 14px;
}

.aha-title
{
    font-family: 'Inter Tight', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.4px;
    margin: 0 0 18px;
    color: #fff;
}

.aha-highlight
{
    background: rgba(255, 255, 255, 0.18);
    padding: 2px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.aha-lede
{
    font-size: 17px;
    line-height: 1.55;
    margin: 0 0 28px;
    opacity: 0.95;
}

.aha-lede strong
{
    color: #fff;
    font-weight: 600;
}

.aha-reason
{
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 22px;
}

.aha-label
{
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 10px;
}

.aha-reason p
{
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.aha-reason strong
{
    color: #fff;
    font-weight: 600;
}


/* Mobile */
@media (max-width: 640px)
{
    .aha-card
    {
        padding: 28px 22px;
        border-radius: 14px;
    }
    .aha-title
    {
        font-size: 22px;
    }
    .aha-highlight
    {
        white-space: normal;
        padding: 0 6px;
    }
    .aha-lede
    {
        font-size: 15px;
    }
}



.desk-note.mobile-only {
    display: none;
}
@media (max-width: 768px) {
    .desk-note.mobile-only {
        display: block;
    }
}









.rechtshinweis-box {
    max-width: var(--mw);
    margin: 4rem auto 2rem auto;
    padding: 1.5rem 1.8rem;
    background: #fdfaf3;
    border: 1px solid #e8d9b4;
    border-left: 4px solid oklch(0.38 0.05 160);
    border-radius: 8px;
    box-sizing: border-box;
    color: #3a3a3a;
    line-height: 1.55;
    font-size: 0.95rem;
}
.rechtshinweis-box .rh-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
}
.rechtshinweis-box .rh-icon {
    font-size: 1.3rem;
    color: oklch(0.38 0.05 160);
}
.rechtshinweis-box p {
    margin: 0.4rem 0;
}
.rechtshinweis-box strong {
    color: #1a1a1a;
}
.rechtshinweis-box a {
    color: oklch(0.38 0.05 160);
    font-weight: 600;
    text-decoration: underline;
}
.rechtshinweis-box a:hover {
    text-decoration: none;
}
@media (max-width: 600px) {
    .rechtshinweis-box {
        margin: 4rem 25px 2rem 25px;
        padding: 1.2rem 1.3rem;
        font-size: 0.88rem;
    }
}