/* ==========================================================================
   Moonblack – Frontend
   Farben aus dem Logo: Pflaume/Mauve mit Gold-Linien, rosé Schrift.
   Eine einzige "laute" Stelle: die goldene Mondsichel im Hero.
   ========================================================================== */

@font-face {
    font-family: 'Young Serif';
    src: url("../fonts/young-serif-400-67MOM3I.woff2") format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-var-q1S9nCV.woff2") format('woff2');
    font-weight: 200 1000;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url("../fonts/nunito-var-italic-tc3rG9v.woff2") format('woff2');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    --night: #3b1838;      /* tiefstes Pflaume: Header, Footer, Hero */
    --plum: #5e2a57;
    --mauve: #8a4a7c;
    --gold: #d9b26a;       /* Linien aus dem Logo */
    --gold-ink: #8a6424;   /* Gold für Text auf hellem Grund (Kontrast) */
    --blush: #f3c9e4;      /* Wortmarke im Logo */
    --paper: #f8f2f7;      /* lila getöntes Papier */
    --card: #fffbfe;
    --ink: #2a1328;
    --muted: #6e5a6b;
    --line: #e6d6e3;

    --font-display: 'Young Serif', Georgia, serif;
    --font-body: 'Nunito', system-ui, sans-serif;

    --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
    --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
    --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
    --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
    --step-3: clamp(2.2rem, 1.7rem + 2.6vw, 3.9rem);

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1180px;
    --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body > main { flex: 1 0 auto; }
body > * { flex-shrink: 0; }

body {
    margin: 0;
    /* Footer klebt bei kurzen Seiten unten: main füllt den Rest */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--mauve); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--card); padding: .5rem 1rem; }

/* ---------- Header ---------- */

.site-header { background: var(--night); color: var(--blush); }
.site-header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .6rem; color: var(--blush); text-decoration: none; }
.brand:hover { color: #fff; }
.brand__moon { width: 34px; height: 34px; color: var(--gold); }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .06em; }

