/* ==========================================================
   Alp Terra – Stylesheet
   Schriften: Bitter (Titel) + Source Sans 3 (Text), selbst gehostet (SIL OFL)
   Jede Komponente hat genau eine Regel. Bitte dort ändern,
   nicht unten neue Überschreibungen anhängen.
   ========================================================== */

@font-face { font-family: "Bitter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #1B4332;          /* Waldgrün: Text, Buttons */
  --ink-hover: #0E2A1E;
  --muted: #44503F;        /* Fliesstext */
  --bg: #E8EFE5;           /* Salbeigrün (Seitengrund) */
  --surface: #FFFFFF;
  --surface-raised: #DCE7D8; /* Boxen auf weissem Grund */
  --line: #C3D0C0;
  --line-strong: rgba(27, 67, 50, 0.3);
  --accent: #A04A24;       /* Terracotta */
  --accent-light: #F0A988; /* Terracotta auf Dunkel */
  --band: #1B4332;         /* dunkle Abschnitte */
  --band-text: #D5E2D9;
  --on-dark: #FFFFFF;

  /* Winterfarben – auch auf grünen Seiten nutzbar (Winter-Karte) */
  --winter: #173A52;
  --winter-muted: #C9D6DF;
  --winter-text: #E3EAF0;

  --shadow-photo: 0 8px 22px rgba(20, 40, 30, 0.22);
  --shadow-soft: 0 8px 22px rgba(20, 40, 30, 0.13);
  --shadow-raised: 0 10px 28px rgba(20, 40, 30, 0.16);
  --shadow-hover: 0 12px 26px rgba(20, 40, 30, 0.18);

  --font-head: "Bitter", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --radius: 6px;
  --radius-box: 8px;
  --radius-img: 4px;
  --max: 1240px;
  --gutter: 20px;
}

/* Winter-Thema (Schneeräumung) */
.theme-winter {
  --ink: var(--winter);
  --ink-hover: #0E2533;
  --muted: #3C4C59;
  --bg: #E6EDF2;
  --line: #C2CFD9;
  --band: #163447;
  --band-text: #D3DEE7;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
p { text-wrap: pretty; }
/* Zweisatz-Titel: jeder Satz bricht als Einheit um ("Garten im Sommer. / Schnee im Winter.") */
.phrase { display: inline-block; }
h1 { font-size: clamp(34px, 8vw, 76px); line-height: 1.02; letter-spacing: -0.01em; hyphens: manual; }
h2 { font-size: clamp(26px, 5.5vw, 40px); hyphens: manual; }
h3 { font-size: 24px; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Auf dunklem Grund: helles Terracotta, sonst ist der Fokusrahmen kaum sichtbar */
.section-band :focus-visible, .offer-dark :focus-visible, .card-winter :focus-visible { outline-color: var(--accent-light); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.lead { font-size: clamp(18px, 4.2vw, 20px); line-height: 1.55; max-width: 40ch; color: var(--muted); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sprunglink: unsichtbar, bis er per Tastatur fokussiert wird */
.skip-link {
  position: absolute; left: var(--gutter); top: 8px; z-index: 20;
  padding: 12px 18px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; color: var(--bg); }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px clamp(16px, 5vw, 24px);
  border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }

/* ---------- Header + Navigation ---------- */
.site-header {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(12px, 3vw, 22px) var(--gutter);
  display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
}
.logo img { height: 126px; width: auto; max-width: 90vw; mix-blend-mode: multiply; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.site-nav .nav-cta {
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: var(--radius); font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .logo img { height: auto; width: min(300px, 64vw); }
  /* Logo mittig, Menüknopf rechts */
  .js .site-header { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; }
  .js .site-header .logo { grid-column: 2; justify-self: center; }
  .js .site-header .nav-toggle { grid-column: 3; display: inline-flex; }
  .js .site-nav {
    grid-column: 1 / -1;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 8px; border-top: 1px solid rgba(0, 0, 0, 0.12);
  }
  .js .site-header.nav-open .site-nav { display: flex; }
  .js .site-nav a { padding: 15px 4px; font-size: 18px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .js .site-nav .nav-cta { margin-top: 14px; justify-content: center; border-bottom: none; }
}

/* ---------- Hero (geteilt: Text + Bild) ---------- */
.hero {
  padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(48px, 8vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 5vw, 48px); align-items: center;
}
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); box-shadow: var(--shadow-photo); }
/* Schmal: Foto niedriger, damit Person + Berge noch auf den ersten Bildschirm passen */
@media (max-width: 760px) {
  .hero-img { aspect-ratio: 3 / 2; object-position: 60% 55%; }
}
/* E-Mail-Adresse zum Kopieren unter den Hero-Buttons (falls kein Mailprogramm eingerichtet ist) */
.hero-mail { margin-top: -8px; font-size: 16px; color: var(--muted); }
.hero-mail a { font-weight: 600; text-underline-offset: 4px; display: inline-block; padding-block: 10px; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(48px, 9vw, 80px); }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-band { background: var(--band); color: var(--on-dark); }
.section-band h2, .section-band h3 { color: var(--on-dark); }
.section-band p { color: var(--band-text); }
.section-head { margin-bottom: 36px; }

/* Raster für 3 Punkte, immer als Boxen */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.grid-3 > * {
  display: flex; flex-direction: column; gap: 10px;
  border-radius: var(--radius-box); padding: 24px 26px 28px;
  container-type: inline-size;
}
.section-band .grid-3 > * { background: rgba(255, 255, 255, 0.07); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.section-band .grid-3 p + p { margin-top: 12px; }
.section:not(.section-band) .grid-3 > * { background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); }
.section.section-white .grid-3 > * { background: var(--surface-raised); border-width: 1.5px; box-shadow: var(--shadow-raised); }
/* Grosse Zahl/Wort passt sich der Boxbreite an */
.big-figure { font-family: var(--font-head); font-weight: 700; font-size: min(44px, 14cqi); line-height: 1; hyphens: none; color: var(--accent-light); }

/* ---------- Leistungs-Karten (Startseite) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--ink); }
.card:hover .card-more { text-decoration-thickness: 2px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 24px clamp(20px, 5vw, 30px) 28px; display: flex; flex-direction: column; gap: 12px; }
.card-season { font-size: 14px; font-weight: 600; color: var(--accent); }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.1; }
.card-text { color: var(--muted); }
.card-more { margin-top: 6px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.card-winter { background: var(--winter); border-color: var(--winter); color: var(--on-dark); }
.card-winter .card-season { color: var(--winter-muted); }
.card-winter .card-text { color: var(--winter-text); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover, .card:focus-visible { transform: none; } }

/* ---------- Angebots-Boxen (Schneeräumung) ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.offer { border-radius: var(--radius); padding: clamp(24px, 6vw, 36px); display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); }
.offer h3 { font-size: 32px; }
.offer-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.offer-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.offer-dark h3 { color: var(--on-dark); }
.offer-dark .offer-label { color: var(--winter-muted); }
.offer-dark p { color: var(--winter-text); }

/* ---------- Bildergalerie: 1 / 2 / 4 Spalten ---------- */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-img); box-shadow: var(--shadow-photo); }
.gallery figcaption { font-size: 15px; color: var(--muted); }
.gallery figcaption span { opacity: 0.75; }

/* ---------- Bild + Text ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-photo); }

/* ---------- Kontakt ---------- */
.contact { padding-block: clamp(56px, 10vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 48px); align-items: center; }
@media (min-width: 760px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact h2 { font-size: clamp(28px, 6vw, 44px); max-width: 20ch; }
.contact .stack { gap: 20px; }
.contact .stack p { font-size: 18px; max-width: 46ch; color: var(--muted); }
.contact-box {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 5vw, 32px);
}
.contact-box .btn { min-height: 56px; font-size: 19px; font-weight: 700; }
.contact-lines { display: flex; flex-direction: column; align-items: center; }
.contact-line { font-size: 17px; font-weight: 600; text-align: center; }
/* Tippflächen min. 44 px */
.contact-line a { display: inline-block; padding-block: 10px; text-underline-offset: 4px; }
.contact-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); }
.section-alt .contact-box { background: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-block: clamp(36px, 6vw, 56px); }
/* Wappen gross, mittig in der linken Spalte */
.footer-brand { display: flex; justify-content: center; align-self: center; }
.footer-brand img { height: auto; width: 180px; max-width: 100%; }
.footer-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding-block: 10px; text-underline-offset: 4px; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px 22px; border-top: 1px solid var(--line); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom nav a { display: inline-block; padding-block: 10px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 160px; }
}

