/* Koesmosegård: calm and light. Cream and sand, forest green, a touch of saddle brown; Cormorant Garamond for headings
   (it echoes the logo's lettering) and Inter for text. Fonts are template files, never loaded from Google (CD-030). */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/cormorant-400.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/cormorant-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/cormorant-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }

:root {
    --k-cream: #faf7f1;
    --k-sand: #f1eadd;
    --k-paper: #fffdf9;
    --k-ink: #1f2b25;
    --k-text: #3a4640;
    --k-muted: #66726b;
    --k-green: #2f5141;
    --k-green-deep: #1f382c;
    --k-brown: #8f5f3a;
    --k-line: rgba(31, 43, 37, .12);
    --k-radius: 14px;
    --k-shadow: 0 1px 2px rgba(31, 43, 37, .05), 0 12px 32px -18px rgba(31, 43, 37, .28);
    --k-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --k-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --k-gutter: clamp(20px, 5vw, 48px);
    /* The platform's blocks (button, section, map) take their colours from these. */
    --cocio-accent: var(--k-green);
    --cocio-on-accent: #fff;
    --cocio-surface: var(--k-sand);
    --cocio-line: var(--k-line);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--k-cream); color: var(--k-text); font: 400 1.0625rem/1.65 var(--k-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--k-green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--k-brown); }
:focus-visible { outline: 2px solid var(--k-brown); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--k-ink); font-family: var(--k-serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.k-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--k-green); color: #fff; border-radius: 8px; }
.k-skip:focus { top: 1rem; color: #fff; }

.k-wrap { width: min(1160px, 100% - 2 * var(--k-gutter)); margin-inline: auto; }
.k-eyebrow { margin: 0 0 .9rem; color: var(--k-brown); font: 600 .75rem/1.4 var(--k-sans); letter-spacing: .16em; text-transform: uppercase; }
.k-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--k-ink); }

/* Buttons: the editor's "Link button" block (cocio-button) and the map's button look the same. */
.cocio-button, .cocio-map-show, .k-header-cta {
    display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border: 0; border-radius: 999px;
    background: var(--k-green); color: #fff; font: 600 .95rem/1.2 var(--k-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.cocio-button:hover, .cocio-map-show:hover, .k-header-cta:hover { background: var(--k-green-deep); color: #fff; transform: translateY(-1px); }
.k-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.8rem; }

/* ----- Header ------------------------------------------------------------------------------------------------- */
.k-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 241, .93); border-bottom: 1px solid var(--k-line); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); }
.k-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.k-brand { display: flex; align-items: center; gap: .85rem; margin-right: auto; color: var(--k-ink); text-decoration: none; }
.k-brand:hover { color: var(--k-ink); }
.k-brand img { width: 58px; height: auto; }
.k-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.k-brand-name { font: 600 1.6rem/1 var(--k-serif); }
.k-brand-sub { margin-top: .3rem; color: var(--k-brown); font: 600 .64rem/1 var(--k-sans); letter-spacing: .18em; text-transform: uppercase; }
.k-header-cta { padding: .7em 1.4em; font-size: .9rem; }

.k-nav .cocio-menu { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.k-nav .cocio-menu a, .k-nav .cocio-menu summary { display: block; padding: .4rem 0; border-bottom: 2px solid transparent; color: var(--k-text); font: 500 .95rem/1.4 var(--k-sans); text-decoration: none; cursor: pointer; }
.k-nav .cocio-menu a:hover, .k-nav .cocio-menu summary:hover, .k-nav .cocio-menu > li.cocio-active > a, .k-nav .cocio-menu > li.cocio-active > details > summary { color: var(--k-green); border-color: var(--k-brown); }
.k-nav .cocio-menu summary { list-style: none; }
.k-nav .cocio-menu summary::-webkit-details-marker { display: none; }
.k-nav .cocio-menu summary::after { content: " ▾"; color: var(--k-brown); }
.k-nav .cocio-menu details { position: relative; }
.k-nav .cocio-menu ul { position: absolute; top: 100%; left: -1rem; min-width: 14rem; margin: .4rem 0 0; padding: .6rem 1rem; list-style: none; background: var(--k-paper); border: 1px solid var(--k-line); border-radius: 10px; box-shadow: var(--k-shadow); }
.k-nav .cocio-menu ul a { border: 0; }
.k-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.k-menu-button { display: none; }

@media (max-width: 860px) {
    .k-menu-button { display: grid; place-items: center; order: 3; width: 44px; height: 44px; cursor: pointer; }
    .k-menu-button span:first-child, .k-menu-button span:first-child::before, .k-menu-button span:first-child::after { display: block; width: 22px; height: 2px; background: var(--k-ink); content: ""; position: relative; }
    .k-menu-button span:first-child::before { position: absolute; top: -7px; }
    .k-menu-button span:first-child::after { position: absolute; top: 7px; }
    .k-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--k-gutter) 1.4rem; background: var(--k-cream); border-bottom: 1px solid var(--k-line); }
    .k-menu-toggle:checked ~ .k-nav { display: block; }
    .k-nav .cocio-menu { flex-direction: column; gap: .2rem; }
    .k-nav .cocio-menu ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
}
@media (max-width: 520px) {
    .k-header-inner { gap: .8rem; min-height: 64px; }
    .k-brand img { width: 46px; }
    .k-brand-name { font-size: 1.35rem; }
    .k-brand-sub { display: none; }
    .k-header-cta { padding: .6em 1.1em; font-size: .85rem; }
}

