/* ==========================================================================
   Kreativwerkstatt & Atelier Alex – style.css
   Design System „Atelier Alex“, Umsetzung der Artboards (Desktop 1280, mobil 390)
   Mobile-first; Desktop-Layout ab 900px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften (lokal, OFL). Kein externer Request.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Shantell Sans";
  src: url("../fonts/ShantellSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shantell Sans";
  src: url("../fonts/ShantellSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens (tokens.json)
   -------------------------------------------------------------------------- */
:root {
  /* Farben */
  --papier:  #FAF9F6;
  --kraft:   #D8C3A2;
  --tinte:   #1E2A45;
  --tinte-2: #4E5A72;
  --markise: #2A62A6;
  --himmel:  #DDE7F3;
  --ziegel:  #8E3A27;
  --linie:   #D9D3C7;

  /* Schriftfamilien */
  --font-hand: "Shantell Sans", "Segoe Print", "Comic Sans MS", cursive;
  --font-text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Abstände */
  --space-2:  8px;
  --space-4:  16px;
  --space-6:  24px;
  --space-10: 40px;
  --space-16: 64px;

  /* Radien */
  --radius-s: 4px;
  --radius-m: 12px;
  --radius-rund: 50%;

  /* Seitenrand: mobil 24px, Desktop 64px */
  --rand: var(--space-6);
  --seite-max: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

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

p {
  margin: 0;
}

a {
  color: var(--markise);
}
a:hover {
  color: var(--tinte);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--markise);
  outline-offset: 3px;
}
/* Auf tinte-Flächen ist markise als Fokusring zu schwach: dort papier. */
.dunkel a:focus-visible,
.dunkel button:focus-visible {
  outline-color: var(--papier);
}

/* Skip-Link für Tastaturnutzer */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--tinte);
  color: var(--papier);
  font-weight: 700;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
  color: var(--papier);
}

/* --------------------------------------------------------------------------
   4. Typografie-Stile (Design System)
   -------------------------------------------------------------------------- */
.display,
.titel,
.notiz {
  font-family: var(--font-hand);
  margin: 0;
}
.display {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
}
.titel {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
}
.notiz {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}
.lead {
  font-size: 18px;
  line-height: 28px;
}
.body {
  font-size: 17px;
  line-height: 27px;
}
.klein {
  font-size: 14px;
  line-height: 20px;
}
.sekundaer {
  color: var(--tinte-2);
}
.akzent {
  color: var(--ziegel);
}

/* Unterseiten: sachliche Zwischenüberschriften in Nunito Sans */
.text-seite h2 {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-6);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--papier);
  background: var(--markise);
  border: 0;
  cursor: pointer;
}
.button:hover {
  color: var(--papier);
  background: var(--tinte);
}
.button--hell {
  color: var(--tinte);
  background: var(--papier);
}
.button--hell:hover {
  color: var(--tinte);
  background: var(--himmel);
}
/* Spezifität: .dunkel a würde die Buttonfarbe überschreiben */
.dunkel .button--hell {
  color: var(--tinte);
}

/* --------------------------------------------------------------------------
   6. Layout-Container
   -------------------------------------------------------------------------- */
.inhalt {
  width: 100%;
  max-width: var(--seite-max);
  margin: 0 auto;
  padding-left: var(--rand);
  padding-right: var(--rand);
}

/* --------------------------------------------------------------------------
   7. Header und Navigation
   -------------------------------------------------------------------------- */
.kopf {
  position: relative;
}
.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.marke {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--tinte);
}
.marke:hover {
  color: var(--tinte);
}
.marke img {
  width: 48px;
  height: 48px;
}
.marke__name {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* Menü-Schalter (nur mobil) */
.menue-schalter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--tinte);
  border-radius: var(--radius-s);
  color: var(--tinte);
  cursor: pointer;
}
.menue-schalter svg {
  width: 24px;
  height: 24px;
}
.menue-schalter .icon-schliessen {
  display: none;
}
.menue-schalter[aria-expanded="true"] .icon-oeffnen {
  display: none;
}
.menue-schalter[aria-expanded="true"] .icon-schliessen {
  display: block;
}

/* Navigation: mobil ausgeklappt als Liste unter dem Kopf */
.navi {
  display: none;
  flex-direction: column;
  gap: 4px;
  flex-basis: 100%;
  order: 3;
  margin-top: 12px;
  padding: var(--space-2) 0 var(--space-4);
  border-top: 1px solid var(--linie);
}
.navi--offen,
.no-js .navi {
  display: flex;
}
.no-js .menue-schalter {
  display: none;
}
.navi a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--tinte);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.navi a:hover {
  color: var(--markise);
}
.navi a[aria-current="page"]:not(.button) {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--markise);
}
.navi .button {
  align-self: flex-start;
  margin-top: var(--space-2);
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
  color: var(--papier);
}
.navi .button:hover {
  color: var(--papier);
}

/* --------------------------------------------------------------------------
   8. Abschnitte der Startseite
   -------------------------------------------------------------------------- */
.abschnitt {
  padding-top: 56px;
  padding-bottom: 56px;
}
.abschnitt--himmel {
  background: var(--himmel);
}
.dunkel {
  background: var(--tinte);
  color: var(--papier);
}
.dunkel a {
  color: var(--papier);
}
.dunkel .titel {
  color: var(--papier);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-top: 32px;
  padding-bottom: var(--space-16);
}
.hero__stempel {
  width: 200px;
  height: 200px;
}
.hero .display {
  margin-top: var(--space-4);
}
.hero .lead {
  max-width: 680px;
}

