/* ==========================================================================
   Pandomirwelt · Stylesheet
   Farben und Schriften nach dem Pandomir-Styleguide vom 28.10.2026.

   Alles liegt auf dem eigenen Webspace: keine Google Fonts, keine Adobe
   Fonts, kein CDN. Dadurch werden beim Seitenaufruf keine Daten an fremde
   Server übertragen und ihr braucht keinen Cookie-Banner.
   ========================================================================== */


/* ---------- 1. Schriften (lokal) ---------------------------------------- */

/* Handschrift für Überschriften: Ersatz für Market Pro, frei lizenziert
   (SIL Open Font License, Lizenz liegt im Ordner fonts). */
@font-face {
  font-family: "Pandomir Hand";
  src: url("../fonts/pandomir-hand.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Montserrat: Die beiden Dateien Montserrat-Regular.ttf und
   Montserrat-SemiBold.ttf aus dem Google-Fonts-Download (Unterordner
   „static“) in assets/fonts/ legen. Mehr ist nicht zu tun.
   Solange die Dateien fehlen, nimmt der Browser eine ähnliche Systemschrift. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ---------- 2. Farben und Grundwerte ------------------------------------ */

:root {
  /* Grün – Styleguide Reihe 1 */
  --gruen-1: #5A8250;
  --gruen-2: #7B9B74;
  --gruen-3: #9BB497;
  --gruen-4: #BCCDBA;
  --gruen-5: #DCE6DD;

  /* Grau – Styleguide Reihe 2 */
  --grau-1: #373631;
  --grau-2: #5F5E59;
  --grau-3: #878682;
  --grau-4: #AEAEAC;
  --grau-5: #D7D7D5;

  /* Beige – Styleguide Reihe 3 */
  --beige-1: #E3DBD0;
  --beige-2: #E6E2D9;
  --beige-3: #EDE8E2;
  --beige-4: #F2F1EC;
  --beige-5: #F9F8F4;

  /* Rollen */
  --text: var(--grau-1);
  --text-leise: var(--grau-2);
  --seite: var(--beige-3);
  --flaeche: var(--beige-5);
  --kontur: var(--grau-1);

  --schrift-hand: "Pandomir Hand", cursive;
  --schrift-text: "Montserrat", "Avenir Next", Avenir, "Century Gothic",
                  "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Abgerundete Felder mit feiner dunkler Kontur – wie die Farbfelder im Styleguide */
  --radius: 26px;
  --radius-klein: 16px;
  --rand: 1.5px solid var(--kontur);
  --rand-abstand: clamp(16px, 4vw, 40px);
}


/* ---------- 3. Grundgerüst ---------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--seite);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.3s ease;
}
a:hover { color: var(--gruen-1); }

:focus-visible {
  outline: 3px solid var(--gruen-1);
  outline-offset: 3px;
  border-radius: 6px;
}

.nur-fuer-screenreader {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ---------- 4. Bausteine (für spätere Seiten wiederverwendbar) ---------- */

/* Karte: helles Feld mit runder Ecke und Kontur */
.karte {
  background: var(--flaeche);
  border: var(--rand);
  border-radius: var(--radius);
}

/* Knopf im Stil der Farbfelder */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.35em;
  background: var(--gruen-4);
  border: var(--rand);
  border-radius: var(--radius-klein);
  color: var(--grau-1);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.knopf:hover { background: var(--gruen-3); color: var(--grau-1); }
.knopf__pfeil { width: 1.05em; height: 1.05em; flex: none; }

/* Drei feine Wellenlinien – kleines Zeichen des Key-Visuals */
.wellenzeichen {
  width: 96px;
  height: auto;
  color: var(--gruen-3);
}


/* ---------- 5. Startseite ----------------------------------------------- */

.buehne {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 560px;
  padding: var(--rand-abstand) clamp(16px, 6vw, 104px);
  overflow: hidden;
  isolation: isolate;
}

.buehne__bild {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.buehne__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
}

.buehne__karte {
  width: min(430px, 100%);
  padding: clamp(26px, 3vw, 38px);
  background: rgba(249, 248, 244, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 48px -28px rgba(55, 54, 49, 0.45);
}

.buehne__titel { margin: 0; }
.buehne__titel img { width: 100%; max-width: 330px; height: auto; }

.buehne__karte .wellenzeichen { margin: 14px 0 18px; }

.buehne__nutzen {
  margin: 0 0 0.7rem;
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 600;
  line-height: 1.4;
}

.buehne__text {
  margin: 0 0 1.6rem;
  color: var(--text-leise);
}

.buehne__handle {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-leise);
}

/* sanftes Erscheinen – nur wenn das Gerät Bewegung erlaubt */
@media (prefers-reduced-motion: no-preference) {
  .buehne__karte { animation: auftauchen 1.6s ease-out 0.3s both; }
  @keyframes auftauchen {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Handy und Tablet hochkant: Bild oben, Text darunter */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1100px) {
  .buehne {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 0 0 28px;
  }
  .buehne__bild {
    position: relative;
    inset: auto;
    height: 60vh;
    height: 60svh;
    min-height: 340px;
  }
  .buehne__bild img { object-position: 46% 42%; }
  .buehne__bild::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 20%;
    background: linear-gradient(to bottom, rgba(237, 232, 226, 0), var(--seite));
  }
  .buehne__karte {
    position: relative;
    width: auto;
    max-width: 560px;
    margin: -56px 16px 0;
  }
  /* Tablet hochkant: Querformat-Bild, Ausschnitt mit Pandomir und See */
  @media (min-width: 600px) {
    .buehne__bild { height: 64vh; height: 64svh; }
    .buehne__bild img { object-position: 26% 50%; }
    .buehne__karte { margin-inline: auto; }
  }
}

/* Breite Bildschirme: Fußzeile liegt unten auf dem Bild statt darunter */
@media (min-width: 721px) and (orientation: landscape), (min-width: 1101px) {
  .startseite { position: relative; }
  .startseite .buehne { padding-bottom: 76px; }
  .startseite .fusszeile {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding-top: 28px;
    border-top: 0;
    background: linear-gradient(to top, rgba(255, 247, 241, 0.92) 40%, rgba(255, 247, 241, 0));
  }
}


/* ---------- 6. Textseiten (Impressum, Datenschutz) ---------------------- */

/* Hintergrund mit den feinen Wellen aus dem Styleguide */
.textseite::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--seite) url("../img/wellen.svg") center / cover no-repeat;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(820px, 100% - 32px);
  margin: 0 auto;
  padding: 22px 0 14px;
}
.kopf__marke img { width: auto; height: 34px; }
.kopf__zurueck {
  font-size: 0.9rem;
  color: var(--text-leise);
  text-decoration: none;
}
.kopf__zurueck:hover { text-decoration: underline; }