/* ----- Front page sections (page content, edited in the editor) ------------------------------------------------ */
.k-front > :first-child:not(.k-hero) { margin-top: 0; }
.k-section { padding: clamp(64px, 9vw, 120px) 0; }
.k-section + .k-section { border-top: 1px solid var(--k-line); }

/* Hero: the black-and-white photograph of the running horses, lit from the left so the text sits in the light. */
.k-hero {
    position: relative; display: flex; align-items: center; min-height: clamp(540px, 84vh, 780px); padding: clamp(72px, 10vw, 120px) 0;
    background-color: var(--k-sand);
    background-image: linear-gradient(90deg, rgba(250, 247, 241, .97) 0%, rgba(250, 247, 241, .9) 34%, rgba(250, 247, 241, .35) 62%, rgba(250, 247, 241, 0) 78%), url(images/hero-1920.jpg);
    background-size: cover; background-position: 68% 50%;
}
.k-hero::after { position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(rgba(250, 247, 241, 0), var(--k-cream)); content: ""; pointer-events: none; }
.k-hero > .k-wrap { position: relative; z-index: 1; }
.k-hero-text { max-width: 36rem; }
.k-hero h1 { color: var(--k-green-deep); }
.k-hero .k-lead { color: var(--k-ink); }
@media (max-width: 800px) {
    .k-hero {
        align-items: flex-end; min-height: 0; padding: 220px 0 56px;
        background-image: linear-gradient(180deg, rgba(250, 247, 241, 0) 0, rgba(250, 247, 241, .5) 190px, rgba(250, 247, 241, .94) 300px, var(--k-cream) 380px), url(images/hero-1024.jpg);
        background-size: 100% 100%, auto 420px; background-position: 0 0, 68% 0; background-repeat: no-repeat;
    }
}

/* Riding therapy: the text, and a card per way in (with or without a doctor's referral) with the person to call. */
.k-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.k-people { display: grid; gap: 1.25rem; }
.k-card { background: var(--k-paper); border: 1px solid var(--k-line); border-radius: var(--k-radius); box-shadow: var(--k-shadow); }
.k-person { padding: clamp(24px, 3vw, 32px); }
.k-person h3 { margin-bottom: .35em; }
.k-person p:last-child { margin-bottom: 0; }
.k-tag { display: inline-block; margin: 0 0 .9rem; padding: .3em .8em; border-radius: 999px; background: var(--k-sand); color: var(--k-brown); font: 600 .72rem/1.3 var(--k-sans); letter-spacing: .08em; text-transform: uppercase; }
.k-contact-line { padding-top: 1rem; border-top: 1px solid var(--k-line); line-height: 1.5; }
.k-contact-line a { font-weight: 600; text-decoration: none; }
.k-note { display: flex; gap: .7rem; align-items: baseline; padding: 1rem 1.2rem; border-left: 3px solid var(--k-brown); background: var(--k-sand); border-radius: 0 10px 10px 0; color: var(--k-ink); }
@media (max-width: 900px) { .k-intro-grid { grid-template-columns: 1fr; } }

