/* design-your-yearly-planner.com — ein Stylesheet. Die erste Landingpage von Design Your Planner (27.09.2026): der Eingang
   für die Agenda für Menschen. Das Aussehen der Anwendung (Tom, 27.09.2026): ihr grünes Band oben, Leinen als Grund,
   weisses Papier, Leder für die eine Aktion, Source Sans 3 für alles – dazu Toms Landschaftsfotos, «ein Jahr in
   Bildern». Die Bilder macht ../../bilder/Bilder.java aus der Anwendung und den Fotos. */
/* 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 unter der SIL Open Font License (assets/fonts/OFL-SourceSans3.txt), auf
   Latein verkleinert. */
@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 {
  --grund: #ebe7e1;                           /* Leinen: die Tischfläche der Anwendung, auf der das Papier liegt */
  --papier: #ffffff;
  --text: #2b2420;                            /* die Tinte der Anwendung */
  --text-2: #6b625a;
  --linie: #c9c2b8;
  --linie-hell: #ddd7cf;
  --marke: #2f5a3e;                           /* das Grün des Logos, das Band oben */
  --marke-dunkel: #234631;
  --marke-hell: #e3ebe4;
  --kopf-text: #f4efe6;
  --kopf-leise: #d2d4c8;
  --leder: #7a4b23;                           /* die eine Aktion, wie in der Anwendung */
  --leder-dunkel: #5f3919;
  --leder-hell: #f3ebe2;
  --sans: "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; --space-16: 64px;
  --radius: 4px;
  --schatten-papier: 0 1px 2px rgba(43, 36, 32, .14), 0 8px 22px rgba(43, 36, 32, .12);
  --edge: clamp(16px, 5vw, 64px);
  --breite: 1120px;
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--sans); 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.01em; margin: 0 0 var(--space-4); text-wrap: balance; }
h2 { font-size: clamp(27px, 3.3vw, 36px); max-width: 24ch; }
h3 { font-size: 22px; letter-spacing: 0; margin-bottom: var(--space-3); }
p, ul, ol { margin: 0 0 var(--space-4); max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
a { color: var(--leder-dunkel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--leder); 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(--leder); outline-offset: 3px; }
::selection { background: var(--marke-hell); }

/* — 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(--leder); color: #fff; }
.btn-primary:hover { background: var(--leder-dunkel); color: #fff; text-decoration: none; }
.nav .btn { font-size: 15px; padding: 10px 16px; min-height: 44px; }

/* — Kopf: das grüne Band der Anwendung — */
header { background: var(--marke); color: var(--kopf-text); position: relative; z-index: 5; }
.nav { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-3) var(--edge); position: relative; max-width: calc(var(--breite) + 2 * var(--edge)); margin: 0 auto; }
/* Der Name schrumpft auf schmalen Bildschirmen – der Menüknopf bleibt immer in derselben Zeile */
.nav-brand { font-weight: 600; font-size: clamp(18px, 4.6vw, 21px); line-height: 1.2; flex: 1 1 0; min-width: 0; color: var(--kopf-text); text-decoration: none; }
.nav-brand:hover { color: #fff; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--kopf-leise); text-decoration: none; font-size: 16px; padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: #fff; 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 rgba(244, 239, 230, .45); 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(--marke-dunkel); }
.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; color: var(--text); 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(--grund); }
.sprachen li a[aria-current] { font-weight: 600; color: var(--marke); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(244, 239, 230, .45); background: transparent; border-radius: var(--radius); color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--marke-dunkel); }
.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 rgba(244, 239, 230, .2); }
  .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(var(--breite) + 2 * var(--edge)); margin: 0 auto; }
