/* =============================================================
 Kathinkas Keramik – Stylesheet
 -------------------------------------------------------------
 Inhalt
  1. Schriften
  2. Design-Variablen
  3. Grundlagen
  4. Hilfsklassen
  5. Buttons
  6. Header & Navigation
  7. Startbereich (Hero)
  8. Laufband
  9. Über mich
 10. Werte
 11. Produkte
 12. Shop-Banner
 13. Kontakt
 14. Footer
 15. Rechtliche Seiten
 16. Fehlermeldung
 17. Scroll-Animationen
 18. Responsive
 19. Reduzierte Bewegung
 ============================================================= */

/* -------------------------------------------------------------
 1. Schriften
 Lokal eingebunden (DSGVO-konform). Dateien liegen in /fonts.
 Fehlen sie, werden automatisch Ersatzschriften genutzt.
 ------------------------------------------------------------- */
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------
 2. Design-Variablen
 Farben, Schriften und Abstände an einer Stelle.
 Wer die Optik anpassen möchte, fängt am besten hier an.
 ------------------------------------------------------------- */
:root {
    /* Farben */
    --color-bg: #FBF7F2;
    /* Creme – Seitenhintergrund      */
    --color-bg-alt: #F3EAE0;
    /* dunkleres Creme – Flächen       */
    --color-ink: #3A2E28;
    /* Text                            */
    --color-muted: #73625A;
    /* Nebentext                       */
    --color-clay: #9E5737;
    /* Terrakotta – Akzent             */
    --color-rose: #EBCFC4;
    /* Altrosa – Glasurfarbe           */
    --color-line: rgb(58 46 40 / .1);

    /* Schriften */
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Maße & Formen */
    --container: 1180px;
    --header-height: 76px;
    --section-space: clamp(4.5rem, 10vw, 7rem);
    --radius: 24px;
    --radius-large: 40px;
    --radius-pill: 999px;

    /* Bewegung & Schatten */
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --shadow-soft: 0 30px 60px -30px rgb(58 46 40 / .35);
}

/* -------------------------------------------------------------
 3. Grundlagen
 ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    /* Anker nicht unter dem Header verstecken */
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-ink);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
    /* Seite steht still, solange das Menü offen ist */
}

main {
    overflow-x: clip;
    /* Deko-Formen dürfen nicht seitlich überstehen */
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.015em;
}

/* *Wort* aus der content.json wird zu <em>: kursiv und Terrakotta */
em {
    font-style: italic;
    color: var(--color-clay);
}

:focus-visible {
    outline: 2px solid var(--color-clay);
    outline-offset: 3px;
}

/* -------------------------------------------------------------
 4. Hilfsklassen
 ------------------------------------------------------------- */
.container {
    width: min(var(--container), 100% - 3rem);
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

/* Nur für Screenreader sichtbar */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* "Zum Inhalt springen" – erscheint nur bei Tastaturbedienung */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--color-ink);
    color: var(--color-bg);
}

.skip-link:focus {
    top: 1rem;
}

/* Kleine Überzeile über Überschriften */
.eyebrow {
    display: block;
    margin-bottom: 1.2rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-clay);
}