/* ---------- Schnellkontakt-Leiste (nur schmal, unten fixiert) ---------- */
.call-bar { display: none; }
@media (max-width: 860px) {
  .call-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
    display: grid; grid-template-columns: 1fr auto; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(27, 67, 50, 0.08);
  }
  .call-bar .btn { gap: 8px; padding-inline: 12px; }
  .call-bar .btn-ghost { background: var(--surface); }
  .call-bar .call-bar-tel { font-weight: 600; font-size: 15px; border-width: 1.5px; }
  @media (max-width: 360px) { .call-bar-tel-text { display: none; } }
  /* Platz schaffen, damit die Leiste den Footer nicht verdeckt */
  body:has(.call-bar) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Rechtliches ---------- */
.legal { padding-block: clamp(40px, 8vw, 80px); }
.legal > * { max-width: 70ch; }
.legal p { margin-top: 16px; color: var(--muted); }
.legal h2 { font-size: 22px; margin-top: 36px; }

/* ---------- Ortsseiten ---------- */
.town-hero { align-items: center; }
.town-hero h1 { font-size: clamp(34px, 6.5vw, 62px); }
.town-jobs { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-box); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-raised); }
.town-jobs h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 14px; }
.town-jobs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.town-jobs li { padding-left: 26px; position: relative; }
.town-jobs li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.town-text > * { max-width: 72ch; }
.town-text h2 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: 18px; }
.town-text p { font-size: 18px; color: var(--muted); }
.town-text p + p { margin-top: 14px; }
.band-link { color: inherit; font-weight: 600; text-underline-offset: 4px; }
.town-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.town-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 600; }
.town-links a:hover { border-color: var(--ink); }

/* ---------- Orte-Übersicht: 1 / 2 / 3 Spalten ---------- */
.town-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .town-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .town-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.town-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px; background: var(--surface-raised); border: 1.5px solid var(--line-strong); border-radius: var(--radius-box); box-shadow: var(--shadow-soft); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.town-grid a:hover, .town-grid a:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.town-grid strong { font-family: var(--font-head); font-size: 22px; color: var(--ink); }
.town-grid span { color: var(--muted); font-size: 15px; }
.orte-more { margin-top: 28px; font-size: 18px; color: var(--muted); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .town-grid a { transition: none; } .town-grid a:hover, .town-grid a:focus-visible { transform: none; } }
