/* =========================================================
   KAVANTO – Website-Stylesheet
   Farben und Abstände zentral oben anpassen.
   ========================================================= */

@font-face { font-family: "Inter"; src: url("../fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/interdisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --nacht: #0B1630;
  --nacht-2: #13203F;
  --linie-dunkel: #26355C;
  --blau: #2563EB;
  --blau-hell: #3D7BFF;
  --mint: #2FD3A0;
  --mint-text: #0F7A5B;
  --orange: #FF8A3D;
  --orange-text: #B4500F;
  --nebel: #EEF1F6;
  --linie: #D5DBE6;
  --text: #0B1630;
  --text-2: #4A5672;
  --text-hell: #C3CCDD;
  --weiss: #FFFFFF;
  --radius: 16px;
  --breite: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blau); }
h1, h2, h3 { font-family: "Inter Display", "Inter", sans-serif; font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--nebel { background: var(--nebel); }
.section--dunkel { background: var(--nacht); color: var(--weiss); }
.kopf { max-width: 720px; margin-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.kopf h2 { font-size: clamp(30px, 4vw, 42px); }
.kopf p { font-size: 19px; color: var(--text-2); }
.section--dunkel .kopf p { color: var(--text-hell); }
.label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blau); }
.section--dunkel .label { color: var(--blau-hell); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
  font-family: inherit;
}
.btn--primaer { background: var(--blau); color: var(--weiss); }
.btn--primaer:hover { background: var(--blau-dunkel, #1D4ED8); color: var(--weiss); }
.btn--rahmen { border-color: #3D4A66; color: var(--weiss); background: transparent; }
.btn--rahmen:hover { border-color: var(--weiss); color: var(--weiss); }
.btn--hell { border-color: var(--linie); color: var(--text); background: var(--weiss); }
.btn--hell:hover { border-color: var(--blau); color: var(--blau); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--nacht); border-bottom: 1px solid var(--linie-dunkel); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #D3DAE8; text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--weiss); }
.nav .btn { color: var(--weiss); }
.menu-knopf { display: none; background: none; border: 1px solid #3D4A66; color: var(--weiss); border-radius: 10px; width: 48px; height: 44px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--nacht); color: var(--weiss); padding: 88px 0 104px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__badge { display: inline-block; font-size: 14px; color: var(--mint); border: 1px solid #1F5E58; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 22px; }
.hero__text { font-size: 20px; color: var(--text-hell); max-width: 600px; margin-bottom: 32px; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.vertrauen { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--text-hell); padding: 0; margin: 0; list-style: none; }
.vertrauen li { display: flex; align-items: center; gap: 8px; }
.vertrauen svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero__kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kachel { background: var(--nacht-2); border: 1px solid var(--linie-dunkel); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.kachel svg { width: 44px; height: 44px; }
.kachel span { font-weight: 600; font-size: 15px; }

/* ---------- Produkte ---------- */
.bereich { margin-bottom: 56px; }
.bereich:last-child { margin-bottom: 0; }
.bereich__kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bereich__punkt { width: 14px; height: 14px; border-radius: 7px; }
.bereich__kopf h3 { font-size: 26px; }
.bereich__kopf p { color: var(--text-2); font-size: 16px; margin-left: 8px; }
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
@media (min-width: 1100px) { .karten--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } .karten--5 .karte { padding: 22px; } }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; }
.karte:hover { box-shadow: 0 14px 40px rgba(11,22,48,0.10); transform: translateY(-2px); }
.karte svg { width: 52px; height: 52px; }
.karte h4 { margin: 0; font-family: "Inter Display", "Inter", sans-serif; font-size: 21px; }
.karte h4 span { font-weight: 700; }
.karte p { color: var(--text-2); font-size: 16px; }
.karte ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.karte li { padding-left: 22px; position: relative; }
.karte li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); }
.karte .btn { margin-top: auto; align-self: flex-start; }
.farbe-business { color: var(--blau); }
.farbe-media { color: var(--mint-text); }
.farbe-studio { color: var(--orange-text); }

/* ---------- Vorteile ---------- */
.vorteile { display: grid; grid-template-columns: repeat(var(--spalten, 4), minmax(0, 1fr)); gap: 20px; }
.vorteil { background: var(--nacht-2); border: 1px solid var(--linie-dunkel); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.vorteil svg { width: 32px; height: 32px; color: var(--blau-hell); }
.vorteil h3 { font-size: 21px; }
.vorteil p { color: var(--text-hell); font-size: 16px; }

/* ---------- Schritte ---------- */
.schritte { display: grid; grid-template-columns: repeat(var(--spalten, 3), minmax(0, 1fr)); gap: 24px; counter-reset: schritt; }
.schritt { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.schritt__nr { width: 44px; height: 44px; border-radius: 12px; background: var(--blau); color: var(--weiss); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.schritt h3 { font-size: 21px; }
.schritt p { color: var(--text-2); font-size: 16px; }

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.partner__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.partner__liste li { background: var(--nacht-2); border: 1px solid var(--linie-dunkel); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.partner__liste svg { width: 24px; height: 24px; color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.partner__liste strong { display: block; font-size: 17px; }
.partner__liste span { color: var(--text-hell); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blau); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding-bottom: 20px; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; }
.formular { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font-weight: 600; font-size: 15px; }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #B9C2D2; border-radius: 10px; padding: 12px 14px; min-height: 48px; background: var(--weiss);
}
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau); }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular .btn { grid-column: 1 / -1; justify-self: start; }
.meldung { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.meldung--ok { background: #DCFCE7; color: #14532D; }
.meldung--fehler { background: #FEE2E2; color: #7F1D1D; }
.meldung.sichtbar { display: block; }
.kontakt__info { background: var(--nacht); color: var(--weiss); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.kontakt__info h3 { font-size: 22px; }
.kontakt__info p { color: var(--text-hell); font-size: 16px; }
.kontakt__info a { color: var(--weiss); }

/* ---------- Footer ---------- */
.footer { background: var(--nacht); color: var(--text-hell); padding: 48px 0; border-top: 1px solid var(--linie-dunkel); font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer img { height: 28px; width: auto; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--text-hell); text-decoration: none; }
.footer a:hover { color: var(--weiss); }

/* ---------- Rechtstexte ---------- */
.recht { max-width: 820px; padding: 72px 24px 96px; margin: 0 auto; }
.recht h1 { font-size: 40px; margin-bottom: 32px; }
.recht h2 { font-size: 22px; margin: 32px 0 10px; }
.recht p, .recht li { color: #2B3550; margin-bottom: 10px; }
.hinweis { background: #FEF3C7; color: #78350F; border-radius: 12px; padding: 16px 20px; margin-bottom: 28px; font-weight: 500; }

/* ---------- Mobil ---------- */
@media (max-width: 980px) {
  .hero__grid, .partner, .kontakt { grid-template-columns: 1fr; }
  .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte { grid-template-columns: 1fr; }
  .bereich__kopf { flex-wrap: wrap; }
  .bereich__kopf p { margin-left: 0; width: 100%; }
}
@media (max-width: 860px) {
  .menu-knopf { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--nacht); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--linie-dunkel); }
  .nav.offen { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linie-dunkel); }
  .nav .btn { margin-top: 16px; border-bottom: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .vorteile { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr; padding: 22px; }
  .hero__kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Ergänzungen für die Verwaltung (/admin) ---------- */
.vorschau-leiste { position: sticky; top: 0; z-index: 60; background: #FF8A3D; color: #0B1630; text-align: center; font-weight: 600; font-size: 15px; padding: 10px 16px; }
.vorschau-leiste a { color: #0B1630; margin-left: 10px; }
.hero--weiss { background: var(--weiss); color: var(--text); }
.hero--nebel { background: var(--nebel); color: var(--text); }
.hero--weiss .hero__text, .hero--nebel .hero__text, .hero--weiss .vertrauen, .hero--nebel .vertrauen { color: var(--text-2); }
.hero--weiss .btn--rahmen, .hero--nebel .btn--rahmen { color: var(--text); border-color: var(--linie); }
.hero--weiss .btn--rahmen:hover, .hero--nebel .btn--rahmen:hover { color: var(--blau); border-color: var(--blau); }
.hero--weiss .hero__badge, .hero--nebel .hero__badge { color: var(--mint-text); border-color: var(--mint); }
.hero--weiss .kachel, .hero--nebel .kachel { background: var(--weiss); border-color: var(--linie); }
.hero__bild img { width: 100%; height: auto; border-radius: calc(var(--radius) + 4px); }
.karte__bild { width: 100%; height: 160px; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.section:not(.section--dunkel) .vorteil, .section:not(.section--dunkel) .partner__liste li { background: var(--weiss); border-color: var(--linie); }
.section:not(.section--dunkel) .vorteil p, .section:not(.section--dunkel) .partner__liste span { color: var(--text-2); }
.section:not(.section--dunkel) .vorteil svg { color: var(--blau); }
.section:not(.section--dunkel) .partner__liste svg { color: var(--mint-text); }
.section--dunkel .faq details, .section--dunkel .schritt, .section--dunkel .karte { background: var(--nacht-2); border-color: var(--linie-dunkel); color: var(--weiss); }
.section--dunkel .faq details p, .section--dunkel .schritt p, .section--dunkel .karte p { color: var(--text-hell); }
.fliesstext { max-width: 820px; }
.fliesstext > * + * { margin-top: 14px; }
.fliesstext h2 { font-size: 26px; margin-top: 32px; }
.fliesstext h3 { font-size: 21px; margin-top: 24px; }
.fliesstext ul, .fliesstext ol { padding-left: 22px; }
.fliesstext img { max-width: 100%; height: auto; border-radius: 12px; }
.fliesstext blockquote { border-left: 4px solid var(--blau); margin-left: 0; padding: 4px 0 4px 18px; color: var(--text-2); }
.section--dunkel .fliesstext, .section--dunkel .fliesstext blockquote { color: var(--text-hell); }
.section--dunkel .fliesstext a { color: var(--blau-hell); }
.recht .fliesstext p, .recht .fliesstext li { color: #2B3550; }
.bildtext { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bildtext--rechts .bildtext__bild { order: 2; }
.bildtext__bild img { width: 100%; height: auto; border-radius: calc(var(--radius) + 4px); }
.aufruf .kopf { max-width: 760px; }
@media (max-width: 980px) {
  .bildtext { grid-template-columns: 1fr; gap: 32px; }
  .bildtext--rechts .bildtext__bild { order: 0; }
  .vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schritte { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .vorteile { grid-template-columns: 1fr; } }
