/* ============================================================
   GTK-Field — Produktseite gtk-field.app
   Gemeinsames Stylesheet fuer index / datenschutz /
   haftungsausschluss / impressum. Kein Build-Schritt: was hier
   steht, liefert Cloudflare Pages unveraendert aus.
   ============================================================ */

/* ── Schriften ───────────────────────────────────────────────
   Barlow und Barlow Condensed liegen in assets/fonts/ und werden
   von dieser Domain ausgeliefert — nicht vom Google-CDN. Ein
   <link> dorthin uebertraegt die IP-Adresse jedes Besuchers an
   Google; dafuer gibt es hier keine Rechtsgrundlage. Dieselbe
   Entscheidung wie in der App (IBM Plex, 209e0e1) und im
   WordPress-Theme.

   Gebuendelt ist nur, was das Stylesheet belegt anfordert:
   Barlow 300 (body) und 500 (strong), Barlow Condensed 500 und
   700. Je latin und latin-ext — die Umlaute, das Paragraphen-
   zeichen, der Gedankenstrich und der Mittelpunkt der
   Rechtstexte liegen alle im latin-Bereich; latin-ext deckt ab,
   was aus fremdsprachigen Namen dazukommen kann. Der Browser
   laedt anhand der unicode-range nur, was die Seite braucht.

   Keine Kursive: font-style: italic kommt im Stylesheet nicht
   vor. Kein woff-Zwilling: woff2 kann jeder Browser seit 2017.
   ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-300-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-ext-300-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:    #1a1d23;
  --cream:  #f5f1ea;
  --gold:   #c8ad87;
  --green:  #2e5e42;
  --text:   #444;
  --text-2: #555;
  --muted:  #888;
  --rule:   rgba(200, 173, 135, 0.3);
  --rule-strong: rgba(200, 173, 135, 0.6);

  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --breite: 960px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
}

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

a { color: var(--green); }
a:hover { color: var(--ink); }

/* Fokus bleibt sichtbar — auf jedem Bedienelement, auf hellem wie
   dunklem Grund. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-family: var(--cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 100;
}
.sprungmarke:focus {
  left: 1rem;
  top: 1rem;
  color: var(--cream);
}

/* ── Grundraster ─────────────────────────────────────────── */

