/* stablelogbook.com — ein Stylesheet. Für Ställe (entschieden am 26.09.2026): ernst und sachlich, derselbe Aufbau wie
   print-your-horse-diary.com, aber kein Sticker, keine Handschrift, nichts schief. Weisses Papier, die neutralen Grautöne
   des Buchs und ein Stallgrün für das, was man anklickt. Die Schrift ist die des Logbuchs selbst: Source Sans 3.
   Die Bilder macht ../../bilder/Bilder.java aus der Anwendung und den Stallfotos. */
/* Schriften von dieser Seite, nicht von Google: Die Seite verspricht «keine Cookies», und jeder Abruf bei Google Fonts
   schickt die IP-Adresse dorthin. Source Sans 3 (SIL Open Font License, assets/fonts/OFL-SourceSans3.txt), dieselben
   Dateien wie im Logbuch, auf Latein verkleinert (pyftsubset) – darin stehen Umlaute, Akzente, «», – und das schmale
   geschützte Leerzeichen des Französischen. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/sourcesans3-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/sourcesans3-600-latin.woff2") format("woff2"); }

:root {
  --papier: #ffffff;
  --flaeche: #f3f5f2;                         /* ein Hauch Grün im Grau: Kästen, Karten */
  --text: #262626;                            /* wie die Schrift im Buch: neutrales Grau, kein Blau-Schwarz */
  --text-2: #595959;
  --linie: #cfcfcf;
  --linie-hell: #e4e4e4;
  --gruen: #23412f;                           /* Stallgrün: Knöpfe, Links, der Fuss */
  --gruen-dunkel: #172c20;
  --gruen-hell: #e6eee8;
  --font: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px;
  --radius: 4px;
  --schatten-papier: 0 1px 2px rgba(0, 0, 0, .12), 0 6px 18px rgba(0, 0, 0, .09);
  --edge: clamp(16px, 5vw, 64px);
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.55; text-wrap: pretty; overflow-x: clip; font-variant-numeric: lining-nums; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 56px); max-width: 17ch; line-height: 1.06; }
h2 { font-size: clamp(25px, 3.2vw, 34px); max-width: 26ch; }
h3 { font-size: 19px; letter-spacing: 0; margin-bottom: var(--space-2); }
p, ul, ol { margin: 0 0 var(--space-4); max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
a { color: var(--gruen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-dunkel); text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 15px; line-height: 1.45; margin-top: var(--space-3); color: var(--text-2); max-width: var(--measure); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }
::selection { background: var(--gruen-hell); }
code { font-size: 0.92em; }

/* — Knöpfe — */
.btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font: inherit; font-weight: 600; font-size: 17px; line-height: 1.2; padding: 13px 22px; min-height: 48px; border-radius: var(--radius); border: 1px solid transparent; }
.btn-primary { background: var(--gruen); color: #fff; }
.btn-primary:hover { background: var(--gruen-dunkel); color: #fff; text-decoration: none; }
.nav .btn { font-size: 15px; padding: 10px 16px; min-height: 44px; }

/* — Kopf — */
header { border-bottom: 1px solid var(--linie-hell); }
.nav { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-3) var(--edge); position: relative; max-width: calc(1120px + 2 * var(--edge)); margin: 0 auto; }
/* Der Name schrumpft auf schmalen Bildschirmen – Sprache und Menüknopf bleiben immer in derselben Zeile */
.nav-brand { font-weight: 600; font-size: clamp(17px, 4.4vw, 20px); line-height: 1.2; flex: 1 1 0; min-width: 0; color: var(--gruen); text-decoration: none; letter-spacing: -0.005em; }
.nav-brand:hover { color: var(--gruen-dunkel); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: inherit; text-decoration: none; font-size: 16px; padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--gruen); text-decoration: underline; }
.nav-links a.btn:hover { color: #fff; text-decoration: none; }
/* Die Sprache: ein Aufklappmenü, ein <details> – geht auch ohne Skript; das Skript unten in jeder Seite schliesst es
   bei einem Klick daneben */
.sprachen { position: relative; }
.sprachen summary { list-style: none; cursor: pointer; font-size: 14px; letter-spacing: 0.04em; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--linie); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.sprachen summary::-webkit-details-marker { display: none; }
.sprachen summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sprachen[open] summary::after { transform: translateY(2px) rotate(225deg); }
.sprachen summary:hover { background: var(--flaeche); }
.sprachen ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 4px; min-width: 150px; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.sprachen li a { display: block; padding: 9px 12px; border-radius: 2px; color: inherit; text-decoration: none; font-size: 15px; }
.sprachen li a:hover { background: var(--flaeche); }
.sprachen li a[aria-current] { font-weight: 600; color: var(--gruen); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--linie); background: transparent; border-radius: var(--radius); color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--flaeche); }
.nav-toggle svg { display: block; }
.nav-toggle .x { display: none; }
.nav.open .nav-toggle .x { display: block; }
.nav.open .nav-toggle .bars { display: none; }
@media (max-width: 800px) {
  .nav { flex-wrap: wrap; gap: var(--space-2); }
  .nav-toggle { display: inline-flex; order: 3; }
  .sprachen { order: 2; }
  .nav > .btn { display: none; }
  .nav-links { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) 0 var(--space-3); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--linie-hell); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links .btn { display: inline-flex; margin-top: var(--space-3); justify-content: center; }
}
@media (min-width: 801px) { .nav-links .btn { display: none; } }