.section { padding: clamp(40px, 7vw, 72px) 0; border-top: 1px solid var(--linie-hell); }
.section:first-child, .nach-vorne { border-top: 0; }
.lede { font-size: 20px; line-height: 1.5; }
.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 h3 { font-size: 20px; }
.grid-3 p { font-size: 16px; margin: 0; }
.zweispaltig { display: grid; gap: var(--space-8) var(--space-12); align-items: center; }
@media (min-width: 900px) {
  .zweispaltig { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .zweispaltig.breit-bild { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .zweispaltig.bild-links > figure { order: -1; }
}

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

/* — Vorne: das Foto über die ganze Breite (ausserhalb von main), Titel und Knopf im Himmel. Oben und links dunkler,
     damit Titel und Text lesbar bleiben; unten rechts bleibt das Bild, wie es ist. — */
.vorne { position: relative; min-height: min(90svh, 880px); color: #fff; display: flex; align-items: flex-start; overflow: hidden; background: #4f7aa0; }
.vorne picture, .vorne > picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vorne picture img { object-fit: cover; object-position: 50% 60%; }
.vorne::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 32, 24, .52) 0%, rgba(14, 32, 24, .22) 42%, rgba(14, 32, 24, 0) 68%),
              linear-gradient(90deg, rgba(14, 32, 24, .40) 0%, rgba(14, 32, 24, .14) 45%, rgba(14, 32, 24, 0) 62%); }
.vorne-text { position: relative; z-index: 1; width: 100%; max-width: calc(var(--breite) + 2 * var(--edge)); margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--edge) var(--space-16); }
.vorne h1 { color: #fff; font-size: clamp(38px, 6.2vw, 76px); line-height: 1.0; letter-spacing: -0.025em; max-width: 13ch; margin: 0 0 var(--space-6); text-shadow: 0 1px 24px rgba(14, 32, 24, .28); }
.vorne .lede { color: #fff; max-width: 44ch; font-size: clamp(18px, 1.6vw, 21px); text-shadow: 0 1px 14px rgba(14, 32, 24, .38); }
.vorne .cta a:not(.btn) { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }
@media (max-width: 700px) {
  .vorne { min-height: 86svh; }
  .vorne picture img { object-position: 50% 50%; }
}

/* Das Geschenk für neue Konten, die über diese Seite kommen (geschenk=promo, die ersten 50): gleich unter dem Foto */
.gift { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); align-items: baseline; background: var(--leder-hell); border-left: 4px solid var(--leder); padding: var(--space-3) var(--space-4); max-width: var(--measure); margin: 0; font-size: 17px; }
.gift span { flex: 1 1 18rem; }
.gift strong { color: var(--leder-dunkel); white-space: nowrap; }
.nach-vorne { padding-top: var(--space-8); }
/* Das Geschenk nur, solange die Anwendung Plätze meldet – assets/geschenk.js setzt die Klasse sonst */
html.ohne-geschenk [data-geschenk] { display: none !important; }

/* Die vier Umschläge, gerade nebeneinander, darunter wessen Buch es ist und welche Vorlage */
.buecher { list-style: none; padding: 0; margin: var(--space-8) 0 0; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 32px); }
.buecher img { width: 100%; background: #fff; box-shadow: var(--schatten-papier); }
.buecher .wer { display: block; margin-top: var(--space-3); font-size: 15px; line-height: 1.35; color: var(--text-2); }
.buecher .wer b { display: block; color: var(--text); font-weight: 600; font-size: 17px; }
@media (max-width: 700px) { .buecher { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); } }

/* Die sechs Vorlagen als Karten: Name, wofür, was drin ist, zwei Wege */
.vorlagen { list-style: none; padding: 0; margin: var(--space-8) 0 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.vorlage { background: var(--papier); padding: var(--space-6); border-top: 3px solid var(--linie); display: flex; flex-direction: column; }
.vorlage:first-child { border-top-color: var(--marke); }
.vorlage h3 { margin-bottom: var(--space-1); }
.vorlage .wofuer { color: var(--text-2); font-size: 16px; margin-bottom: var(--space-3); }
.vorlage p { font-size: 16px; }
.vorlage .wege { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 16px; }
.vorlage .wege a:first-child { font-weight: 600; }

/* Seiten aus dem Buch: eine Doppelseite gross, daneben eine einzelne Seite */
.seiten { display: grid; gap: var(--space-8); align-items: start; margin-top: var(--space-8); }
@media (min-width: 900px) { .seiten { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); } }
.seiten figure img { width: 100%; }