.textblatt {
  flex: 1;
  width: min(820px, 100% - 32px);
  margin: 10px auto 40px;
  padding: clamp(26px, 5vw, 56px);
}

.textblatt h1 {
  margin: 0 0 0.2em;
  font-family: var(--schrift-hand);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gruen-1);
  -webkit-text-stroke: 0.035em currentColor;
}

.textblatt h2 {
  margin: 2.2em 0 0.5em;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}
.textblatt h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 0.7em;
  border-radius: 3px;
  background: var(--gruen-3);
}

.textblatt h3 {
  margin: 1.6em 0 0.3em;
  font-size: 1rem;
  font-weight: 600;
}

.textblatt p,
.textblatt ul { margin: 0 0 1em; max-width: 68ch; }
.textblatt ul { padding-left: 1.2em; }
.textblatt li { margin-bottom: 0.35em; }

.textblatt address { font-style: normal; }

.hinweis-klein {
  font-size: 0.88rem;
  color: var(--text-leise);
}

.kurzfassung {
  margin: 1.4em 0 0;
  padding: 1.1em 1.3em;
  background: var(--gruen-5);
  border-radius: var(--radius-klein);
}
.kurzfassung p:last-child { margin-bottom: 0; }

.textblatt a { overflow-wrap: anywhere; }


/* ---------- 7. Fußzeile (auf jeder Seite gleich) ------------------------ */

.fusszeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  padding: 16px var(--rand-abstand) 20px;
  background: var(--seite);
  border-top: 1px solid var(--beige-1);
  font-size: 0.86rem;
  color: var(--text-leise);
}
.fusszeile a { color: var(--text); }
.fusszeile a[aria-current="page"] { color: var(--gruen-1); text-decoration: none; }
