@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolagegrotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dmsans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #232c25;
  --muted: #4e594e;
  --forest: #283c30;
  --forest-hover: #3b5645;
  --paper: #f6f3eb;
  --white: #fffdfa;
  --line: #dad9cc;
  --soft: #e9eddf;
  --lime: #e3edab;
  --accent: #f3e4d8;
  --clay: #943b2c;
  --shadow: 0 16px 42px #282e2111;
  --radius: 20px;
  --sans: "DM Sans", system-ui, sans-serif;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body.portal { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.52 var(--sans); }
[hidden], [data-portal-inactive] { display: none !important; }
.portal p, .portal figure { margin: 0; }
.portal h1, .portal h2, .portal h3, .portal h4 { margin: 0; line-height: 1.12; }
.portal h1, .portal h2 { font-family: var(--display); font-weight: 740; letter-spacing: -.045em; }
.portal h1 { font-size: clamp(2.55rem, 6.2vw, 5.1rem); line-height: 1; }
.portal h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.portal h3 { font-size: 1.16rem; letter-spacing: -.015em; }
.portal a { color: inherit; text-underline-offset: .23em; }
.portal img { display: block; max-width: 100%; height: auto; }
.portal :is(button,input,select,textarea) { font: inherit; }
.portal :is(button,select,summary) { cursor: pointer; }
.portal button:disabled { cursor: default; opacity: .58; }
.portal :focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.portal .wrap { width: min(1220px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 10px; transform: translateY(-190%); background: var(--white); padding: 10px 14px; border: 2px solid var(--forest); }
.skip-link:focus { transform: none; }

.glyph { display: inline-block; position: relative; width: 18px; height: 18px; flex: none; }
.glyph::before, .glyph::after { content: ""; position: absolute; }
.glyph-leaf::before { inset: 1px 1px 2px; border: 2px solid; border-radius: 83% 22% 83% 22%; }
.glyph-leaf::after { width: 12px; height: 2px; border-radius: 2px; background: currentColor; top: 9px; left: 2px; transform: rotate(-46deg); }
.glyph-pin::before { width: 13px; height: 13px; top: 1px; left: 2px; border: 2px solid; border-radius: 58% 58% 58% 5%; transform: rotate(-45deg); }
.glyph-pin::after { width: 3px; height: 3px; top: 6px; left: 7px; border-radius: 50%; background: currentColor; }
.glyph-calendar::before { inset: 3px 1px 1px; border: 1.7px solid; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center 3px / 100% 1.5px no-repeat; }
.glyph-calendar::after { width: 2px; height: 5px; top: 1px; left: 5px; background: currentColor; border-radius: 1px; box-shadow: 6px 0 currentColor; }
.glyph-enter::before, .glyph-forward::before { width: 7px; height: 7px; right: 3px; top: 5px; border-right: 1.7px solid; border-top: 1.7px solid; transform: rotate(45deg); }
.glyph-enter::after, .glyph-forward::after { width: 11px; height: 1.7px; top: 8px; left: 3px; background: currentColor; }
.glyph-enter::after { left: 2px; }
.glyph-grid::before { width: 5px; height: 5px; left: 2px; top: 2px; border-radius: 1px; background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.glyph-check::before { inset: 2px; border: 1.7px solid; border-radius: 4px; }
.glyph-check::after { width: 8px; height: 5px; left: 5px; top: 6px; border: solid; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg); }
.glyph-drop::before { width: 12px; height: 12px; top: 3px; left: 3px; border: 1.7px solid; border-radius: 0 62% 62% 62%; transform: rotate(45deg); }
.glyph-mail::before { inset: 3px 1px; border: 1.7px solid; border-radius: 3px; }
.glyph-mail::after { width: 8px; height: 8px; top: 2px; left: 5px; border: solid; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.glyph-text::before { inset: 2px 3px; border: 1.7px solid; border-radius: 2px; }
.glyph-text::after { height: 1.5px; width: 5px; top: 7px; left: 6.5px; background: currentColor; box-shadow: 0 3px currentColor; }

.public-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.header-inner { min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.03; font: 780 1.2rem/1.03 var(--display); letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); font: 600 .72rem/1.2 var(--sans); letter-spacing: 0; margin-top: 5px; }
.mark { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 12px; background: var(--forest); color: var(--lime); }
.mark .glyph { scale: 1.32; }
.public-nav, .public-footer nav { display: flex; gap: clamp(15px, 3vw, 36px); align-items: center; flex-wrap: wrap; }
.public-nav a, .public-footer a { font-weight: 650; font-size: .92rem; text-decoration: none; }
.public-nav a:hover, .public-footer a:hover, .text-link:hover { text-decoration: underline; }
.btn, .portal #kraunsbusch-planung .kg-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; text-decoration: none; font-weight: 700; line-height: 1.2; text-align: center; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.btn.primary, .portal #kraunsbusch-planung .kg-mainaction { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn.primary:hover, .portal #kraunsbusch-planung .kg-mainaction:hover { background: var(--forest-hover); }
.btn.secondary, .portal #kraunsbusch-planung .kg-button:not(.kg-mainaction) { background: var(--white); color: var(--forest); border-color: var(--line); }
.btn.secondary:hover, .portal #kraunsbusch-planung .kg-button:not(.kg-mainaction):hover { background: var(--soft); }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.actions:empty { display: none; }

.public-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(440px,48vw,580px); margin-top: 24px; border-radius: 30px; background: var(--forest); color: var(--white); overflow: hidden; box-shadow: var(--shadow); }
.public-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#172c23f2 0%,#172c23df 29%,#172c2366 60%,#172c2312 100%); }
.hero-photo { position: absolute; z-index: -2; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-content { display: grid; justify-items: start; gap: 19px; max-width: 690px; padding: clamp(27px,5vw,69px); }
.hero-content h1 { font: 500 clamp(3.15rem,6vw,5.35rem)/1.02 Georgia,serif; letter-spacing: -.05em; }
.hero-content h1 span { display: block; color: var(--lime); }
.hero-content p { max-width: 39ch; color: #f5f6ee; font-size: clamp(1rem,1.7vw,1.15rem); }
.hero-content .btn.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.hero-content .btn.primary:hover { background: #f1f6ca; border-color: #f1f6ca; }
.hero-content .btn.secondary { background: #182f25c9; border-color: #b3c3ae; color: var(--white); }
.hero-content .btn.secondary:hover { background: var(--forest-hover); }

.quick-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 16px; }
.quick-links a, .quick-button { display: flex; align-items: center; text-align: left; gap: 13px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; min-width: 0; min-height: 81px; text-decoration: none; color: var(--ink); }
.quick-links a:hover, .quick-button:hover { background: #f0efdf; border-color: #abae91; }
.quick-symbol { height: 42px; width: 42px; flex: none; border-radius: 11px; background: var(--soft); color: var(--forest); display: grid; place-items: center; }
.quick-links :is(a,button):nth-child(3n+2) .quick-symbol { background: var(--accent); color: var(--clay); }
.quick-links :is(a,button):nth-child(3n) .quick-symbol { background: #eef0c9; color: #424c2c; }
.quick-links strong, .quick-button strong { display: block; font-weight: 700; }
.quick-links small, .quick-button small { display: block; font-size: .82rem; color: var(--muted); }
.quick-links :is(a,button) > .glyph-forward { margin-left: auto; color: var(--muted); }

.public-section { padding-top: 36px; margin-top: 23px; }
.public-section + .public-section { border-top: 1px solid var(--line); margin-top: 45px; }
.public-section:last-child { padding-bottom: 57px; }
.section-heading { display: flex; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 15px; }
.section-heading p { margin-top: 7px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,275px),1fr)); gap: 14px; }
.cards > :is(.empty,.form-result) { grid-column: 1/-1; }
.surface, .empty { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.surface { padding: clamp(15px, 2.6vw, 24px); }
.item { display: grid; gap: 10px; align-content: start; min-width: 0; }
.item > .btn { justify-self: start; }
.item > img { object-fit: cover; width: 100%; aspect-ratio: 16/9; border-radius: 12px; }
.empty { padding: 20px; color: var(--muted); }
.chip { font-size: .83rem; background: var(--soft); border: 1px solid #d7ddcf; border-radius: 7px; color: var(--forest); padding: 4px 10px; width: fit-content; align-self: start; font-weight: 650; max-width: 100%; }
.muted, .item .muted { color: var(--muted); }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.grounds-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 14px; }
.map-card a { display: block; border-radius: 12px; overflow: hidden; background: var(--paper); }
.map-card img { width: 100%; max-height: 440px; object-fit: contain; }
.parking-card { background: var(--soft); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.clean-list { list-style: none; margin: 13px 0; padding: 0; display: grid; gap: 10px; }
.clean-list li { border-bottom: 1px solid #ccd4c5; padding: 0 0 10px; }
.clean-list p { color: var(--muted); font-size: .93rem; margin-top: 3px; }
.text-link { color: var(--forest); font-weight: 690; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 15px; border: 1px solid var(--line); }
.public-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-inner { padding-block: 22px; flex-wrap: wrap; }
.privacy { max-width: 820px !important; padding: 32px 0; }
.privacy h1 { margin: 15px 0 22px; font-size: clamp(2rem,6vw,3.8rem); }
.privacy h2 { font-size: 1.55rem; margin: 15px 0 8px; }
.privacy p + p { margin-top: 10px; }

.portal-dialog { max-width: min(calc(100vw - 24px),610px); width: 100%; max-height: 90dvh; padding: 20px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
.portal-dialog::backdrop { background: #1d281bc0; }
.dialog-bar { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dialog-bar h2 { font-size: clamp(1.6rem,4vw,2.2rem); }
.portal-form { display: grid; gap: 11px; margin-top: 12px; }
.portal-form > .btn { justify-self: start; }
.portal-form label, .portal #kraunsbusch-planung .kg-fields label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
.portal-form input:not([type=checkbox]), .portal-form :is(textarea,select), .portal #kraunsbusch-planung .kg-fields :is(input,textarea,select), .portal #kraunsbusch-planung #abpumpteam-datum, .portal-nav-select select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #adb3a4; border-radius: 9px; background: var(--white); color: var(--ink); padding: 9px 10px; scroll-margin-top: 18px; }
.portal-form textarea { min-height: 88px; }
.portal-form .tick { display: flex; align-items: start; gap: 9px; font-weight: 500; }
.portal-form .tick input { width: 19px; height: 19px; accent-color: var(--forest); flex: none; }
.form-result { font-size: .91rem; color: var(--forest); font-weight: 630; }

.portal #kraunsbusch-planung { color-scheme: light; --kg-paper: var(--white); --kg-bg: var(--paper); --kg-soft: var(--soft); --kg-ink: var(--ink); --kg-dim: var(--muted); --kg-line: var(--line); --kg-green: var(--forest); --kg-on: var(--white); color: var(--ink); background: var(--paper); font: inherit; min-height: 0; padding: 0; }
.portal #kraunsbusch-planung .portal-shell { width: min(1220px,calc(100% - 56px)); max-width: none; background: transparent; border: 0; box-shadow: none; display: grid; align-items: start; gap: 22px; min-height: calc(100dvh - 154px); padding-block: 22px 42px; margin-inline: auto; overflow: visible; }
.portal #kraunsbusch-planung .portal-shell:has(.portal-sidebar:not([hidden])) { grid-template-columns: 234px minmax(0,1fr); }
.portal-sidebar { display: grid; gap: 14px; padding: 13px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 14px; }
.portal-sidebar nav { display: grid; gap: 5px; }
.portal-sidebar nav button { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; text-align: left; background: transparent; color: var(--ink); min-height: 44px; padding: 7px 10px; border-radius: 8px; font-weight: 660; }
.portal-sidebar nav button:hover { background: var(--soft); }
.portal-sidebar nav button[aria-current="page"] { background: var(--lime); border-color: #bfc88f; }
.portal-sidebar > a { font-size: .87rem; padding: 10px 10px 0; border-top: 1px solid var(--line); }
.portal-nav-select { display: none; }
.portal #kraunsbusch-planung .portal-main { display: grid; gap: 15px; min-width: 0; padding: 0; }
.portal-intro { border-radius: var(--radius); position: relative; overflow: hidden; min-height: 170px; display: grid; align-items: end; isolation: isolate; color: var(--white); background: var(--forest); padding: clamp(16px,3vw,32px); }
.portal-intro img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 55%; }
.portal-intro::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#172c23f2 0%,#172c23b8 36%,#172c2320 94%); }
.portal-intro h1 { font-size: clamp(1.9rem,4.5vw,3.3rem); }
.portal-intro p { margin-top: 8px; }
.portal #kraunsbusch-planung .portal-main:has(#login:not([hidden])) { width: min(100%,680px); margin-inline: auto; padding-top: clamp(2px,2vw,24px); }
.portal-main:has(#login:not([hidden])) .portal-intro { min-height: clamp(190px,33vw,265px); }
.portal #kraunsbusch-planung #login { display: grid; }
.portal #kraunsbusch-planung .portal-main:has(#login:not([hidden])) #login { padding: clamp(20px,3.5vw,35px); gap: 16px; }
.portal #kraunsbusch-planung #login-status:not([hidden]) { padding: 10px 12px; background: var(--accent); border-radius: 9px; }
.portal #kraunsbusch-planung .login-help { margin-top: 4px; font-size: .92rem; }
.portal-view { display: grid; gap: 14px; min-width: 0; }
.portal #kraunsbusch-planung .portal-view h2 { font: 740 clamp(1.8rem,4.5vw,2.6rem)/1.12 var(--display); letter-spacing: -.045em; }
.portal #kraunsbusch-planung .portal-view :is(h3,h4) { font: 700 1.16rem/1.2 var(--sans); }
.portal-view .section-heading, .portal-view .quick-links { margin: 0; }
.portal-view .quick-links { grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); }
.portal-view .quick-button { padding: 12px; gap: 9px; }
.portal-view .quick-button .quick-symbol { width: 34px; height: 34px; border-radius: 9px; }
.portal-view .quick-button strong { overflow-wrap: anywhere; }
.portal #kraunsbusch-planung .kg-box { box-shadow: none; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--ink); padding: clamp(15px,3vw,24px); gap: 10px; min-width: 0; }
.portal #kraunsbusch-planung .kg-box.kg-tint { background: var(--soft); }
.portal #kraunsbusch-planung .kg-box :is(h3,h4) { font: 700 1.13rem/1.2 var(--sans); }
.portal #kraunsbusch-planung :is(.kg-sub,.kg-caption,.kg-props dt) { color: var(--muted); }
.portal #kraunsbusch-planung .kg-list li { border-color: var(--line); }
.portal #kraunsbusch-planung .kg-hours { background: var(--soft); color: var(--forest); accent-color: var(--forest); }
.portal #kraunsbusch-planung .kg-hours::-webkit-progress-bar { background: var(--soft); }
.portal #kraunsbusch-planung .kg-hours::-webkit-progress-value { background: var(--forest); }
.portal #kraunsbusch-planung .kg-line { gap: 10px; flex-wrap: wrap; }
.portal #kraunsbusch-planung .portal-form .btn { align-self: start; width: fit-content; }
.search-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.admin-module > summary { font-weight: 750; }
.admin-module > summary + * { margin-top: 10px; }
.admin-items, .thread { display: grid; gap: 10px; }
.admin-row { display: grid; gap: 6px; background: var(--paper); border-radius: 11px; padding: 10px; overflow-wrap: anywhere; }
.thread .message { border-radius: 11px; background: var(--soft); padding: 12px; }
.thread .message.own { background: var(--accent); }
details summary { min-height: 38px; align-content: center; }
.portal #kraunsbusch-planung #pump-slot { width: auto; padding: 0; background: none; border: 0; min-height: 0; }
.time-field { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.time-field legend { font-weight: 650; margin-bottom: 6px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(70px,1fr)); gap: 7px; }
.portal #kraunsbusch-planung .kg-button.time-option { min-height: 44px; padding-inline: 6px; }
.portal #kraunsbusch-planung .kg-button.time-option[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.portal #kraunsbusch-planung .kg-map-dialog { color: var(--ink); background: var(--white); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .public-nav { display: none; }
  .hero-content { padding: clamp(25px,5vw,42px); gap: 15px; }
  .public-hero h1 { font-size: clamp(2.45rem,8.2vw,4.55rem); }
  .quick-links a { padding: 12px; gap: 9px; }
  .quick-symbol { width: 37px; height: 37px; }
  .portal #kraunsbusch-planung .portal-shell:has(.portal-sidebar:not([hidden])) { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .portal-sidebar { position: sticky; z-index: 2; top: 0; padding: 7px 10px; border-radius: 13px; }
  .portal-sidebar :is(nav, a) { display: none; }
  .portal-nav-select { display: flex; gap: 10px; align-items: center; color: var(--forest); font-size: .88rem; font-weight: 700; }
  .portal-nav-select span { flex: none; }
  .portal-nav-select select { background: var(--soft); min-height: 44px; }
  .portal-main { scroll-margin-top: 65px; }
  .portal-intro { min-height: 137px; }
}

@media (max-width: 590px) {
  .portal .wrap, .portal #kraunsbusch-planung .portal-shell { width: calc(100% - 28px); }
  .header-inner { min-height: 68px; gap: 7px; }
  .brand { font-size: 1.07rem; gap: 8px; }
  .brand small { font-size: .66rem; }
  .mark { width: 35px; height: 35px; border-radius: 8px; }
  .mark .glyph { scale: 1.05; }
  :is(.header-login,.home-link,#logout) { font-size: .84rem; padding: 8px 9px; min-height: 44px; }
  .header-login .glyph { width: 14px; }
  .private-page .header-inner .actions:has(#logout:not([hidden])) .home-link { display: none; }
  .public-hero { min-height: 430px; margin-top: 13px; border-radius: 20px; }
  .public-hero::before { background: linear-gradient(0deg,#172c23fa 0%,#172c23e8 30%,#172c23a8 52%,#172c2310 83%); }
  .hero-photo img { object-position: 49% 50%; }
  .hero-content { gap: 13px; padding: 20px; }
  .hero-content .actions { gap: 8px; }
  .quick-links, .grounds-grid { grid-template-columns: minmax(0,1fr); }
  .quick-links { gap: 7px; margin-top: 11px; }
  .quick-links a { min-height: 64px; padding: 9px 12px; }
  .public-section { margin-top: 8px; padding-top: 23px; }
  .public-section + .public-section { margin-top: 33px; }
  .section-heading { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .gallery img { aspect-ratio: 16/10; }
  .portal #kraunsbusch-planung .portal-shell { padding-top: 12px; }
  .portal #kraunsbusch-planung .portal-main:has(#login:not([hidden])) { padding-top: 0; }
  .portal-view .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .portal #kraunsbusch-planung .portal-view .quick-button { display: grid; grid-template-columns: minmax(0,1fr) 18px; align-items: start; align-content: start; padding: 10px; min-height: 100px; font-size: .9rem; }
  .portal-view .quick-button > :nth-child(2) { grid-column: 1/-1; grid-row: 2; }
  .portal-view .quick-button > .glyph-forward { grid-column: 2; grid-row: 1; align-self: center; }
  .footer-inner { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