/* Teams: a card per day with a photograph. */
.k-teams { background: var(--k-sand); }
.k-section.k-teams, .k-section.k-teams + .k-section { border-top: 0; }
.k-section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 48px); }
.k-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.k-team { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.k-team:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(31, 43, 37, .05), 0 20px 40px -20px rgba(31, 43, 37, .38); }
.k-team img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.k-team-text { padding: 24px 26px 28px; }
.k-team h3 { margin-bottom: .2em; }
.k-team-time { margin-bottom: .9em; color: var(--k-brown); font-size: .95rem; }
.k-team-time strong { color: var(--k-ink); font-weight: 600; }
.k-team p:last-child { margin-bottom: 0; }

/* Find us: the address and the map block. */
.k-find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.k-find address { margin-bottom: 1.4em; color: var(--k-ink); font-size: 1.15rem; line-height: 1.6; }
.k-find .cocio-map { border-radius: var(--k-radius); border: 1px solid var(--k-line); box-shadow: var(--k-shadow); background: var(--k-sand); }
@media (max-width: 860px) { .k-find-grid { grid-template-columns: 1fr; } }

/* The map block's first view (before the visitor shows the map). */
.cocio-map-consent { background: radial-gradient(circle at 50% 38%, var(--k-paper), var(--k-sand) 70%); color: var(--k-text); }
.cocio-map-place { color: var(--k-ink); font: 600 1.5rem/1.2 var(--k-serif); font-variant-numeric: lining-nums; }
.cocio-map-note { max-width: 30em; margin-inline: auto; color: var(--k-muted); font-size: .88rem; }
.cocio-map-open { color: var(--k-green); font-weight: 600; font-size: .95rem; }

/* ----- Ordinary pages ----------------------------------------------------------------------------------------- */
.k-page { width: min(760px, 100% - 2 * var(--k-gutter)); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); }
.k-page h1 { margin-bottom: .4em; color: var(--k-green-deep); }
.k-page h2 { margin-top: 1.4em; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.k-page img { border-radius: 10px; }

/* News */
.k-news { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin: 0 0 2rem; }
.k-news .news-intro { color: var(--k-ink); font-size: 1.15rem; }
.k-news figure { margin: 0; }
.k-news figure img { display: block; width: 100%; border-radius: var(--k-radius); }
@media (max-width: 760px) { .k-news { grid-template-columns: 1fr; } }

/* ----- Footer (#kontakt) -------------------------------------------------------------------------------------- */
.k-footer { padding: clamp(56px, 8vw, 96px) 0 2rem; background: var(--k-green-deep); color: rgba(250, 247, 241, .82); font-size: .98rem; }
.k-footer a { color: var(--k-cream); }
.k-footer a:hover { color: #e7c9a6; }
.k-footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.k-footer-brand p { max-width: 24rem; margin-top: 1.2rem; }
.k-social { display: inline-flex; align-items: center; gap: .55rem; margin-top: .4rem; padding: .45rem .9rem .45rem .6rem; border: 1px solid rgba(250, 247, 241, .28); border-radius: 999px; font-size: .92rem; text-decoration: none; }
.k-social:hover { border-color: #e7c9a6; }
.k-social svg { flex: none; }
.k-footer-badge { display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--k-cream); box-shadow: 0 0 0 6px rgba(250, 247, 241, .12); }
.k-footer-badge img { width: 108px; height: 108px; }
.k-footer-heading { margin-bottom: .9rem; color: #e7c9a6; font: 600 .75rem/1.4 var(--k-sans); letter-spacing: .16em; text-transform: uppercase; }
.k-footer address { margin-bottom: 1rem; line-height: 1.6; }
.k-footer strong { color: var(--k-cream); font-weight: 600; }
.k-footer-lines { display: flex; flex-direction: column; gap: .25rem; }
.k-footer-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: 1.4rem; border-top: 1px solid rgba(250, 247, 241, .14); color: rgba(250, 247, 241, .55); font-size: .82rem; }
.k-footer-bottom a { color: rgba(250, 247, 241, .7); }
.k-footer-bottom .cocio-consent-settings { padding: 0; border: 0; background: none; color: rgba(250, 247, 241, .7); font: inherit; text-decoration: underline; cursor: pointer; }
.k-credit { margin-left: auto; color: rgba(250, 247, 241, .45) !important; text-decoration: none; }
@media (max-width: 860px) { .k-footer-grid { grid-template-columns: 1fr 1fr; } .k-footer-brand { grid-column: 1 / -1; } .k-credit { margin-left: 0; } }
@media (max-width: 520px) { .k-footer-grid { grid-template-columns: 1fr; } }