/* — Seite — */
main { padding: 0 var(--edge); max-width: calc(1120px + 2 * var(--edge)); margin: 0 auto; }
.section { padding: var(--space-12) 0; border-top: 1px solid var(--linie-hell); }
.hero + .section, .section:first-child { border-top: 0; }
.lede { font-size: 20px; line-height: 1.5; color: var(--text); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.note { color: var(--text-2); font-size: 16px; margin-top: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6) var(--space-8); }
.grid-3 p { font-size: 16px; margin: 0; }

/* Die Schritte sind eine Folge – darum Nummern, auf einer Linie wie ein Formularfeld */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6) var(--space-8); max-width: none; }
.steps li { border-top: 2px solid var(--gruen); padding-top: var(--space-3); }
.steps .num { font-weight: 600; font-size: 15px; color: var(--gruen); margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.steps p { font-size: 16px; margin: 0; }

.trust { list-style: none; padding: 0; max-width: var(--measure); }
.trust li { padding: var(--space-3) 0 var(--space-3) 30px; border-bottom: 1px solid var(--linie-hell); position: relative; }
.trust li:last-child { border-bottom: 0; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 8px; border-left: 2px solid var(--gruen); border-bottom: 2px solid var(--gruen); transform: rotate(-45deg); }

/* Das Papier: Seiten aus dem Logbuch liegen auf der Seite, gerade, mit einem leisen Schatten */
.papier { background: #fff; box-shadow: var(--schatten-papier); }
.foto { border-radius: 2px; }

/* — Vorne: Titel, Text, Knopf; darunter die Stallgasse über die ganze Breite — */
.hero { padding: var(--space-12) 0 var(--space-8); }
.hero .lede { max-width: 58ch; }
/* Breit: links der Titel und darunter das Geschenk, rechts Text und Knopf */
@media (min-width: 900px) {
  .hero-kopf { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "titel text" "gift text"; column-gap: var(--space-12); align-items: start; }
  .hero-kopf h1 { grid-area: titel; margin: 0; }
  .hero-text { grid-area: text; }
  .hero-kopf .gift { grid-area: gift; align-self: end; }
  .hero .lede { font-size: 19px; }
}
.hero-bild { margin-top: var(--space-8); }
.hero-bild img { width: 100%; aspect-ratio: 2400 / 1129; object-fit: cover; }
@media (max-width: 600px) { .hero-bild img { aspect-ratio: 4 / 3; object-position: 55% 50%; } }

/* Das Regal: ein Umschlag pro Pferd, nach Namen geordnet, auf einem Brett. Das Eine, das man sich merken soll. */
.regal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2.2vw, 28px); align-items: end; padding: 0 clamp(8px, 2vw, 24px); margin-top: var(--space-8); position: relative; list-style: none; max-width: none; }
.regal::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: var(--gruen); border-radius: 1px; }
.regal li { margin: 0; }
.regal img { width: 100%; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .14); }
.regal-text { margin-top: calc(var(--space-6) + 14px); }
@media (max-width: 640px) {
  .regal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .regal li:first-child, .regal li:last-child { display: none; }
}

/* Was drin ist: die Woche gross, zwei Seiten daneben – bei 2 : 1 : 1 sind alle drei gleich hoch (A4) */
.buchgalerie { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); align-items: start; margin-top: var(--space-6); }
@media (max-width: 820px) {
  .buchgalerie { grid-template-columns: 1fr 1fr; }
  .buchgalerie figure:first-child { grid-column: 1 / -1; }
}