.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kopf {
  border-bottom: 1px solid var(--rule);
}
.kopf .huelle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.marke {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.marke:hover { color: var(--green); }
.kopf-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kopf-nav a { color: var(--text-2); text-decoration: none; }
.kopf-nav a:hover { color: var(--gold); }

main { display: block; }
.inhalt { padding-top: 4rem; padding-bottom: 4rem; }

/* ── Typografie ──────────────────────────────────────────── */

.strichzeile {
  font-family: var(--cond);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.strichzeile::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  flex: none;
}

h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2rem, 8.5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 1rem;
  /* Lange deutsche Komposita ("Haftungsausschluss") laufen auf 390 px sonst
     aus der Seite heraus — gemessen 457 px Textbreite bei 355 px Spalte. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.nebenverweis {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.vorspann {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 680px;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.trenner {
  width: 100%;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0 0 3rem;
}

/* ── Store-Knoepfe ───────────────────────────────────────── */

.laden { margin-bottom: 3rem; }
.laden + .laden { margin-top: -1.5rem; }

.knopf {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s ease;
}
.knopf:hover { background: var(--green); color: var(--cream); }

.knopf-zusatz {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Galerie ─────────────────────────────────────────────── */

.galerie { margin-bottom: 3rem; }

.galerie__raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.galerie__knopf {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(200, 173, 135, 0.4);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.galerie__knopf:hover,
.galerie__knopf:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(26, 29, 35, 0.18);
}

.galerie__knopf img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.galerie__knopf:hover img { transform: scale(1.04); }

.galerie__lupe {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(26, 29, 35, 0.7);
  border: 1px solid var(--rule-strong);
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.galerie__unterschrift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-family: var(--cond);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  text-align: left;
  /* "Schichtenverzeichnis" ist breiter als die Kachel — die Kachel schneidet
     mit overflow:hidden ab. Lieber umbrechen als abschneiden. */
  line-height: 1.3;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Lightbox */
.lichtkasten {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 21, 0.94);
  padding: 24px;
}
.lichtkasten[open],
.lichtkasten.ist-offen { display: flex; }

.lichtkasten__figur {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lichtkasten__bild {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(200, 173, 135, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lichtkasten__unterschrift {
  margin-top: 12px;
  font-family: var(--cond);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
}

.lichtkasten__schliessen,
.lichtkasten__pfeil {
  position: absolute;
  background: rgba(26, 29, 35, 0.85);
  border: 1px solid rgba(200, 173, 135, 0.5);
  color: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lichtkasten__schliessen:hover,
.lichtkasten__pfeil:hover {
  background: var(--gold);
  color: var(--ink);
}
.lichtkasten__schliessen {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
}
.lichtkasten__pfeil {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}
.lichtkasten__pfeil--zurueck { left: 16px; }
.lichtkasten__pfeil--vor { right: 16px; }

/* ── Kacheln ─────────────────────────────────────────────── */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.kachel {
  padding: 2rem;
  background: var(--cream);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
.kachel__marke {
  font-family: var(--cond);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.kachel p:last-child {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}

/* ── Hinweiskaesten (dunkel) ─────────────────────────────── */

.kasten {
  padding: 2rem 2.5rem;
  background: var(--ink);
  border-radius: 4px;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.kasten__zeichen {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.2rem;
}
.kasten__marke {
  font-family: var(--cond);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.kasten p {
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}
.kasten strong { color: var(--gold); font-weight: 500; }
.kasten a { color: var(--gold); font-size: 0.85rem; }
.kasten a:hover { color: #fff; }
.kasten__verweis { margin-top: 0.75rem !important; }

/* ── Technische Details ──────────────────────────────────── */

.spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1.5rem;
}
.spalte {
  border-top: 2px solid rgba(200, 173, 135, 0.4);
  padding-top: 1rem;
}
.spalte__titel {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.spalte p:last-child {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
}

.abschnitt { margin-bottom: 4rem; }

.kontaktzeile {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: #666;
}

/* ── Rechtstexte ─────────────────────────────────────────── */

.rechtstext { max-width: 760px; }
.rechtstext h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.rechtstext h2:first-of-type { margin-top: 2rem; }
.rechtstext h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
}
.rechtstext p,
.rechtstext li {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
  overflow-wrap: break-word;
  hyphens: auto;
}
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.4rem; }
.rechtstext strong { font-weight: 500; color: var(--ink); }

.stand {
  font-family: var(--cond);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}

.anschrift {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 2rem;
}
.anschrift strong { display: block; color: var(--ink); font-weight: 500; }

.warnkasten {
  background: var(--ink);
  border-radius: 4px;
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.5rem;
}
.warnkasten p { color: var(--cream); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.warnkasten .kasten__marke { margin-bottom: 0.5rem; }

/* Impressum-Zeilen */
.angaben { margin: 0 0 2rem; }
.angaben dt {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 1.5rem;
}
.angaben dd {
  margin: 0.3rem 0 0;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}

/* ── Fusszeile ───────────────────────────────────────────── */

.fuss {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.fuss .huelle {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.fuss-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--cond);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fuss-nav a { color: var(--gold); text-decoration: none; }
.fuss-nav a:hover { color: #fff; text-decoration: underline; }
.fuss-anbieter {
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.72);
  margin: 0;
  line-height: 1.7;
}
.fuss-anbieter a { color: var(--gold); }

/* ── Schmale Geraete ─────────────────────────────────────── */

@media (max-width: 560px) {
  .huelle { padding: 0 1.1rem; }
  .inhalt { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .kachel { padding: 1.5rem; }
  .kacheln { gap: 1.5rem; }
  .kasten { padding: 1.5rem 1.5rem; gap: 1rem; }
  .galerie__raster { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .lichtkasten { padding: 12px; }
  .lichtkasten__pfeil { width: 38px; height: 38px; font-size: 20px; }
  .lichtkasten__pfeil--zurueck { left: 6px; }
  .lichtkasten__pfeil--vor { right: 6px; }
  .lichtkasten__schliessen { width: 34px; height: 34px; font-size: 18px; top: 10px; right: 10px; }
}

/* ── Bewegung ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .galerie__knopf:hover,
  .galerie__knopf:focus-visible { transform: none; }
  .galerie__knopf:hover img { transform: none; }
}

@media print {
  .kopf-nav, .galerie, .lichtkasten, .sprungmarke { display: none !important; }
  body { color: #000; }
  .kasten, .warnkasten { background: #fff; border: 1px solid #999; }
  .kasten p, .warnkasten p { color: #000; }
  .kasten__marke, .kasten strong { color: #000; }
}
