/* hanf-infos.at - ein Stylesheet für alle Seiten */

@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/be-vietnam-pro-400.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/be-vietnam-pro-600.woff2") format("woff2"); }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/be-vietnam-pro-700.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/outfit-700.woff2") format("woff2"); }

:root {
  --gruen: #356f40;
  --gruen-hell: #389d4b;
  --gruen-dunkel: #1f4627;
  --gruen-blass: #e8f1e9;
  --text: #1a1a1a;
  --text-2: #4a514b;
  --linie: #dfe5df;
  --flaeche: #f5f7f5;
  --weiss: #fff;
  --rahmen: 1140px;
  --rand: 24px;
  --schrift: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titel: "Outfit", "Be Vietnam Pro", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 400 17px/1.7 var(--schrift);
  /* Regel 7.11: nie im Wort trennen */
  hyphens: none;
  overflow-wrap: normal;
}

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

a { color: var(--gruen); text-underline-offset: 2px; }
a:hover { color: var(--gruen-dunkel); }

h1, h2, h3, h4 {
  font-family: var(--titel);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  hyphens: manual;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p, ul, ol { margin: 0 0 1.1em; }

.rahmen { max-width: var(--rahmen); margin: 0 auto; padding: 0 var(--rand); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--weiss); padding: 8px 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Kopf */

.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.marke img { width: 32px; height: 32px; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font: 700 1.3rem/1.1 var(--titel); }
.marke-claim { font-size: .8rem; color: var(--text-2); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--flaeche); color: var(--gruen); }
.nav a[aria-current="page"] { color: var(--gruen); background: var(--gruen-blass); }

@media (max-width: 900px) {
  .kopf-innen { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 6px; }
  .nav { width: calc(100% + 2 * var(--rand)); margin: 0 calc(-1 * var(--rand)); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { flex-wrap: nowrap; padding: 0 calc(var(--rand) - 12px); }
  .nav a { white-space: nowrap; }
}

/* ---------------------------------------------------------------- Artikel */

.artikel { padding: 32px 0 48px; }

.brotkrumen { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.brotkrumen a { color: var(--text-2); text-decoration: none; }
.brotkrumen a:hover { color: var(--gruen); text-decoration: underline; }

.artikel-meta { color: var(--text-2); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

.artikel-bild { margin: 0 0 36px; }
.artikel-bild img { width: 100%; border-radius: 10px; aspect-ratio: 2 / 1; object-fit: cover; }

.text > :first-child { margin-top: 0; }
.text h2 { margin-top: 1.8em; padding-top: .2em; }
.text h3 { margin-top: 1.5em; }
.text li { margin-bottom: .4em; }
.text ul, .text ol { padding-left: 1.3em; }
.text blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gruen-hell); color: var(--text-2); }
.text strong { font-weight: 700; }

/* Inhaltsverzeichnis */
.inhalt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; padding: 18px 24px; margin: 1.6em 0 2em; }
.inhalt-titel { font: 700 1.05rem/1.2 var(--titel); margin: 0 0 .6em; }
.inhalt ol { margin: 0; padding-left: 1.3em; columns: 2 320px; column-gap: 40px; }
.inhalt li { margin-bottom: .35em; break-inside: avoid; }
.inhalt a { text-decoration: none; }
.inhalt a:hover { text-decoration: underline; }

/* Tabellen (Regel 7.12, Tabellen-Teil) */
.tabelle { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0 .4em; border: 1px solid var(--linie); border-radius: 8px; }
.tabelle table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
.tabelle th, .tabelle td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
.tabelle thead th, .tabelle tr:first-child th { background: var(--gruen); color: var(--weiss); font-weight: 600; }
.tabelle tbody tr:nth-child(even) { background: var(--flaeche); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.tabelle-quelle { font-size: .85rem; color: var(--text-2); margin-top: 0; }

/* Häufige Fragen */
.faq { border-top: 1px solid var(--linie); margin-top: 2.4em; }
.faq h3 { font-size: 1.12rem; }

/* Rechtliches */
.legal .text { max-width: none; }

/* ---------------------------------------------------------------- Karten */

.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .karten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .karten { grid-template-columns: 1fr; } }

