/* =====================
   Core-Plus Styles – global
   ===================== */

/* Design Tokens */
:root {
  --green:#2F3E34;
  --red:#C14732;
  --offwhite:#F5F5F4;
  --dark:#1C1C1C;
  --gold1:#D6B87A;
  --gold2:#BFA25C;
  --focus:#0b5fff;
}

/* Base */
* { box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dark);
  background: var(--offwhite);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4{ font-family:"Playfair Display", Georgia, serif; font-weight:700; }

/* A11y utilities */
.visually-hidden {
  position:absolute !important; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0;
}
.visually-hidden-focusable{
  position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.visually-hidden-focusable:focus{
  position:static !important; width:auto; height:auto; padding:8px 12px; background:#fff;
  border:1px solid #ccc; border-radius:6px; display:inline-block; margin:8px;
}

/* Global focus style */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline:3px solid color-mix(in srgb, var(--gold1) 55%, transparent);
  outline-offset:2px; border-radius:6px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; min-width:170px; padding:12px 24px;
  border-radius:12px; font-weight:600; font-size:15px; text-decoration:none;
  cursor:pointer; color:#fff; background:var(--green);
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  transition:transform .2s, filter .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  position:relative; overflow:hidden;
}
.btn svg{ width:16px; height:16px; fill:currentColor; flex:0 0 auto; }
.btn:hover{ transform:translateY(-2px); filter:brightness(1.06); }
.btn:active{ transform:translateY(0); }
.btn--green{ background:var(--green); }
.btn--red{ background:var(--red); }
.btn--secondary{
  border:2px solid var(--gold2); background:transparent; color:var(--gold2);
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.btn--secondary:hover{
  background:linear-gradient(135deg, var(--gold1), var(--gold2)); color:var(--dark);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.btn--secondary::before{
  content:""; position:absolute; inset:-60% -20% auto -20%; height:200%;
  background:linear-gradient(60deg,transparent 45%,rgba(255,255,255,.6) 50%,transparent 55%);
  transform:translateX(-120%); transition:transform .6s ease; pointer-events:none;
}
.btn--secondary:hover::before{ transform:translateX(0%); }

/* Layout helpers */
.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.section{ padding:clamp(48px,6vw,96px) 0; }

/* Simple responsive grids */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(16px,3vw,32px); }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,3vw,32px); }
@media (max-width:900px){ .grid-2, .grid-3{ grid-template-columns:1fr; } }

/* Reveal (CSS-only; JS pro Section) */
.reveal{ opacity:0; transform:translateY(14px); }
.revealed{ opacity:1; transform:none; transition:.6s ease; }
@media (prefers-reduced-motion:reduce){
  .reveal,.revealed{ opacity:1; transform:none; transition:none; }
  .btn, .btn--secondary::before{ transition:none !important; }
}

/* Forms baseline */
input, textarea, select{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#FAFAFA;
  font:inherit;
}
input:focus, textarea:focus, select:focus{
  outline:none;
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(214,184,122,.3);
  background:#fff;
}

/* Spacing utilities (small set) */
.mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-40{ margin-top:40px; }
.mb-16{ margin-bottom:16px; } .mb-24{ margin-bottom:24px; } .mb-40{ margin-bottom:40px; }
.pt-24{ padding-top:24px; } .pb-24{ padding-bottom:24px; }

/* ===================== HKB: Leistungsseiten-Bausteine (scoped) ===================== */
/* Greift nur innerhalb eines Containers mit .hk-scope */

:root{
  /* Falls noch nicht gesetzt – Design-Variablen */
  --green:#2F3E34; --red:#C14732; --offwhite:#F5F5F4; --dark:#1C1C1C;
  --gold1:#D6B87A; --gold2:#BFA25C; --focus:#0b5fff;
}

/* Section & Container */
.hk-scope .section, .hk-scope.section { padding: clamp(40px, 6vw, 80px) 20px; background: var(--offwhite); }
.hk-scope .container { max-width: 1100px; margin: 0 auto; }