.nav-toggle { display: none; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { color: var(--blush); text-decoration: none; }
.main-nav a:hover { color: #fff; }
.main-nav__list { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__item > a { font-weight: 600; }

.main-nav__sub {
    list-style: none;
    margin: 0;
    padding: .6rem 0;
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 13rem;
    background: var(--plum);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(30, 8, 28, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 5;
}
.main-nav__item:hover .main-nav__sub,
.main-nav__item:focus-within .main-nav__sub { visibility: visible; opacity: 1; transform: none; }
.main-nav__sub a { display: block; padding: .35rem 1rem; }

.main-nav__meta { display: flex; align-items: center; gap: 1.25rem; font-size: var(--step--1); }
.lang-switch { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.lang-switch a, .lang-switch span { display: inline-block; padding: .1rem .45rem; border-radius: 999px; }
.lang-switch span { background: rgba(217, 178, 106, .2); color: var(--gold); }

@media (max-width: 760px) {
    .js .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        background: none;
        border: 1px solid rgba(243, 201, 228, .35);
        color: var(--blush);
        border-radius: 999px;
        padding: .35rem .9rem;
        font: inherit;
        font-size: var(--step--1);
        cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; content: '';
    }
    .nav-toggle__bars::before { position: absolute; top: -5px; }
    .nav-toggle__bars::after { position: absolute; top: 5px; }

    .main-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem 0 1rem; }
    .js .main-nav { display: none; }
    .js .nav-open .main-nav { display: flex; }
    .main-nav__list { flex-direction: column; gap: .75rem; }
    .main-nav__sub {
        position: static; visibility: visible; opacity: 1; transform: none;
        background: none; box-shadow: none; padding: .25rem 0 0 .9rem; min-width: 0;
        border-left: 1px solid rgba(217, 178, 106, .4); border-radius: 0; margin-top: .35rem;
    }
    .main-nav__sub a { padding: .2rem 0; }
}

/* ---------- Flash ---------- */

.flash { max-width: var(--max); margin: 1rem auto 0; padding: .75rem var(--gutter); background: var(--card); border-left: 3px solid var(--gold); }
.flash--danger, .flash--error { border-color: #b3261e; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid transparent;
    font-family: inherit;
    font-size: var(--step-0);
    cursor: pointer;
    line-height: 1.2;
}
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #e6c584; color: var(--night); }
.btn--ghost { border-color: rgba(243, 201, 228, .55); color: var(--blush); }
.btn--ghost:hover { border-color: var(--blush); color: #fff; }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--mauve); color: #fff; }

/* ---------- Hero: die Mondsichel ---------- */

.hero {
    background:
        radial-gradient(ellipse 60% 70% at 75% 40%, rgba(138, 74, 124, .55), transparent 70%),
        var(--night);
    color: var(--blush);
    overflow: hidden;
}
.hero__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}
.hero__title { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem); color: #fff; }
/* zweite Zeile in Gold; bricht sie auf schmalen Bildschirmen um, dann ausgewogen */
.hero__title-accent { display: block; color: var(--gold); text-wrap: balance; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; margin: 0 0 2rem; color: var(--blush); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 0; }

.hero__moon { position: relative; margin: 0; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.hero__photo {
    position: absolute;
    inset: 9%;
    width: 82%;
    height: 82%;
    object-fit: cover;
    border-radius: 50%;
}
.hero__arc { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); overflow: visible; }
.hero__arc path:first-child { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-arc 1.6s .2s ease-out forwards; }

@keyframes draw-arc { to { stroke-dashoffset: 0; } }

/* Sterne: ruhiges Funkeln, zeitversetzt, nach dem Zeichnen des Bogens */
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 6s ease-in-out infinite both; }
.twinkle--1 { animation-delay: 1.8s; }
.twinkle--2 { animation-delay: 3.6s; animation-duration: 7s; }
.twinkle--3 { animation-delay: 5s; animation-duration: 5.5s; }
@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    45% { opacity: .35; transform: scale(.72) rotate(12deg); }
    60% { opacity: 1; transform: scale(1.12) rotate(0deg); }
    75% { opacity: .9; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__arc path:first-child { animation: none; stroke-dashoffset: 0; }
    .twinkle { animation: none; }
}

@media (max-width: 760px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__moon { order: -1; width: min(78vw, 340px); }
    /* Links untereinander: zentriert statt linksbündig */
    .hero__actions { flex-direction: column; align-items: center; }
}

/* ---------- Sections ---------- */

.section { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.section__title { font-size: var(--step-2); color: var(--night); }

/* ---------- Faden-Link: Text mit goldener Pfeifenreiniger-Spirale ---------- */

.thread-link {
    --thread: var(--blush);
    position: relative;
    display: inline-block;
    padding: .2rem 0 1.1rem;
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--blush);
    text-decoration: none;
}
.thread-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background: var(--thread);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M0 7c3-6 6-6 7.5-1.5S9 11 6.5 9 9 1 12 2s4.5 5 6 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 12px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='M0 7c3-6 6-6 7.5-1.5S9 11 6.5 9 9 1 12 2s4.5 5 6 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 18px 12px;
}
.thread-link:hover, .thread-link:focus-visible { color: #fff; }
.thread-link:hover::after, .thread-link:focus-visible::after { animation: twist .6s linear infinite; }
.thread-link--gold { --thread: var(--gold); color: var(--gold); }
.thread-link--gold:hover { color: #f0d79f; }
.thread-link--plum { --thread: var(--gold); color: var(--plum); }
.thread-link--plum:hover, .thread-link--plum:focus-visible { color: var(--mauve); }

@keyframes twist {
    to { -webkit-mask-position: 18px 0; mask-position: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .thread-link:hover::after { animation: none; }
}

/* ---------- Kategorie-"Welten" auf der Startseite ---------- */

.realm { padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.realm__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 7vw, 6rem);
    align-items: center;
}
.realm--night { background: var(--night); color: var(--blush); }
.realm--night .realm__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.realm--night .realm__media { order: 2; }

.realm__title { font-size: var(--step-3); margin-bottom: .3em; }
.realm__title a { color: var(--night); text-decoration: none; }
.realm--night .realm__title a { color: #fff; }
.realm__lead { font-size: var(--step-1); line-height: 1.5; max-width: 32ch; color: var(--muted); margin: 0 0 1.75rem; }
.realm--night .realm__lead { color: var(--blush); }

/* Bogenfenster mit versetzter Goldlinie (wie die Linienzeichnung im Logo) */
.arch { position: relative; max-width: 420px; margin: 0 auto; }
.arch img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 999px 999px 18px 18px;
}
.arch::before {
    content: '';
    position: absolute;
    inset: -14px 14px 14px -14px;
    border: 1.5px solid var(--gold);
    border-radius: 999px 999px 18px 18px;
    pointer-events: none;
}

.realm__drawing { width: min(100%, 360px); margin: 0 auto; display: block; color: var(--gold); }

/* Register der Unterkategorien: wie ein Pflanzenkatalog */
.register { list-style: none; margin: 0 0 2rem; padding: 0; max-width: 28rem; }
.register__link {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .55rem 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--night);
    text-decoration: none;
}
.realm--night .register__link { color: var(--blush); }
.register__leader { flex: 1; border-bottom: 1.5px dotted var(--gold); opacity: .7; transform: translateY(-.25em); }
.register__star { color: var(--gold); font-size: .8em; transition: transform .25s ease; }
.register__link:hover, .register__link:focus-visible { color: var(--mauve); }
.realm--night .register__link:hover { color: #fff; }
.register__link:hover .register__star, .register__link:focus-visible .register__star { transform: rotate(45deg) scale(1.3); }

@media (max-width: 760px) {
    .realm__inner, .realm--night .realm__inner { grid-template-columns: 1fr; }
    .realm--night .realm__media { order: 0; }
    .arch { max-width: 300px; }
    .realm__drawing { width: 220px; }
    .realm__text > .thread-link { display: table; margin-inline: auto; }
}

/* ---------- Unterkategorien auf Kategorieseiten ---------- */

.subnav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1.25rem; }
.subnav__link {
    font-family: var(--font-display);
    font-size: var(--step-1);
    color: var(--plum);
    text-decoration: none;
    padding: .2rem 0;
    border-bottom: 1.5px dotted var(--gold);
}
.subnav__link::before { content: '✦ '; color: var(--gold); font-size: .75em; }
.subnav__link:hover { color: var(--mauve); border-bottom-style: solid; }

/* ---------- Produktraster & Karten ---------- */

.section--tight { padding-top: 1.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.product-card__link { color: inherit; text-decoration: none; display: block; }
.product-card__media { position: relative; aspect-ratio: 4 / 5; background: #efe3ec; border-radius: var(--radius); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card__link:hover img { transform: scale(1.03); }
.product-card__placeholder { width: 40%; height: 100%; margin: 0 auto; color: var(--gold); }
.product-card__name { font-size: var(--step-1); margin: .8rem 0 .2rem; color: var(--night); }
.product-card__link:hover .product-card__name { color: var(--mauve); }
.product-card__teaser { margin: 0 0 .3rem; color: var(--muted); font-size: var(--step--1); }
.product-card__price { margin: 0; font-weight: 700; color: var(--plum); }
.product-card--muted .product-card__media img { filter: saturate(.75); }
.product-card--muted .product-card__price { color: var(--muted); font-weight: 400; }

.flag {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: var(--step--1);
    font-weight: 700;
    background: var(--card);
    color: var(--plum);
}
.flag--sold { background: var(--night); color: var(--blush); }
.flag--ricardo { background: var(--gold); color: var(--night); }
.flag--unique::before { content: '✦ '; color: var(--gold); }

/* ---------- Produktseite ---------- */

.product {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}
.product__crumbs { grid-column: 1 / -1; margin: 0; }
.product__title { font-size: var(--step-3); color: var(--night); margin-bottom: .25em; }
.product__teaser { font-size: var(--step-1); color: var(--muted); margin: 0 0 1rem; }
.product__price { font-family: var(--font-display); font-size: var(--step-2); color: var(--plum); margin: 0 0 1.25rem; }
.product__delivery { color: var(--muted); font-size: var(--step--1); }
.product__delivery::before { content: '✦ '; color: var(--gold); }
.product__soon { font-size: var(--step--1); color: var(--muted); margin: .5rem 0 0; }
.product__description { margin-top: 2rem; }
.product__more { border-top: 1px solid var(--line); padding: 1rem 0; }
.product__more:last-child { border-bottom: 1px solid var(--line); }
.product__more summary { cursor: pointer; font-family: var(--font-display); font-size: var(--step-1); color: var(--night); }
.product__more ul { padding-left: 1.1rem; }
.product__more .form { margin-top: 1rem; }

@media (max-width: 860px) {
    .product { grid-template-columns: 1fr; }
}

.gallery { position: sticky; top: 1rem; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: #efe3ec; }
.gallery__main img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.gallery__thumbs { list-style: none; display: flex; gap: .5rem; padding: 0; margin: .75rem 0 0; overflow-x: auto; }
.gallery__thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; display: block; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery__thumbs img { width: 68px; height: 68px; object-fit: cover; }
@media (max-width: 860px) { .gallery { position: static; } }

.notice { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.notice p { margin: 0 0 .75rem; }
.notice p:last-child { margin: 0; }

/* Optionen */
.order-form { display: grid; gap: 1.25rem; }
.option { border: 0; padding: 0; margin: 0; }
.option__label { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.option__optional { font-weight: 400; color: var(--muted); }
.option__help { margin: -.25rem 0 .5rem; font-size: var(--step--1); color: var(--muted); }
.option select { font: inherit; padding: .65rem .9rem; border: 1px solid #cdb6c8; border-radius: 12px; background: var(--card); min-width: 60%; }
.option__choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span:not(.choice__swatch), .choice--color {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.choice:not(.choice--color) > span:first-of-type {
    padding: .5rem 1rem;
    border: 1.5px solid #cdb6c8;
    border-radius: 12px;
    background: var(--card);
}
.choice input:checked + span { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); color: var(--plum); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice__surcharge { color: var(--muted); font-size: var(--step--1); margin-left: .25rem; }

.choice--color { flex-direction: column; text-align: center; width: 4.6rem; }
.choice__swatch {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    outline-offset: 3px;
}
.choice--color input:checked + .choice__swatch { outline: 2px solid var(--plum); }
.choice--color input:focus-visible + .choice__swatch { outline: 2px solid var(--gold); }
.choice__text { font-size: var(--step--1); line-height: 1.2; }
.choice--color .choice__surcharge { margin: 0; }

.btn--wide { width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Spam-Honeypot & Screenreader-Texte */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.workshop { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.workshop__text p { max-width: 42ch; }
.workshop__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.workshop__photos figure { margin: 0; }
.workshop__photos img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); width: 100%; }
.workshop__photos figure:nth-child(2) { margin-top: 3rem; }
.workshop figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
@media (max-width: 760px) {
    .workshop { grid-template-columns: 1fr; }
    .workshop__photos { grid-template-columns: 1fr 1fr; }
    .workshop__photos figure:nth-child(2) { margin-top: 1.5rem; }
    .workshop__photos figure:nth-child(3) { grid-column: 1 / -1; width: 60%; justify-self: center; margin-top: -1rem; }
}

/* ---------- Inhaltsseiten ---------- */

.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0; }
.page-head__title { font-size: var(--step-3); color: var(--night); }
.page-head__lead { font-size: var(--step-1); max-width: 50ch; color: var(--muted); }
.breadcrumb { font-size: var(--step--1); margin-bottom: .5rem; }
.empty-state { color: var(--muted); font-style: italic; }

.narrow { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; color: var(--night); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.form-error, .form ul li { color: #8c1d2c; }

/* ---------- Formulare ---------- */

.form { display: grid; gap: 1.1rem; max-width: 26rem; }
.field { display: grid; gap: .35rem; }
.field__label { font-weight: 700; font-size: var(--step--1); }
.field input, .field textarea, .field select {
    font: inherit;
    padding: .7rem .9rem;
    border: 1px solid #cdb6c8;
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
}
.field input:focus { border-color: var(--mauve); outline: none; box-shadow: 0 0 0 3px rgba(138, 74, 124, .2); }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { accent-color: var(--plum); width: 1.1rem; height: 1.1rem; }
.form .btn { justify-self: start; }
.form-error { background: #fbe9ec; color: #8c1d2c; padding: .75rem 1rem; border-radius: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--blush); margin-top: 3rem; font-size: var(--step--1); }
.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem var(--gutter) 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 2rem;
}
.site-footer a { color: var(--blush); }
.site-footer a:hover { color: #fff; }
.site-footer__moon { width: 40px; height: 40px; color: var(--gold); margin-bottom: .5rem; }
.site-footer__brand p { margin: 0; max-width: 28ch; }
.site-footer__address { font-style: normal; }
.site-footer__nav { display: flex; flex-direction: column; gap: .4rem; }
.site-footer__copy { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 1.5rem; opacity: .7; }
@media (max-width: 760px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* Zentrierte Überschrift mit Goldlinien und Stern */
.ornament-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: var(--max);
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    padding: 0 var(--gutter);
    font-size: var(--step-2);
    color: var(--night);
    text-align: center;
}
.ornament-title::before, .ornament-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-title + .realm { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Warenkorb-Symbol im Header ---------- */

.cart-link { position: relative; order: 3; display: inline-flex; color: var(--blush); padding: .25rem; }
.cart-link:hover { color: #fff; }
.cart-link__count {
    position: absolute; top: -4px; right: -8px;
    min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--gold); color: var(--night);
    font-size: .72rem; font-weight: 700; line-height: 1.25rem; text-align: center;
}
.main-nav { order: 2; }
@media (max-width: 760px) {
    .cart-link { order: 0; margin-left: auto; }
    .nav-toggle { order: 1; }
    .main-nav { order: 4; }
}

/* ---------- Shop-Seiten ---------- */

.shop-page { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem; }
.shop-page .page-head__title { margin-bottom: 1.5rem; }
.field__help { color: var(--muted); font-size: var(--step--1); }
.field--invalid input, .field--invalid textarea, .field--invalid select { border-color: #b3261e; }
.field ul, .checkout__form > ul { list-style: none; padding: 0; margin: 0; color: #8c1d2c; font-size: var(--step--1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row--zip { grid-template-columns: 7rem 1fr; }
@media (max-width: 480px) { .field-row:not(.field-row--zip) { grid-template-columns: 1fr; } }
.login-links { margin-top: 1.5rem; font-size: var(--step--1); }
.flash--warning { border-color: var(--gold); }
.flash--success { border-color: #3c7a52; }

/* Warenkorb */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 1rem; align-items: start;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line__media img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #efe3ec; }
.cart-line__info { display: grid; gap: .15rem; }
.cart-line__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--night); text-decoration: none; }
.cart-line__name:hover { color: var(--mauve); }
.cart-line__meta { font-size: var(--step--1); color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.cart-line__swatch { width: .9rem; height: .9rem; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.cart-line__delivery::before { content: '✦'; color: var(--gold); }
.cart-line__qty { display: grid; gap: .4rem; justify-items: end; }
.cart-line__qty input { width: 4.5rem; font: inherit; padding: .4rem .5rem; border: 1px solid #cdb6c8; border-radius: 10px; text-align: center; background: var(--card); }
.cart-line__unique { font-size: var(--step--1); color: var(--muted); }
.cart-line__remove { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: var(--step--1); text-decoration: underline; cursor: pointer; }
.cart-line__remove:hover { color: #b3261e; }
.cart-line__price { font-weight: 700; color: var(--plum); white-space: nowrap; min-width: 6rem; text-align: right; }
.cart__summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .9rem; position: sticky; top: 1rem; }
.cart__subtotal { display: flex; justify-content: space-between; margin: 0; font-size: var(--step-1); }
.cart__hint { margin: 0; color: var(--muted); font-size: var(--step--1); }
.cart__continue { text-align: center; font-size: var(--step--1); color: var(--plum); }
@media (max-width: 860px) {
    .cart { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .cart-line__media img { width: 72px; height: 72px; }
    .cart-line__qty { grid-column: 2; grid-row: 2; justify-items: start; grid-auto-flow: column; align-items: center; gap: 1rem; }
    .cart-line__price { grid-column: 3; grid-row: 1; }
}

/* Kasse */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.checkout__form { display: grid; gap: 1.5rem; }
.checkout__section { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checkout__section legend { font-family: var(--font-display); font-size: var(--step-1); color: var(--night); margin-bottom: .75rem; padding: 0; }
.checkout__login, .checkout__country, .checkout__legal { margin: 0; font-size: var(--step--1); color: var(--muted); }
.checkout__submit { margin-top: .5rem; }
.checkout__password[hidden] { display: none; }
.checkout__summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 1rem; }
.checkout__summary-title { font-size: var(--step-1); margin: 0 0 1rem; color: var(--night); }
.summary-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.summary-lines li, .summary-total, .summary-shipping { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.summary-lines small { display: block; color: var(--muted); }
.summary-total { border-top: 1px solid var(--line); padding-top: .75rem; font-weight: 700; }
.summary-shipping { color: var(--muted); font-size: var(--step--1); margin-top: .35rem; }
.checkout__edit { display: inline-block; margin-top: 1rem; font-size: var(--step--1); color: var(--plum); }
@media (max-width: 860px) {
    .checkout { grid-template-columns: 1fr; }
    .checkout__summary { order: -1; position: static; }
}

.radio-cards { display: grid; gap: .6rem; }
.radio-card { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 1.5px solid #cdb6c8; border-radius: 14px; background: var(--card); cursor: pointer; }
.radio-card input { accent-color: var(--plum); margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.radio-card:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.radio-card__body { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; flex: 1; }
.radio-card__title { font-weight: 700; }
.radio-card__price { color: var(--plum); font-weight: 700; white-space: nowrap; }
.radio-card__text { grid-column: 1 / -1; color: var(--muted); font-size: var(--step--1); }

/* Bestellung */
.thanks { text-align: center; max-width: 36rem; margin: 0 auto 2.5rem; }
.thanks__moon { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 1rem; display: block; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.order-card h2 { font-size: var(--step-1); margin: 0 0 .9rem; color: var(--night); }
.order-card--pay { border-left: 3px solid var(--gold); }
.order-card--items { grid-row: span 2; }
.order-meta { color: var(--muted); font-size: var(--step--1); }
.order-help { margin-top: 2rem; color: var(--muted); }
.order-status { display: inline-block; padding: .15rem .8rem; border-radius: 999px; font-weight: 700; font-size: var(--step--1); background: #efe3ec; color: var(--plum); margin: 0; }
.order-status--paid, .order-status--in_progress { background: #f6ecd6; color: #6b4d12; }
.order-status--shipped, .order-status--completed { background: #e2efe6; color: #2d5f3e; }
.order-status--cancelled { background: #f6e3e3; color: #8c1d2c; }

/* Konto */
.account__orders-title, .account__pw-title { margin-top: 2.5rem; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list__link {
    display: grid; grid-template-columns: 9rem 6rem 1fr auto; gap: 1rem; align-items: center;
    padding: .9rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.order-list__link:hover .order-list__number { color: var(--mauve); }
.order-list__number { font-weight: 700; color: var(--plum); }
.order-list__date { color: var(--muted); font-size: var(--step--1); }
.order-list__link .order-status { justify-self: start; }
.order-list__total { font-weight: 700; }
@media (max-width: 600px) { .order-list__link { grid-template-columns: 1fr auto; } }

/* Produktseite: Menge + Knopf */
.order-form__buy { display: flex; gap: .75rem; align-items: stretch; }
.order-form__qty input { width: 4.5rem; height: 100%; font: inherit; text-align: center; border: 1.5px solid #cdb6c8; border-radius: 999px; background: var(--card); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.doc-list a::before { content: '✦ '; color: var(--gold); }

/* ---------- Seiten (Datenschutz, AGB, …) ---------- */

.page .page-head__title { margin-bottom: .6em; }
.prose h3 { font-size: var(--step-0, 1rem); margin-top: 1.4rem; color: var(--plum); }
.prose a { color: var(--plum); }
.prose .address-block { padding-left: 1rem; border-left: 2px solid var(--gold); }
.page__updated { margin-top: 2.5rem; font-size: var(--step--1); color: var(--muted); }
.info-list { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; }
.info-list li { padding: .7rem 0; border-bottom: 1px dotted var(--line); }
.info-list__value { float: right; font-weight: 700; color: var(--plum); }
.info-list small { color: var(--muted); }

/* ---------- Kontakt ---------- */

.contact .form { max-width: 34rem; margin-top: 1.5rem; }
.contact__privacy, .contact__direct { font-size: var(--step--1); color: var(--muted); }
.contact__direct { margin-top: 2rem; }

/* ---------- Checkout: AGB ---------- */

.checkout__terms { margin: 1.25rem 0 .5rem; }
.checkout__terms .check { align-items: flex-start; }
.checkout__terms .check input { margin-top: .2rem; flex: none; }
.checkout__terms a { color: var(--plum); }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.5rem, 4vw, 2.5rem); }
.post-card__link { display: block; color: inherit; text-decoration: none; }
.post-card__media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #efe3ec; display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card__link:hover img { transform: scale(1.03); }
.post-card__placeholder { width: 30%; color: var(--gold); }
.post-card__meta { margin: .9rem 0 .2rem; font-size: var(--step--1); color: var(--muted); }
.post-card__title { font-size: var(--step-1); color: var(--night); margin: 0 0 .3rem; }
.post-card__link:hover .post-card__title { color: var(--mauve); }
.post-card__teaser { margin: 0; color: var(--muted); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; }
.pager__info { color: var(--muted); font-size: var(--step--1); }

.post { max-width: 54rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 1rem; }
.post__head { max-width: 40rem; margin: 0 auto; text-align: center; }
.post__head .breadcrumb { margin-bottom: 1rem; }
.post__title { font-size: var(--step-3); color: var(--night); margin-bottom: .3em; text-wrap: balance; }
.post__meta { color: var(--muted); font-size: var(--step--1); margin: 0 0 1rem; }
.post__meta::before, .post__meta::after { content: ' ✦ '; color: var(--gold); }
.post__lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.post__image { margin: 2rem 0; }
.post__image img { width: 100%; height: auto; border-radius: var(--radius); }
.post__body { max-width: 40rem; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; }
.post__body img { max-width: 100%; height: auto; border-radius: 12px; }
.post__tags { max-width: 40rem; margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .25rem .8rem; border-radius: 999px; background: #efe3ec; color: var(--plum); text-decoration: none; font-size: var(--step--1); }
.tag:hover { background: var(--plum); color: #fff; }

/* Produktkarte im Text */
.embed-product {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    line-height: 1.5;
}
.embed-product__media { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #efe3ec; }
.embed-product__media img { width: 100%; height: 100%; object-fit: cover; }
.embed-product__name { font-family: var(--font-display); font-size: var(--step-1); color: var(--night); margin: 0 0 .2rem; }
.embed-product__teaser { margin: 0 0 .4rem; color: var(--muted); font-size: var(--step--1); }
.embed-product__meta { display: flex; align-items: center; gap: .75rem; margin: 0 0 .5rem; }
.embed-product__meta .flag { position: static; }
.embed-product__price { font-weight: 700; color: var(--plum); }
.prose .embed-product__cta, .embed-product__cta { color: var(--plum); text-decoration: none; }
@media (max-width: 520px) {
    .embed-product { grid-template-columns: 96px 1fr; gap: .9rem; }
}

/* ---------- Über mich ---------- */

.about-head { display: grid; justify-items: center; text-align: center; margin: 0 0 2.5rem; }
.about-head__portrait { width: min(72vw, 280px); margin: 2.25rem auto 0; }
.about-head__title { margin: 0; }
.about-head__intro { max-width: 34ch; margin: 1.25rem auto 0; font-size: var(--step-1); line-height: 1.55; color: var(--muted); text-wrap: balance; }
.about-head__intro p { margin: 0; }
.about-head__title::after { content: '✦'; display: block; color: var(--gold); font-size: .45em; margin-top: .5rem; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.photo-pair__item { margin: 0; }
.photo-pair__item:nth-child(2) { margin-top: 2.5rem; }
.photo-pair__item img, .photo-pair__placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-pair__placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .75rem;
    background: radial-gradient(ellipse at 50% 40%, #fbf3f8, #efe3ec);
    border: 1.5px dashed rgba(217, 178, 106, .7);
    color: var(--muted);
    font-size: var(--step--1);
}
.photo-pair__icon { width: 64px; height: 64px; color: var(--gold); }
.photo-pair figcaption { margin-top: .5rem; font-size: var(--step--1); color: var(--muted); text-align: center; }
/* Zwischentitel wie der Seitentitel: zentriert, darunter ein Stern */
.page--about h2 { text-align: center; margin: 2.75rem 0 1rem; }
.page--about h2::after { content: '✦'; display: block; color: var(--gold); font-size: .6em; margin-top: .4rem; }
