/* CavalPlan – Startseite. Farben und Schriften aus brand/tokens.json und brand/GESTALTUNGSREGELN.md */
@font-face { font-family: 'Lora'; font-weight: 500; font-display: swap; src: url('/fonts/lora-500.woff') format('woff'); }
@font-face { font-family: 'Lora'; font-weight: 600; font-display: swap; src: url('/fonts/lora-600.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff') format('woff'); }

:root {
  --ink: #15302A; --paper: #F6F2E8; --white: #fff; --hay: #E0A82E; --hay-deep: #8A5A00;
  --care: #2F6F4F; --care-tint: #9ED3B4; --care-soft: #E3F0E8;
  --stable: #1F4E6B; --stable-tint: #9CC3DD; --stable-soft: #E2ECF3;
  --stone: #5B6560; --line: #D9D3C4;
  --serif: 'Lora', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #1A73E8; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
.small { font-size: .9rem; color: var(--stone); }

/* ---------- Kopf ---------- */
.site-head { max-width: var(--wrap); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 40px; width: auto; }
.site-head nav { display: flex; gap: 28px; font-weight: 600; font-size: .98rem; }
.site-head nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover { border-color: var(--hay); }
@media (max-width: 720px) { .site-head nav { display: none; } }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; font: 600 1rem var(--sans); text-decoration: none; transition: transform .08s; }
.btn:active { transform: translateY(1px); }
.btn--care { background: var(--care); color: var(--white); }
.btn--stable { background: var(--stable); color: var(--white); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--outline { border: 2px solid currentColor; color: var(--care); padding: 0 20px; }
.btn--outline-light { border: 2px solid rgba(246, 242, 232, .7); color: var(--paper); padding: 0 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn:focus-visible { outline: 3px solid var(--hay); outline-offset: 3px; }
.demo-note { font-size: .92rem; margin-top: 12px; }

/* ---------- Einstieg: der gemeinsame Tag ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 88px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; max-width: 13ch; }
.lead { font-size: 1.2rem; line-height: 1.55; margin-top: 24px; max-width: 34em; color: #2c4540; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: .95rem; color: var(--stone); }

.day { margin: 0; background: var(--white); border-radius: 20px; padding: 26px 26px 20px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(21, 48, 42, .35); position: relative; }
.day::before { /* Planpunkt aus der Bildmarke */
  content: ''; position: absolute; top: -14px; right: 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--hay); box-shadow: 0 0 0 6px var(--paper);
}
.day__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day__horse { font: 600 1.6rem var(--serif); }
.day__date { color: var(--stone); }
.day__list { list-style: none; margin: 0; padding: 0; }
.day__item { display: grid; grid-template-columns: 62px 1fr; gap: 2px 14px; padding: 14px 0 14px 14px; border-bottom: 1px solid #EEE9DD; position: relative; }
.day__item::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 2px; }
.day__item--feeding::before { background: var(--care); }
.day__item--care::before { background: var(--hay); }
.day__item--pasture::before { background: #7FA37A; }
.day__item--training::before { background: var(--stable); }
.day__item time { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.day__item strong { display: block; font-weight: 600; }
.day__item span { color: var(--stone); font-size: .95rem; }
.day__item span b { color: var(--care); font-weight: 600; }
.day__item .tag { grid-column: 2; justify-self: start; }
.tag { font-style: normal; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #EEEBE3; color: var(--stone); }
.tag--done { background: var(--care-soft); color: var(--care); }
.tag--change { background: #FFF1D6; color: var(--hay-deep); }
.day__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: .85rem; color: var(--stone); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; margin-left: 4px; }
.dot--feeding { background: var(--care); } .dot--care { background: var(--hay); } .dot--pasture { background: #7FA37A; } .dot--training { background: var(--stable); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; } }

/* ---------- CavalPlan Care: Versorgung im Mittelpunkt ---------- */
.care { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.care__logo { height: 34px; width: auto; margin-bottom: 24px; }
.care__intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 18ch; }
.care__intro p { margin-top: 16px; max-width: 36em; color: #3b524c; font-size: 1.1rem; }
.care__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 48px 0 64px; border-top: 2px solid var(--ink); }
.topic { padding: 24px 24px 8px 0; }
.topic + .topic { padding-left: 24px; border-left: 1px solid var(--line); }
.topic h3 { font-size: 1.3rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.topic h3::before { content: ''; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.topic--feeding h3::before { background: var(--care); } .topic--care h3::before { background: var(--hay); }
.topic--pasture h3::before { background: #7FA37A; } .topic--training h3::before { background: var(--stable); }
.topic p { color: #3b524c; font-size: 1rem; }
.care__more { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.care__more h3 { font-size: 1.25rem; margin-bottom: 8px; }
.care__more h3 + .checklist { margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; max-width: 36em; }
.checklist li { padding: 9px 0 9px 30px; border-top: 1px solid var(--line); position: relative; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--care); border-bottom: 2.5px solid var(--care); transform: rotate(-45deg); }
.checklist--soon li { color: var(--stone); }
.checklist--soon li::before { width: 9px; height: 9px; border: 2px solid var(--line); border-radius: 50%; transform: none; top: 15px; }
.product__shot img { border-radius: 26px; border: 8px solid #DDE5DF; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
@media (max-width: 960px) {
  .care__grid { grid-template-columns: 1fr 1fr; }
  .topic:nth-child(3) { padding-left: 0; border-left: 0; }
  .care__more { grid-template-columns: 1fr; gap: 32px; }
  .care__more .product__shot { max-width: 300px; }
}
@media (max-width: 560px) { .care__grid { grid-template-columns: 1fr; } .topic + .topic { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- CavalPlan Stable: eigenes Produkt für Betriebe ---------- */
.stable { background: var(--stable); color: var(--paper); padding: 80px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 0; display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: end; overflow: hidden; }
.stable__copy { padding-bottom: 80px; }
.product__logo { height: 34px; width: auto; margin-bottom: 24px; }
.stable h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); max-width: 20ch; }
.stable p { margin-top: 14px; max-width: 34em; color: rgba(246, 242, 232, .88); }
.stable ul { margin: 22px 0 30px; padding: 0; list-style: none; max-width: 34em; }
.stable li { padding: 9px 0 9px 26px; border-top: 1px solid rgba(246, 242, 232, .18); position: relative; }
.stable li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--hay); }
.stable .product__shot img { border-radius: 26px 26px 0 0; border: 8px solid rgba(0, 0, 0, .22); border-bottom: 0; }
@media (max-width: 900px) { .stable { grid-template-columns: 1fr; gap: 0; } .stable__copy { padding-bottom: 40px; } .stable .product__shot { max-width: 300px; justify-self: center; } }

/* ---------- Fakten ---------- */
.facts { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.fact { padding: 36px 40px 0 0; border-top: 2px solid var(--ink); }
.fact + .fact { padding-left: 40px; border-left: 1px solid var(--line); }
.fact h2 { font-size: 1.6rem; margin-bottom: 12px; }
.fact p { max-width: 34em; color: #3b524c; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 40px; } .fact + .fact { padding-left: 0; border-left: 0; } }

/* ---------- Schleife der Woche ---------- */
.award { background: var(--ink); color: var(--paper); }
.award { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.award img { width: 150px; height: 150px; }
.award h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.award p { margin-top: 12px; max-width: 40em; color: rgba(246, 242, 232, .85); }
@media (max-width: 640px) { .award { grid-template-columns: 1fr; } .award img { width: 128px; height: 128px; } }

/* ---------- Preise ---------- */
.prices { max-width: var(--wrap); margin: 0 auto; padding: 96px 24px; }
.prices h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.prices__intro { margin-top: 12px; max-width: 40em; color: #3b524c; }
.prices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0 20px; }
.price-group h3 { font-size: 1.35rem; padding-bottom: 12px; border-bottom: 3px solid; }
.price-group--care h3 { border-color: var(--care); } .price-group--stable h3 { border-color: var(--stable); }
.price-group dl { margin: 0; }
.price-group dl > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-group dt { font-weight: 600; }
.price-group dd { margin: 0; color: #3b524c; }
.price-group dd strong { display: block; color: var(--ink); font: 600 1.25rem var(--serif); margin-bottom: 2px; font-variant-numeric: lining-nums; }
.price-group .small { margin-top: 12px; }
@media (max-width: 760px) { .prices__grid { grid-template-columns: 1fr; } .price-group dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Fuß ---------- */
.site-foot { background: var(--ink); color: var(--paper); padding: 40px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(246, 242, 232, .12); }
.site-foot img { height: 34px; width: auto; }
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; opacity: .9; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Rechtliche Seiten ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 24px 96px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #2c4540; }
.legal p + p { margin-top: 10px; }
.legal .todo { background: #FFF1D6; color: var(--hay-deep); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal .notice { background: #FFF1D6; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; color: var(--hay-deep); }