/* Typo-Bausteine */
.hk-scope .eyebrow{
  display:inline-block; font:600 12px/1 "Inter",system-ui; letter-spacing:.14em; text-transform:uppercase;
  background:linear-gradient(135deg, var(--gold1), var(--gold2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hk-scope .h1, .hk-scope .title{
  font-family:"Playfair Display", Georgia, serif; font-weight:700;
  font-size: clamp(28px, 4.6vw, 42px); line-height:1.15; margin:4px 0 6px;
}
.hk-scope .lead{ color:#333; font-size:clamp(16px, 2.2vw, 19px); line-height:1.65; max-width: 820px; }

/* Breadcrumb */
.hk-scope .breadcrumb{
  font-size:14px; margin-bottom:14px; color:#4a4a4a; display:flex; flex-wrap:wrap; gap:6px;
}
.hk-scope .breadcrumb a{ color:inherit; text-decoration:none; }
.hk-scope .breadcrumb a:hover{ text-decoration:underline; }

/* Karten */
.hk-scope .card{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}
.hk-scope .card--p{ padding: clamp(18px, 3.2vw, 28px); }
.hk-scope .sidecard{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:14px;
  padding:16px; box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.hk-scope .sidecard + .sidecard{ margin-top:12px; }
.hk-scope .title-s{ font-weight:700; font-size:15px; letter-spacing:.04em; margin-bottom:8px; color:#2b2b2b; }

/* Subnav / Pills */
.hk-scope .subnav{ display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.hk-scope .pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; min-height:44px; border-radius:999px; font-weight:600; font-size:14px;
  background:#fff; border:1px solid rgba(0,0,0,.08); white-space:nowrap;
  transition:background .2s ease, transform .2s ease;
}
.hk-scope .pill:hover{ background:rgba(0,0,0,.03); transform:translateY(-1px); }
@media (max-width:700px){
  .hk-scope .subnav{ flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
  .hk-scope .pill{ scroll-snap-align:start; }
}

/* 2-Spalten Layout */
.hk-scope .grid-article{
  display:grid; grid-template-columns: 1.5fr .9fr; gap: clamp(18px, 3.6vw, 32px);
  margin-top: clamp(22px, 4vw, 32px);
}
@media (max-width:1024px){ .hk-scope .grid-article{ grid-template-columns:1fr; } }

/* Galerie */
.hk-scope .gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0; }
@media (max-width:900px){ .hk-scope .gallery{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .hk-scope .gallery{ grid-template-columns:1fr 1fr; gap:8px; } }
.hk-scope .gallery img{
  width:100%; display:block; object-fit:cover; background:#eee;
  border-radius:12px; border:1px solid rgba(0,0,0,.06); box-shadow:0 6px 16px rgba(0,0,0,.08);
  aspect-ratio: 4 / 3;
}
.hk-scope .gallery .figure-wide{ grid-column:1 / -1; aspect-ratio: 16 / 9; }
@media (max-width:760px){ .hk-scope .gallery .figure-wide{ aspect-ratio: 3 / 2; } }

/* Steps */
.hk-scope .steps{ display:grid; gap:10px; margin-top:6px; }
.hk-scope .step{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:12px;
  padding:12px 14px; box-shadow:0 6px 16px rgba(0,0,0,.08); line-height:1.55;
}
.hk-scope .step b{ display:block; margin-bottom:4px; }

/* FAQ */
.hk-scope .faq-item{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:12px; padding:12px 14px; box-shadow:0 6px 16px rgba(0,0,0,.08); margin-bottom:8px; }
.hk-scope .faq-item summary{ cursor:pointer; font-weight:700; list-style:none; outline:none; }
.hk-scope .faq-item summary::-webkit-details-marker{ display:none; }

/* Checkliste & Key-Value */
.hk-scope .checklist{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.hk-scope .check{ width:18px; height:18px; border-radius:5px; background:linear-gradient(135deg,var(--gold1),var(--gold2)); flex:0 0 18px; box-shadow:0 2px 6px rgba(0,0,0,.12); display:inline-block; }
.hk-scope .kvp{ display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.hk-scope .kvp li{ display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed rgba(0,0,0,.08); padding-bottom:6px; }
.hk-scope .kvp b{ font-weight:700; }

/* Buttons */
.hk-scope .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:10px 16px; border-radius:12px; font-weight:700; font-size:14px; text-decoration:none;
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
}
.hk-scope .btn:hover{ transform:translateY(-2px); filter:brightness(1.05); }
.hk-scope .btn--green{ background:var(--green); color:#fff; }
.hk-scope .btn--secondary{
  background:linear-gradient(135deg,var(--gold1),var(--gold2)); color:#fff; border:none; box-shadow:0 8px 20px rgba(0,0,0,.15);
}
.hk-scope .btn--secondary:hover{ filter:brightness(1.08); }
@media (max-width:560px){ .hk-scope .btn{ width:100%; } }

/* CTA-Band (gold) */
.hk-scope .cta--gold{
  margin-top: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, var(--gold1), var(--gold2));
  border: 1px solid rgba(0,0,0,.06); border-radius:14px; padding:16px; color:var(--dark);
  box-shadow:0 8px 18px rgba(0,0,0,.08); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.hk-scope .cta--gold p{ margin:0; font-weight:600; flex:1 1 320px; }
.hk-scope .cta--gold .cta__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Anker-Offset für Sticky Header */
.hk-scope .anchor-offset{ scroll-margin-top: 90px; }
@media (max-width:782px){ .hk-scope .anchor-offset{ scroll-margin-top: 70px; } }

/* Aktionen-Gruppe */
.hk-scope .actions{ display:flex; gap:10px; flex-wrap:wrap; }

