/* =========================================================================
   site.css – gemeinsame Basis für alle Seiten (www.excel-ferienkalender.ch)
   Farben und Masse nur hier oben ändern.
   Masse in rem (1rem = 16px). Nur feine Linien in px.
   ========================================================================= */

/* Roboto lokal (variable Schrift, Stärken 400–700, Zeichensatz Latin; Lizenz: fonts/roboto-lizenz-ofl.txt)
   Wir teilen dem Browser mit, dass die Schrift die Stärken 400-700 bedeckt, sonst denkt er, das File wäre nur für 400.
   Mit swap sagen wir, dass solange die Schriftart noch nicht geladen ist, die Schrift in einer Ersatzschrift angezeigt werden darf, statt nichts anzeigen.
*/
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/roboto.woff2") format("woff2");
}

:root {
  /* Farben (wie .com) */
  --gruen: #217346;          /* Kopf, Überschriften, Knöpfe, Links */
  --gruen-dunkel: #185a36;   /* Hover der Knöpfe */
  --hellgruen: #63f91d;      /* aktiver Menüpunkt, Hover im Menü */
  --braun: #7a3d00;          /* Menübefehle (.menubefehl), wie .com */
  --text: #333333;           /* Fliesstext */
  --hell: #f8f8f8;           /* graue Boxen */
  --fuss: #333333;           /* Hintergrund Fusszeile */
  --kopf-text: #eeeeee;      /* Menü */
  --fuss-text: #eeeeee;      /* Copyright */
  --weiss: #ffffff;          /* Seitenhintergrund, Felder, Schrift auf Grün */
  --text-hell: #666666;      /* Nebentext (Trefferzahl Suche) */
  --rahmen: #cccccc;         /* Formularfelder, inaktive Slider-Punkte */
  --rahmen-hell: #e2e2e2;    /* Formel-Box, FAQ-Fragen */
  --rahmen-suche: #d6d6d6;   /* Suchfeld Support */
  --rot: #c62828;            /* Fehlermeldung Formular */
  --markierung: #ffe066;     /* Suchtreffer (gelb) */
  --menu-rahmen: rgba(255, 255, 255, .6);   /* Handy: Rahmen Knopf «Menü» */
  --menu-linie: rgba(255, 255, 255, .15);   /* Handy: Linie zwischen Menüpunkten */

  /* Schrift */
  --schrift: Roboto, "Segoe UI", Arial, sans-serif;
  --schrift-kopf: Arial, Helvetica, sans-serif;   /* Logo, Menü, Fuss (wie .com); Android zeigt Roboto */
  --schrift-mono: Consolas, "Cascadia Mono", Menlo, "Courier New", monospace;   /* Formeln (Festbreite); Consolas auf jedem Windows */
  --zeilenhoehe: 1.4;

  /* Masse */
  --max: 75rem;              /* Inhaltsbreite 1200px */
  --rand: 1rem;              /* Seitenrand links/rechts */
  --radius: .3125rem;        /* 5px */
  --kopf-hoehe: 4.625rem;    /* 74px */
  --menu-abstand: .9375rem;  /* 15px links/rechts je Menüpunkt */
  --unterstrich-dauer: .2s;  /* Animation Unterstrich im Menü */
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 400 1rem/var(--zeilenhoehe) var(--schrift);
  display: flex;             /* Fusszeile bleibt unten, auch bei wenig Inhalt */
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; padding-top: 2.5rem; }   /* Abstand Kopf → Inhalt, auf allen Seiten gleich */

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

a { color: var(--gruen); }