.section-title {
    margin-bottom: 1.4rem;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

/* Zentrierter Kopf über einem Bereich */
.section-head {
    max-width: 40rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-head__text {
    color: var(--color-muted);
}

/* -------------------------------------------------------------
 5. Buttons
 ------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.7rem;
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
    background: var(--color-ink);
    color: var(--color-bg);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color .3s,
        border-color .3s,
        color .3s,
        transform .3s var(--ease-out);
}

.button:hover {
    background: var(--color-clay);
    border-color: var(--color-clay);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.button__arrow {
    transition: transform .3s var(--ease-out);
}

.button:hover .button__arrow {
    transform: translateX(4px);
}

/* Variante: nur Umriss */
.button--ghost {
    background: transparent;
    color: var(--color-ink);
}

/* Variante: hell, für dunkle Flächen */
.button--light {
    background: var(--color-bg);
    border-color: var(--color-bg);
    color: var(--color-ink);
}

.button--light:hover {
    background: var(--color-ink);
    border-color: var(--color-ink);
}

/* Variante: klein (z. B. im Header) */
.button--small {
    padding: .55rem 1.15rem;
    font-size: .85rem;
}

/* -------------------------------------------------------------
 6. Header & Navigation
 ------------------------------------------------------------- */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    padding-block: 1rem;
}

/* Milchglas-Hintergrund als eigene Ebene.
 Wichtig: Läge der Blur-Effekt direkt auf .header, würde das
 mobile Vollbild-Menü nicht mehr den ganzen Bildschirm füllen. */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgb(251 247 242 / .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .3s;
}

.header.is-scrolled::before {
    box-shadow: 0 1px 0 var(--color-line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

/* Logo-Zeichen "Bodenstempel" */
.logo__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-clay);
  transition: rotate .6s var(--ease-out);
}

/* Kleine Drehung beim Darüberfahren – wie ein Stempel, der gedreht wird */
.logo:hover .logo__mark {
  rotate: -15deg;
}

@media (max-width: 520px) {
  .logo__mark {
    width: 34px;
    height: 34px;
  }
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: .95rem;
}

.nav__link {
    position: relative;
}

/* Feine Unterstreichung beim Darüberfahren */
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: var(--color-clay);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease-out);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Burger-Button nur auf kleinen Bildschirmen (siehe 18. Responsive) */
.burger {
    display: none;
}

/* -------------------------------------------------------------
 7. Startbereich (Hero)
 ------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
}

.hero__title {
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 7vw, 6rem);
}

/* Jede Zeile der Überschrift gleitet von unten herein */
.hero__line {
    display: block;
    overflow: hidden;
    padding-bottom: .08em;
}

.hero__line-inner {
    display: block;
    animation: line-up 1.1s var(--ease-out) both;
    animation-delay: var(--delay, 0s);
}

@keyframes line-up {
    from {
        transform: translateY(105%);
    }
}

.hero__text {
    max-width: 32rem;
    margin-bottom: 2.2rem;
    font-size: 1.15rem;
    color: var(--color-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Bildkomposition rechts */
.hero__visual {
    position: relative;
    isolation: isolate;
    justify-self: end;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;
}

/* Großes Bild in Bogenform (oben ein Halbkreis, wie eine Vase) */
.hero__arch {
    position: absolute;
    inset: 0 0 0 12%;
    overflow: hidden;
    border-radius: 50% 50% var(--radius) var(--radius) / 35% 35% var(--radius) var(--radius);
    background: var(--color-bg-alt);
    box-shadow: 0 40px 80px -40px rgb(58 46 40 / .5);
}

.hero__arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom-out 2s var(--ease-out) both;
}

@keyframes zoom-out {
    from {
        transform: scale(1.2);
    }
}

/* Kleines rundes Detailbild */
.hero__detail {
    position: absolute;
    left: 0;
    bottom: 6%;
    width: 40%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 8px solid var(--color-bg);
    border-radius: 50%;
    background: var(--color-bg-alt);
}

.hero__detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Weiche Farbfläche, die sich langsam verformt */
.hero__blob {
    position: absolute;
    top: -6%;
    right: -12%;
    z-index: -1;
    width: 80%;
    aspect-ratio: 1;
    background: var(--color-rose);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: blob-morph 14s ease-in-out infinite;
}

@keyframes blob-morph {
    50% {
        border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%;
        transform: rotate(20deg);
    }
}

/* Rotierendes Siegel "Handgemacht • Unikate • ..." */
.badge {
    position: absolute;
    top: 3%;
    left: 0;
    display: grid;
    place-items: center;
    width: 120px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: 0 15px 30px -15px rgb(0 0 0 / .3);
}

.badge__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 18s linear infinite;
}

.badge__ring text {
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    fill: var(--color-ink);
}

.badge__icon {
    font-size: 1.4rem;
    color: var(--color-clay);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -------------------------------------------------------------
 8. Laufband
 ------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    padding-block: 1.5rem;
    /* Platz für die leichte Schräglage */
}