.karte a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.karte a:hover { box-shadow: 0 8px 24px rgba(20, 40, 25, .1); transform: translateY(-2px); }
.karte img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.karte-text { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.karte-rubrik { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gruen); }
.karte-titel { font: 700 1.15rem/1.3 var(--titel); }
.karte-anriss { font-size: .93rem; line-height: 1.55; color: var(--text-2); }
.karte a:hover .karte-titel { color: var(--gruen); }

.weiter { background: var(--flaeche); padding: 48px 0 56px; border-top: 1px solid var(--linie); }
.weiter h2 { margin-bottom: 24px; }
.mehr { margin: 28px 0 0; font-weight: 600; }

/* ---------------------------------------------------------------- Listen */

.liste-kopf { padding-top: 32px; padding-bottom: 8px; }
.vorspann { font-size: 1.1rem; color: var(--text-2); }
.werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 28px; }
.suche input {
  font: inherit; font-size: 1rem; width: min(360px, 100%); padding: 10px 14px;
  border: 1px solid var(--linie); border-radius: 8px; background: var(--weiss);
}
.suche { flex: 1 1 260px; max-width: 360px; }
.suche input:focus { outline: 2px solid var(--gruen-hell); outline-offset: 1px; }
.anzahl { margin: 0; color: var(--text-2); font-size: .95rem; }
.leer { margin-top: 20px; color: var(--text-2); }
.typ-kategorie main, .typ-seite main { padding-bottom: 56px; }

/* ---------------------------------------------------------------- Startseite */

.held { position: relative; color: var(--weiss); background: var(--gruen-dunkel); overflow: hidden; }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.held-innen { position: relative; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.held h1 { color: var(--weiss); max-width: 14em; }
.held-text { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 40em; font-weight: 600; }

.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.knopf {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  background: var(--gruen); color: var(--weiss); text-decoration: none; font-weight: 600;
}
.knopf:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.held .knopf { background: var(--weiss); color: var(--text); }
.held .knopf:hover { background: var(--gruen-blass); color: var(--text); }
.held .knopf-hell { background: transparent; color: var(--weiss); border: 1px solid rgba(255, 255, 255, .7); }
.held .knopf-hell:hover { background: rgba(255, 255, 255, .12); color: var(--weiss); }

.abschnitt { padding: clamp(48px, 7vw, 80px) 0; }
.abschnitt-getoent { background: var(--flaeche); }
.dachzeile { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen); margin-bottom: .5em; }
.abschnitt h2 { margin-bottom: .8em; }

.vorteile, .fakten { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .vorteile, .fakten { grid-template-columns: 1fr; } }
.vorteile li { padding: 24px; border: 1px solid var(--linie); border-radius: 10px; border-top: 4px solid var(--gruen-hell); }
.vorteile p, .fakten p { margin: 0; color: var(--text-2); }
.fakten li { padding: 24px; background: var(--gruen); color: var(--weiss); border-radius: 10px; }
.fakten h3 { color: var(--weiss); }
.fakten p { color: #e6efe7; }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.zweispaltig h2 + p { margin-bottom: 1.8em; }
.pflanze { border-radius: 10px; }
@media (max-width: 760px) {
  .zweispaltig { grid-template-columns: 1fr; gap: 28px; }
  .pflanze { max-width: 280px; }
}

.spalten { columns: 2 420px; column-gap: 48px; }
.spalten p { break-inside: avoid; }

/* ---------------------------------------------------------------- Fuß */

.fuss { background: #142417; color: #cbd6cc; padding: 44px 0 36px; font-size: .95rem; }
.fuss-innen { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 28px; }
.fuss .marke-name { color: var(--weiss); display: block; }
.fuss .marke-claim { color: #9fb0a1; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss-nav ul { columns: 2; column-gap: 28px; }
.fuss li { margin-bottom: 6px; }
.fuss a { color: #cbd6cc; text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-zeile { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid #2a3d2d; font-size: .85rem; color: #9fb0a1; }
@media (max-width: 760px) { .fuss-innen { grid-template-columns: 1fr; } }