h1, h2, h3 { color: var(--gruen); font-weight: 600; line-height: 1.3; }
h1, h2 { font-size: 1.5rem; }      /* 24px */
h3 { font-size: 1.1875rem; }       /* 19px */
h1 { margin: 0 0 .75rem; }         /* Abstand unter dem Seitentitel (oben: main) */
h2 { margin: 2rem 0 .75rem; }       /* Abstand vor und nach Zwischentiteln */
:where(div, section, aside, nav) > h2:first-child { margin-top: 0; }   /* zuoberst in einer Spalte/Box: kein Abstand oben */
p { margin: 0 0 1rem; }            /* Absatz: oben 0 (Abstand bestimmt das Element darüber), unten 1rem; Schriftgrösse: body */
.klein { font-size: .875rem; }      /* kleinere Schrift, z. B. «* Pflichtfeld» */
.textseite { max-width: 50rem; }                /* schlichte Textseite (Impressum, Datenschutz): angenehme Lesebreite */
.textseite h2 { font-size: 1.1875rem; }
.einleitung { columns: 2 22rem; column-gap: 3rem; }   /* Einleitung zweispaltig (Download, Download-Hilfe); unter ca. 2 × 22rem einspaltig */
.einleitung p { break-inside: avoid; }
.menubefehl { color: var(--braun); font-style: italic; font-weight: 600; }   /* Menübefehl, z. B. «Administration / …» */
code { font-family: var(--schrift-mono); font-size: .85em; }   /* Formel/Befehl im Fliesstext, z. B. =ZÄHLENWENNS() */
.formel {                                    /* Formel als eigene Zeile (Box), z. B. Saldo-Berechnung */
  padding: .5rem .75rem;
  font-family: var(--schrift-mono);
  font-size: .85rem;
  background: var(--weiss);
  border: 1px solid var(--rahmen-hell);
  border-left: 3px solid var(--gruen);
}

/* zentrierter Container */
.huelle {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--rand));
  margin: 0 auto;
  padding-left: var(--rand);       /* nur links/rechts, damit oben/unten frei bleibt (z. B. main) */
  padding-right: var(--rand);
}

/* ---------- Kopf und Menü -------------------------------------------- */

.kopf { background: var(--gruen); font-family: var(--schrift-kopf); }

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  color: var(--hell);
  font-size: 1.5rem;
  line-height: var(--kopf-hoehe);
  text-decoration: none;
}

.menu ul { display: flex; margin: 0; padding: 0; list-style: none; }

.menu a {
  position: relative;
  display: block;
  padding: .5rem var(--menu-abstand);
  color: var(--kopf-text);
  letter-spacing: .0375rem;        /* 0.6px wie .com */
  text-decoration: none;
  transition: color .2s;      /* Zeitdauer wie lange es dauert, bis der Text von hellgrau zu hellgrün ändert */
}

/* aktiver Menüpunkt und Hover: hellgrün */
.menu a[aria-current="page"],
.menu a:hover,
.menu a:focus-visible { color: var(--hellgruen); }

/* Unterstrich: wächst beim Hover von links auf die Breite des Worts */
.menu a::after {
  content: "";
  position: absolute;
  left: var(--menu-abstand);
  right: var(--menu-abstand);
  bottom: .3rem;     /* Abstand vom unteren Rand des Links: grösser = Strich höher */
  height: 2px;
  background: var(--hellgruen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--unterstrich-dauer) ease-out;
}
.menu a:hover::after,
.menu a:focus-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .menu a::after { transition: none; }
}

.menu-knopf { display: none; }

/* Handy (bis 860px): Knopf «Menü», Punkte untereinander.
   Ohne JavaScript (keine Klasse .js) bleibt das Menü offen. */
@media (max-width: 53.75em) {
  .js .menu-knopf {
    display: block;
    background: none;
    border: 1px solid var(--menu-rahmen);
    border-radius: var(--radius);
    color: var(--weiss);
    font: inherit;
    padding: .375rem .75rem;
    cursor: pointer;
  }
  .js .menu-knopf::before { content: "\2630\00a0"; }   /* ☰ */
  .menu { flex-basis: 100%; }
  .js .menu { display: none; }
  .js .menu.offen { display: block; }
  .menu ul { flex-direction: column; padding-bottom: .75rem; }
  .menu a { border-bottom: 1px solid var(--menu-linie); }
  .menu a::after { display: none; }
}

/* ---------- Knöpfe ---------------------------------------------------- */

.knopf {
  display: inline-block;
  min-width: 12.5rem;              /* 200px */
  padding: .9375rem 1.875rem;      /* 15px 30px */
  background: var(--gruen);
  color: var(--weiss);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
}
.knopf:hover, .knopf:focus-visible { background: var(--gruen-dunkel); }

/* ---------- Listen mit Zeichen (» bzw. ✓) ------------------------------- */

ul.pfeil, ul.haken { list-style: none; margin: 0; padding: 0; }

ul.pfeil li, ul.haken li {
  padding-left: 1.5rem;
  background: url("/img/pfeil.svg") left .25em / .875rem no-repeat;
}
ul.haken li { background-image: url("/img/haken.svg"); }

/* ---------- Hinweis «…heisst neu Excel-Jahresplaner» -------------------- */