/* Unter jeder Vorlage auf der Seite «Die Agenda»: gestalten und durchblättern */
.wege-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }

/* Ein Foto über die ganze Breite, als Atempause zwischen den Abschnitten – eine Jahreszeit */
.band { margin: 0 calc(-1 * var(--edge)); }
.band img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }
.band figcaption { padding: 0 var(--edge); }

/* Die Schritte sind eine Folge – darum Nummern, auf einer Linie wie eine Zeile im Buch */
.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(--text); padding-top: var(--space-3); }
.steps .num { font-weight: 600; font-size: 15px; color: var(--marke); margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; }
.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(--marke); border-bottom: 2px solid var(--marke); transform: rotate(-45deg); }

.big { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.35; margin: 0 0 var(--space-4); max-width: 44ch; }
/* Die umgerechneten Beträge unter den Franken, nach dem Land des Browsers (assets/geschenk.js) */
.umgerechnet { display: block; font-size: 15px; font-weight: 400; color: var(--text-2); }
.umgerechnet:empty { display: none; }
.kosten { display: grid; gap: var(--space-8) var(--space-12); align-items: start; }
@media (min-width: 900px) { .kosten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kosten .trust { margin-top: var(--space-2); } }

/* Der Aufruf am Schluss: das grüne Band, Text links, das Dorf im Tessin rechts */
.aufruf { background: var(--marke); color: var(--kopf-text); display: grid; gap: var(--space-8); align-items: center; padding: var(--space-8) var(--space-6); }
.aufruf h2 { color: #fff; }
.aufruf p { color: var(--kopf-leise); }
.aufruf .btn-primary { background: #fff; color: var(--marke); }
.aufruf .btn-primary:hover { background: var(--marke-hell); color: var(--marke-dunkel); }
@media (min-width: 820px) { .aufruf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--space-12); } }

/* — Preise — */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); max-width: 860px; }
.plan { background: var(--papier); padding: var(--space-6); border-top: 3px solid var(--linie); }
.plan:last-child { border-top-color: var(--marke); }
.plan h3 { font-size: 21px; 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: 720px; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; background: var(--papier); }
.table th { text-align: left; font-size: 14px; color: var(--text-2); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--linie); font-weight: 600; }
.table td { padding: var(--space-3); border-bottom: 1px solid var(--linie-hell); }
.table td:not(:last-child) { white-space: nowrap; }
.table .zahl { text-align: right; }
@media (max-width: 560px) { .table { font-size: 15px; } .table th, .table td { padding: var(--space-2); } .table .reicht { display: none; } }
.kurz h2 { font-size: 22px; letter-spacing: 0; margin: var(--space-8) 0 var(--space-2); }
.kurz h2:first-child { margin-top: 0; }

/* — 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(--marke); }
@media (max-width: 420px) { .settings li { grid-template-columns: 1fr; gap: 0; } }

/* — Fuss — */
footer { border-top: 1px solid var(--linie); margin-top: var(--space-12); padding: var(--space-8) var(--edge); font-size: 15px; color: var(--text-2); }
footer .inner { max-width: var(--breite); margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; }
footer a { color: var(--text); text-decoration: none; padding: 8px 0; }
footer a:hover { color: var(--leder); text-decoration: underline; }
footer .brand { margin-right: auto; }
footer .brand a { text-decoration: underline; }
footer .fotos { flex-basis: 100%; font-size: 13px; margin: var(--space-2) 0 0; max-width: none; }

/* 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: var(--papier); cursor: pointer; padding: 10px 16px; min-height: 44px; border-radius: var(--radius); border: 1px solid var(--linie); }
#statistik button:hover { background: var(--grund); }

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