/* Für Stallbetriebe: sachlich, als Liste, die Pferde am Balken daneben */
.betrieb { background: var(--flaeche); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-8); align-items: start; border-top: 3px solid var(--gruen); }
.betrieb ul { list-style: none; padding: 0; margin: 0; }
.betrieb li { padding: var(--space-3) 0; border-bottom: 1px solid var(--linie); }
.betrieb li:last-child { border-bottom: 0; }
.betrieb li strong { display: block; }
@media (min-width: 860px) { .betrieb { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding: var(--space-12); } }

/* Der Aufruf am Schluss: grün, Text links, das Pferd in der Box rechts */
.aufruf { background: var(--gruen); color: #fff; display: grid; gap: var(--space-8); align-items: center; padding: var(--space-8) var(--space-6); }
.aufruf h2 { color: #fff; }
.aufruf p { color: #e4ebe6; }
.aufruf .btn-primary { background: #fff; color: var(--gruen); }
.aufruf .btn-primary:hover { background: var(--gruen-hell); color: var(--gruen-dunkel); }
.aufruf figure { max-width: 320px; justify-self: center; width: 100%; }
@media (min-width: 820px) { .aufruf { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding: var(--space-12); } }

/* Blick ins Buch: eine Tafel nach der anderen */
.plates { display: grid; gap: var(--space-12); }
.plates figure { max-width: 900px; }
.plate-seite { max-width: 460px !important; }

/* — Preise — */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); max-width: 860px; }
.plan { background: var(--flaeche); padding: var(--space-6); border-top: 3px solid var(--linie); }
.plan:last-child { border-top-color: var(--gruen); }
.plan h3 { margin-bottom: var(--space-1); }
.plan .betrag { font-weight: 600; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.plan p { font-size: 15px; margin: var(--space-2) 0 0; color: var(--text-2); }
.table { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 14px; color: var(--text-2); padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--linie); font-weight: 600; }
.table td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--linie-hell); }
.table td:not(:first-child) { white-space: nowrap; }
.table .zahl { text-align: right; }
@media (max-width: 440px) { .table { font-size: 15px; } .table th, .table td { padding-right: var(--space-2); } }
/* Kurze Fragen und Antworten untereinander (Preise): kleine Überschriften, sonst stehen fünf grosse übereinander */
.kurz h2 { font-size: 21px; letter-spacing: 0; margin: var(--space-8) 0 var(--space-2); }
.kurz h2:first-child { margin-top: 0; }
.big { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.35; margin: 0 0 var(--space-4); max-width: 44ch; }

/* — Drucken — */
.settings { list-style: none; padding: 0; max-width: var(--measure); }
.settings li { display: grid; grid-template-columns: 9ch 1fr; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--linie-hell); }
.settings li:last-child { border-bottom: 0; }
.settings b { font-weight: 600; color: var(--gruen); }
@media (max-width: 420px) { .settings li { grid-template-columns: 1fr; gap: 0; } }
.nebenbild { display: grid; gap: var(--space-6) var(--space-8); align-items: start; }
@media (min-width: 860px) { .nebenbild { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* — Fuss — */
footer { background: var(--gruen); color: #dfe7e1; margin-top: var(--space-4); padding: var(--space-8) var(--edge); font-size: 15px; }
footer .inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; }
footer a { color: #fff; text-decoration: none; padding: 8px 0; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .brand { margin-right: auto; }
footer .brand a { text-decoration: underline; }
footer .fotos { flex-basis: 100%; font-size: 13px; color: #b9c7bd; margin: var(--space-2) 0 0; max-width: none; }
footer .fotos a { color: #dfe7e1; padding: 0; text-decoration: underline; }

/* Das Geschenk für neue Konten, die über diese Seite kommen (6 Credits, die ersten 20) */
.gift { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; background: var(--gruen-hell); border-left: 4px solid var(--gruen); padding: var(--space-3) var(--space-4); max-width: var(--measure); margin: var(--space-6) 0 0; font-size: 17px; }
.gift span { flex: 1 1 18rem; }
.gift strong { color: var(--gruen); white-space: nowrap; }

/* Das Geschenk nur, solange horselogbook.com Plätze meldet – assets/geschenk.js setzt die Klasse sonst */
html.ohne-geschenk [data-geschenk] { display: none !important; }

/* Besucherstatistik für diesen Browser abschalten (Impressum, assets/statistik.js) */
#statistik { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#statistik button { font: inherit; font-size: 15px; color: inherit; background: transparent; cursor: pointer; padding: 10px 16px; min-height: 44px; border-radius: var(--radius); border: 1px solid var(--linie); }
#statistik button:hover { background: var(--flaeche); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-links a, .sprachen summary { transition: background-color .12s ease, color .12s ease; }
}