/* Über mich */
.ueber {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.portraet {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  margin: var(--space-4);
  object-fit: cover;
  border-radius: var(--radius-rund);
  /* doppelter Stempelring in markise, Zwischenräume in himmel */
  box-shadow:
    0 0 0 6px var(--himmel),
    0 0 0 9px var(--markise),
    0 0 0 14px var(--himmel),
    0 0 0 16px var(--markise);
}
.ueber__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}
.ueber__text p {
  max-width: 640px;
}

/* Märkte */
.maerkte {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.termin {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px var(--space-6);
  background: var(--kraft);
  color: var(--tinte);
  border-radius: 12px 40px 40px 12px; /* Kraftkarton-Anhänger */
}
.termin__loch {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 6px;
  border-radius: var(--radius-rund);
  background: var(--papier);
  border: 3px solid var(--tinte);
}
.termin__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.termin__datum {
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
}
.termin__ort {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.termin__hinweis {
  font-size: 16px;
  line-height: 24px;
}

/* Atelier */
.atelier {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.atelier__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.atelier__text p {
  max-width: 640px;
}
.atelier__stempel {
  display: none;
}

/* Teaser „Schreib mir“ */
.teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}
.teaser p {
  max-width: 640px;
}

/* --------------------------------------------------------------------------
   9. Unterseiten
   -------------------------------------------------------------------------- */
.seite {
  padding-top: var(--space-10);
  padding-bottom: 80px;
}

/* Kontakt */
.kontakt {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.kontakt__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 640px;
}
.kontakt__karten {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.karte {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--kraft);
  color: var(--tinte);
  border-radius: var(--radius-m);
}
.karte .notiz {
  font-size: 22px;
}
.karte a {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--tinte);
  overflow-wrap: anywhere;
}
/* Domain nicht am Bindestrich trennen; Umbruch nur nach dem @ (per <wbr>) */
.nobr {
  white-space: nowrap;
}
.karte a:hover {
  color: var(--markise);
}
.karte p {
  font-weight: 700;
}
.kontakt__stempel {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  transform: rotate(-6deg);
}

/* Impressum, Datenschutz */
.text-seite {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
}
.text-seite section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.fuss {
  margin-top: auto;
  background: var(--tinte);
  color: var(--papier);
  font-size: 14px;
  line-height: 20px;
}
.fuss__zeile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: 32px;
  padding-bottom: 32px;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.fuss a {
  color: var(--papier);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.fuss a:hover {
  color: var(--himmel);
}

/* --------------------------------------------------------------------------
   11. Desktop-Layout ab 900px (Artboard 1280)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root {
    --rand: var(--space-16);
  }

  .display {
    font-size: 56px;
    line-height: 64px;
  }
  .titel {
    font-size: 34px;
    line-height: 40px;
  }
  .notiz {
    font-size: 22px;
  }
  .lead {
    font-size: 20px;
    line-height: 30px;
  }

  /* Header */
  .kopf__zeile {
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
  .marke {
    gap: 12px;
  }
  .marke img {
    width: 64px;
    height: 64px;
  }
  .marke__name {
    font-size: 22px;
  }
  .menue-schalter {
    display: none;
  }
  .navi,
  .no-js .navi {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-basis: auto;
    order: 0;
    margin-top: 0;
    padding: 0;
    border-top: 0;
  }
  .navi a {
    min-height: 44px;
  }
  .navi .button {
    align-self: auto;
    margin-top: 0;
    margin-left: var(--space-2);
  }

  /* Abschnitte */
  .abschnitt {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .hero {
    gap: var(--space-6);
    padding-top: var(--space-16);
    padding-bottom: 96px;
  }
  .hero__stempel {
    width: 280px;
    height: 280px;
  }
  .hero .display {
    max-width: 900px;
  }

  .abschnitt--himmel {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
  .ueber {
    flex-direction: row;
    gap: var(--space-16);
  }
  .portraet {
    width: 280px;
    height: 280px;
    margin: 20px;
    box-shadow:
      0 0 0 8px var(--himmel),
      0 0 0 11px var(--markise),
      0 0 0 17px var(--himmel),
      0 0 0 19px var(--markise);
  }
  .ueber__text {
    gap: var(--space-4);
    align-self: auto;
  }

  .maerkte {
    align-items: center;
    gap: 32px;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .termin {
    width: 720px;
    max-width: 100%;
    align-items: center;
    gap: var(--space-10);
    padding: var(--space-10) 48px;
    border-radius: 12px 48px 48px 12px;
  }
  .termin__loch {
    width: 28px;
    height: 28px;
    margin-top: 0;
  }
  .termin__text {
    gap: var(--space-2);
  }
  .termin__datum {
    font-size: 34px;
    line-height: 40px;
  }
  .termin__ort {
    font-size: 20px;
    line-height: 30px;
  }
  .termin__hinweis {
    font-size: 17px;
    line-height: 27px;
  }

  .atelier {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-16);
  }
  .atelier__stempel {
    display: block;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    opacity: 0.9;
  }

  /* Unterseiten */
  .seite {
    padding-top: var(--space-16);
    padding-bottom: 112px;
  }
  .kontakt {
    flex-direction: row;
    align-items: flex-start;
    gap: 96px;
  }
  .kontakt__karten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--space-4);
  }
  .karte {
    padding: 32px;
  }
  .karte--breit {
    grid-column: 1 / -1;
  }
  .kontakt__stempel {
    width: 360px;
    height: 360px;
    margin: var(--space-10) 0 0;
  }

  /* Footer */
  .fuss__zeile {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   12. Druck
   -------------------------------------------------------------------------- */
@media print {
  .skip-link,
  .menue-schalter,
  .navi,
  .fuss nav {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .dunkel,
  .abschnitt--himmel,
  .termin,
  .karte {
    background: transparent;
    color: #000;
  }
  a {
    color: #000;
  }
}