.hinweis { font-size: 1.125rem; margin: 0 0 2rem; }
.hinweis strong { color: var(--gruen); }

/* ---------- Fusszeile -------------------------------------------------- */

.fuss {
   background: var(--fuss); 
   color: var(--fuss-text); 
   font-family: var(--schrift-kopf);
   font-size: .8rem;
   letter-spacing: .03rem;        
   margin-top: 3rem;
}

.fuss-innen {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-top: .9375rem;           /* 15px */
  padding-bottom: .9375rem;
}

.fuss p { margin: 0; }
.fuss ul { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.fuss li + li::before { content: "|"; margin-right: .4rem; }   /* Trennstrich vor jedem Link ausser dem ersten */
.fuss a { color: var(--fuss-text); text-decoration: none; }
.fuss a:hover, .fuss a:focus-visible { text-decoration: underline; }

/* ---------- Formulare (Kaufen, Kontakt) -------------------------------- */

.formular label { display: block; margin-bottom: 1rem; }

.formular input,
.formular select,
.formular textarea {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .5rem .625rem;
  font: inherit;
  color: inherit;
  background: var(--weiss);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
}
.formular textarea { min-height: 7rem; resize: vertical; }
.formular input:focus,
.formular select:focus,
.formular textarea:focus { outline: 2px solid var(--gruen); outline-offset: -1px; border-color: var(--gruen); }

.formular .knoepfe { display: flex; flex-wrap: wrap; gap: 1rem 1.875rem; margin: 1.5rem 0 1rem; }
.formular button.knopf { font: inherit; font-weight: 500; border: 0; cursor: pointer; }
.formular button.knopf:disabled { opacity: .6; cursor: wait; }

/* Meldung nach dem Absenden: grüner Rahmen = ok, roter Rahmen = Fehler (setzt js/formular.js) */
.meldung { padding: .75rem 1rem; border: 2px solid var(--gruen); border-radius: var(--radius); color: var(--gruen); }
.meldung.fehler { border-color: var(--rot); color: var(--rot); }

/* Honeypot gegen Spam-Bots: für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Feldpaare: zwei Felder nebeneinander (am Handy untereinander) */
.formular .paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.formular .paar-plz { display: grid; grid-template-columns: 7rem 1fr; gap: 0 1rem; }   /* PLZ schmal | Ort */
.formular .paar-anrede { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: 0 1rem; }   /* Anrede schmal | Vorname | Nachname */
@media (max-width: 53.75em) {
  .formular .paar, .formular .paar-plz, .formular .paar-anrede { grid-template-columns: minmax(0, 1fr); }
}

/* Graue Karte (z. B. um ein Formular oder Preise/Lizenzmodell) */
.karte { background: var(--hell); border-radius: .5rem; padding: 1rem; }

/* Formular in der Karte: kompakter als das Standard-Formular (weniger Abstand, niedrigere Felder) */
.karte .formular label { margin-bottom: .625rem; }
.karte .formular input,
.karte .formular select,
.karte .formular textarea { margin-top: .125rem; padding: .375rem .625rem; }
.karte .formular .knoepfe { margin: 1rem 0 .5rem; }

/* ---------- Info-Kacheln mit Icon im Kreis (Support, Kontakt) ----------- */
/* HTML: <aside class="support-info"><section class="info">
           <span class="icon-kreis"><img src="img/icon-….svg" width="70" height="70" alt=""></span>
           <div><h2>Titel</h2><p>…</p></div></section> … </aside> */

.support-info .info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--hell);
  border-radius: .5rem;
  padding: 1rem;
  margin-bottom: .75rem;
}
/* Kreis = <span class="icon-kreis"> (echter Rahmen, sauber geglättet); das Bild darin hat
   KEIN border-radius – sonst schneidet der Browser das Icon kreisförmig ab. */
.icon-kreis {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--weiss);
  border: 2px solid var(--gruen);
  border-radius: 50%;
}
.icon-kreis img { width: 2rem; height: auto; }   /* Grösse des Motivs im Kreis */
.info h2 { font-size: 1.1875rem; margin: 0 0 .25rem; }
.info h3 { font-size: 1rem; margin: .75rem 0 .25rem; }
.info p { margin: 0 0 .5rem; }
.info p:last-child { margin-bottom: 0; }
.info ul { margin: 0; padding-left: 1.1rem; }
.tel { font-weight: 600; white-space: nowrap; }   /* Telefonnummer: normale Textgrösse, halbfett */