.marquee__band {
    width: 104%;
    margin-left: -2%;
    padding-block: 1.2rem;
    background: var(--color-clay);
    color: var(--color-bg);
    transform: rotate(-1.5deg);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee__item {
    padding-right: 2.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-style: italic;
    white-space: nowrap;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* -------------------------------------------------------------
 9. Über mich
 ------------------------------------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
}

.about__media {
    position: relative;
    isolation: isolate;
}

/* Feiner versetzter Rahmen hinter dem Bild */
.about__media::before {
    content: "";
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    z-index: -1;
    border: 1px solid var(--color-clay);
    border-radius: var(--radius) var(--radius) 50% 50% / var(--radius) var(--radius) 40% 40%;
}

/* Bild in Schalenform (unten ein Halbkreis) */
.about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 50% 50% / var(--radius) var(--radius) 40% 40%;
    background: var(--color-bg-alt);
}

.about__paragraph {
    max-width: 36rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.about__signature {
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--color-clay);
}

/* -------------------------------------------------------------
 10. Werte
 ------------------------------------------------------------- */
.values {
    background: var(--color-bg-alt);
    border-radius: 48px 48px 0 0;
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}

.value-card {
    height: 100%;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius);
    background: var(--color-bg);
    transition:
        transform .5s var(--ease-out),
        box-shadow .5s var(--ease-out);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.value-card__number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-clay);
}

.value-card__title {
    margin: 1rem 0 .6rem;
    font-size: 1.4rem;
}

.value-card__text {
    font-size: .95rem;
    color: var(--color-muted);
}

/* -------------------------------------------------------------
 11. Produkte
 ------------------------------------------------------------- */
.products {
    padding-top: 0;
    /* schließt nahtlos an die Werte an */
    background: var(--color-bg-alt);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}

.product-card {
    display: block;
}

.product-card__media {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: .9rem;
    border-radius: 20px;
    background: var(--color-bg);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out);
}

.product-card:hover .product-card__media img {
    transform: scale(1.07);
}

.product-card__title {
    font-size: 1.15rem;
}

.product-card__price {
    font-size: .9rem;
    color: var(--color-clay);
}

.products__more {
    margin-top: 3rem;
    text-align: center;
}

/* -------------------------------------------------------------
 12. Shop-Banner
 ------------------------------------------------------------- */
.cta__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 6rem) clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--radius-large);
    background: var(--color-clay);
    color: var(--color-bg);
    text-align: center;
}

/* Zwei schwebende Kreise als Dekoration */
.cta__card::before,
.cta__card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgb(251 247 242 / .25);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.cta__card::before {
    top: -180px;
    left: -120px;
    width: 420px;
    height: 420px;
}

.cta__card::after {
    right: -60px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    background: rgb(251 247 242 / .07);
    animation-delay: -5s;
}

@keyframes float {
    50% {
        transform: translate(24px, -16px) scale(1.05);
    }
}

.cta__card .eyebrow {
  color: var(--color-bg);
}

/* Fokus-Rahmen auf Terrakotta: hell statt Terrakotta, sonst unsichtbar */
.cta__card :focus-visible {
  outline-color: var(--color-bg);
}

.cta__card em {
    color: var(--color-rose);
}

.cta__title {
    max-width: 18ch;
    margin: 0 auto 1.25rem;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.cta__text {
    max-width: 34rem;
    margin: 0 auto 2rem;
}

/* -------------------------------------------------------------
 13. Kontakt
 ------------------------------------------------------------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.contact__text {
    max-width: 30rem;
    color: var(--color-muted);
}

.contact__card {
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 32px;
    background: var(--color-bg-alt);
}

.contact__label {
    display: block;
    margin-bottom: .4rem;
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* E-Mail-Adresse groß, mit wachsender Unterstreichung */
.contact__mail {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .5s var(--ease-out), color .3s;
}

.contact__mail:hover {
    background-size: 100% 1px;
    color: var(--color-clay);
}

.contact__mail--small {
  font-size: 1.3rem;
}

/* E-Mail & Instagram unter dem Text */
.contact__direct {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  margin-top: 2.5rem;
}

.contact__direct .contact__mail {
  margin-bottom: 0;
}

/* --- Kontaktformular ----------------------------------------- */

/* Ausgeblendete Elemente wirklich ausblenden (auch bei display: grid) */
[hidden] {
  display: none !important;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: .4rem;
}

.field__label {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.field__input {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgb(58 46 40 / .18);
  border-radius: 14px;
  background: var(--color-bg);
  font: inherit;
  color: var(--color-ink);
  transition: border-color .25s, box-shadow .25s;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-clay);
  box-shadow: 0 0 0 3px rgb(158 87 55 / .15);
}

/* Rot erst, nachdem jemand das Feld bearbeitet hat */
.field__input:user-invalid {
  border-color: #B3261E;
}

textarea.field__input {
  min-height: 9rem;
  resize: vertical;
}

/* Auswahlliste mit eigenem, feinem Pfeil */
select.field__input {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233A2E28' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}

/* Lockfeld für Spam-Bots: unsichtbar, aber vorhanden */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button {
  justify-self: start;
}

.contact-form .button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.contact-form__privacy {
  font-size: .85rem;
  color: var(--color-muted);
}

.contact-form__privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fehlermeldung – nur sichtbar, wenn sie Text enthält */
.contact-form__status {
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: #FBE9E4;
  font-size: .95rem;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status a {
  text-decoration: underline;
}

/* Danke-Meldung nach dem Absenden */
.contact-form__success {
  padding-block: 2rem;
  text-align: center;
  outline: none;
}

.contact-form__success h3 {
  margin-bottom: .6rem;
  font-size: 1.8rem;
}

.contact-form__success p {
  color: var(--color-muted);
}

@media (max-width: 520px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form .button {
    justify-self: stretch;
    justify-content: center;
  }
}

/* -------------------------------------------------------------
 14. Footer
 ------------------------------------------------------------- */
.footer {
    padding-block: 2.5rem;
    border-top: 1px solid var(--color-line);
    font-size: .9rem;
    color: var(--color-muted);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__brand {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-ink);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a:hover {
    color: var(--color-clay);
}

/* -------------------------------------------------------------
 15. Rechtliche Seiten (Impressum, Datenschutz)
 ------------------------------------------------------------- */
.legal {
    max-width: 48rem;
    padding-block: 4rem var(--section-space);
}

.legal__back {
    display: inline-block;
    margin-bottom: 3rem;
    font-size: .95rem;
    color: var(--color-clay);
}

.legal h1 {
    margin-bottom: 2rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.legal h2 {
    margin: 2.5rem 0 .75rem;
    font-size: 1.5rem;
}

.legal p,
.legal li {
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.legal a:not(.legal__back) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------------------------------------------------------------
 16. Fehlermeldung (z. B. bei Tippfehler in content.json)
 ------------------------------------------------------------- */
.load-error {
    max-width: 40rem;
    margin: calc(var(--header-height) + 3rem) auto 3rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #E7B9A9;
    border-radius: var(--radius);
    background: #FBE9E4;
}

.load-error h2 {
    margin-bottom: .75rem;
    font-size: 1.5rem;
}

.load-error p {
    margin-bottom: .75rem;
}

.load-error code {
    font-size: .9rem;
    overflow-wrap: anywhere;
}

/* -------------------------------------------------------------
 17. Scroll-Animationen
 Elemente mit .reveal blenden beim Scrollen ein.
 Nur aktiv, wenn keine reduzierte Bewegung gewünscht ist.
 ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition:
            opacity .9s var(--ease-out),
            transform .9s var(--ease-out);
        transition-delay: var(--delay, 0s);
    }

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* -------------------------------------------------------------
 18. Responsive
 ------------------------------------------------------------- */

/* Tablet & Smartphone */
@media (max-width: 900px) {

    /* Burger-Button */
    .burger {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .burger__line {
        width: 26px;
        height: 1.5px;
        background: var(--color-ink);
        transition: transform .4s var(--ease-out);
    }

    /* Aus zwei Linien wird ein X */
    .menu-open .burger__line:first-child {
        transform: translateY(4.25px) rotate(45deg);
    }

    .menu-open .burger__line:last-child {
        transform: translateY(-4.25px) rotate(-45deg);
    }

    /* Vollbild-Menü, fährt von oben herein */
    .nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        background: var(--color-bg);
        transform: translateY(-100%);
        visibility: hidden;
        transition:
            transform .6s cubic-bezier(.7, 0, .2, 1),
            visibility 0s .6s;
    }

    .menu-open .nav {
        transform: none;
        visibility: visible;
        transition: transform .6s cubic-bezier(.7, 0, .2, 1);
    }

    .nav__link {
        font-family: var(--font-serif);
        font-size: 2rem;
    }

    /* Layouts einspaltig */
    .hero {
        min-height: auto;
    }

    .hero__grid,
    .about__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        justify-self: center;
        max-width: 400px;
    }

    .about__media {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .values {
        border-radius: 32px 32px 0 0;
    }

    .values__grid,
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Kleine Smartphones */
@media (max-width: 520px) {
    .container {
        width: calc(100% - 2rem);
    }

    .values__grid {
        grid-template-columns: 1fr;
    }

    .hero__actions .button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .badge {
        width: 96px;
    }

    .about__media::before {
        inset: 1rem -.75rem -1rem .75rem;
    }
}

/* -------------------------------------------------------------
 19. Reduzierte Bewegung
 Für Menschen, die in ihrem System "Bewegung reduzieren"
 eingestellt haben. Alle Inhalte bleiben sichtbar.
 ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* -------------------------------------------------------------
   20. Hintergrund "Seidenschimmer"
   -------------------------------------------------------------
   Ein seidiger Farbverlauf in den Glasurfarben, darauf wenige
   große, zarte Scheiben (meist am Rand angeschnitten).
   Die Ebene .ambient und die Scheiben erzeugt main.js.

   Variable (setzt main.js):
     --scroll   0 = Seitenanfang, 1 = Seitenende
   ------------------------------------------------------------- */
.ambient {
  --scroll: 0;

  position: fixed;
  inset: 0;
  z-index: -1;                       /* liegt hinter allen Inhalten */
  overflow: hidden;
  pointer-events: none;              /* blockiert keine Klicks */
  background-color: var(--color-bg);
}

/* Hauchfeine Körnung über allem */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Seidiger Farbverlauf, der beim Scrollen weiterwandert
   und ganz leicht "atmet" */
.ambient__silk {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    #F4E1D9 0%,
    #FBF7F2 18%,
    #E5ECF1 36%,
    #FBF7F2 52%,
    #E8ECE0 68%,
    #FBF7F2 84%,
    #F4E1D9 100%
  );
  background-size: 300% 300%;
  background-position: calc(var(--scroll) * 100%) calc(var(--scroll) * 60%);
  animation: silk-breathe 14s ease-in-out infinite;
}

@keyframes silk-breathe {
  50% { opacity: .75; }
}

/* Scheiben. Werte je Scheibe setzt main.js:
     --x, --y      Mittelpunkt
     --size        Durchmesser
     --tone        Farbe
     --speed       Wanderung beim Scrollen (Tiefenwirkung)
     --fx, --fy    Weg der langsamen Schwebebewegung
     --duration    Dauer der Schwebebewegung
     --delay       Versatz, damit nicht alle gleichzeitig schweben */
.ambient__circle {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  aspect-ratio: 1;
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);   /* zentriert auf x/y */
  border-radius: 50%;
  background: var(--tone);
  translate: 0 calc(var(--scroll) * var(--speed) * 1vh);
  animation: circle-float var(--duration) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes circle-float {
  to { transform: translate(var(--fx), var(--fy)) scale(1.04); }
}

/* Werte & Produkte leicht durchscheinend, damit der Hintergrund
   auch dort zu sehen ist (überschreibt Abschnitt 10 und 11) */
.values,
.products {
  background: rgb(243 234 224 / .55);
}

/* Reduzierte Bewegung: Farben bleiben, Bewegung entfällt */
@media (prefers-reduced-motion: reduce) {
  .ambient__silk,
  .ambient__circle {
    translate: none;
    animation: none;
  }
}

/* -------------------------------------------------------------
   21. Barrierefreiheit: Animationen anhalten
   Der Schalter im Footer setzt die Klasse .motion-paused am
   html-Element. Alle Animationen bleiben dann stehen.
   ------------------------------------------------------------- */
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

.footer__motion {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer__motion:hover {
  color: var(--color-clay);
}

/* Wer "Bewegung reduzieren" eingestellt hat, braucht den Schalter nicht */
@media (prefers-reduced-motion: reduce) {
  .footer__motion {
    display: none;
  }
}