/* =============================================================
   APFELBECK IMMOBILIENVERWALTUNG
   Stylesheet — One-Pager
   Pohl Media CMS Lite kompatibel
   ============================================================= */

/* ----- DESIGN TOKENS ----- */
:root {
  /* Colors */
  --bg: #F5F1E8;
  --bg-alt: #EBE3CF;
  --bg-card: #FBF9F3;
  --bg-dark: #1C1B17;
  --ink: #1C1B17;
  --ink-soft: #3F3D36;
  --muted: #8A8579;
  --accent: #546764;
  --accent-hover: #475753;
  --accent-light: #DBE2E0;
  --accent-tint: #EDF1EF;
  --rule: #D4CFC0;
  --rule-strong: #BFB9A6;
  --gold: #A88B5A;

  /* Typography */
  --font-display: "playfair-display", "Playfair Display", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sidebar-w: 260px;
  --sidebar-w-narrow: 220px;

  /* Radius & Shadow */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 27, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 27, 23, 0.06);

  /* Transitions */
  --t-fast: 150ms ease;
  --t: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 960px) {
  body {
    padding-right: var(--sidebar-w);
  }
}
@media (min-width: 960px) and (max-width: 1200px) {
  body {
    padding-right: var(--sidebar-w-narrow);
  }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }

/* ----- LAYOUT ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* Sidebar-Header reset — its inner container should NOT use container max-width
   or horizontal padding, only the explicit padding from .header-inner. */
@media (min-width: 960px) {
  .site-header > .container.header-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 960px) and (max-width: 1200px) {
  .site-header > .container.header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* On mobile use normal container padding */
@media (max-width: 959.98px) {
  .site-header > .container.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.section-dark {
  background-color: var(--bg-dark);
  background-image: url('../assets/kontakt_bg.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--bg);
  position: relative;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.section-dark > .container {
  position: relative;
  z-index: 1;
}

/* ----- TYPOGRAPHY ----- */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.eyebrow-light { color: var(--accent-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.title-light { color: var(--bg); }

.section-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 50ch;
  line-height: 1.4;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 4rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.subsection-intro {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.prose {
  max-width: 65ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.25rem; }

/* ----- HEADER ----- */
/* Desktop: fixed right sidebar with logo, vertical nav, hamburger fallback removed.
   Mobile (<960px): sticky top bar with hamburger menu. */

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
  z-index: 100;
}

/* MOBILE & TABLET: behave as sticky top bar */
@media (max-width: 959.98px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgba(251, 249, 243, 0.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
  }
  .site-header.is-scrolled {
    border-bottom-color: var(--rule);
    box-shadow: var(--shadow-sm);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 2rem;
  }
}

/* DESKTOP (≥960px): become a fixed right sidebar */
@media (min-width: 960px) {
  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sidebar-w);
    border-bottom: none;
    border-left: 1px solid var(--rule);
    background: var(--bg-card);
    overflow-y: auto;
    box-shadow: -1px 0 24px rgba(28, 27, 23, 0.03);
  }
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100%;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
    gap: 0;
  }
}
@media (min-width: 960px) and (max-width: 1200px) {
  .site-header {
    width: var(--sidebar-w-narrow);
  }
  .header-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
  transition: opacity var(--t-fast);
}
.brand:hover { opacity: 0.78; }

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

@media (min-width: 960px) {
  /* In sidebar: full-width logo, generous top spacing */
  .brand {
    display: block;
    margin-bottom: 2.75rem;
    padding-right: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .brand-logo {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
  }
}

/* Navigation */
.main-nav { position: relative; }

@media (min-width: 960px) {
  /* Desktop: vertical nav stacked in sidebar */
  .main-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
  }
  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list li {
    border-top: 1px solid var(--rule);
  }
  .nav-list li:last-child {
    border-bottom: 1px solid var(--rule);
    margin-top: 0.75rem;
    border-top: 1px solid var(--rule);
  }
  .nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 0 1rem 1.25rem;
    transition: color var(--t-fast), padding var(--t-fast);
  }
  .nav-list a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
    width: 3px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
  }
  .nav-list a:not(.nav-cta):hover {
    color: var(--accent);
    padding-left: 1.5rem;
  }
  .nav-list a:not(.nav-cta):hover::after { transform: translateY(-50%) scaleY(0.5); }
  .nav-list a:not(.nav-cta).is-active {
    color: var(--accent);
    padding-left: 1.5rem;
  }
  .nav-list a:not(.nav-cta).is-active::after { transform: translateY(-50%) scaleY(1); }

  .nav-list a.nav-cta {
    background: var(--accent);
    color: var(--bg-card);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    justify-content: center;
    margin-top: 0.5rem;
    font-weight: 600;
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .nav-list a.nav-cta:hover {
    background: var(--accent-hover);
    color: var(--bg-card);
    transform: translateY(-1px);
    padding-left: 1.25rem;
  }
  .nav-list a.nav-cta::after { display: none; }

  .nav-toggle { display: none; }

  /* Sidebar footer info (optional contact strip at bottom of sidebar) */
  .sidebar-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--rule);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
  }
  .sidebar-info-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .sidebar-info a {
    color: var(--ink-soft);
    transition: color var(--t-fast);
  }
  .sidebar-info a:hover { color: var(--accent); }
}

/* MOBILE: horizontal top bar with hamburger */
@media (max-width: 959.98px) {
  .nav-list {
    display: flex;
    gap: 2.25rem;
    align-items: center;
  }
  .nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
    position: relative;
    padding: 0.35rem 0;
    transition: color var(--t-fast);
  }
  .nav-list a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 380ms cubic-bezier(0.65, 0, 0.35, 1);
  }
  .nav-list a:not(.nav-cta):hover::after { transform: scaleX(0.4); }
  .nav-list a:not(.nav-cta).is-active::after { transform: scaleX(1); }
  .nav-list a.is-active { color: var(--accent); }
  .nav-list a:hover { color: var(--accent); }
  .nav-list a.nav-cta {
    background: var(--accent);
    color: var(--bg-card);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    transition: background var(--t-fast), transform var(--t-fast);
  }
  .nav-list a.nav-cta:hover {
    background: var(--accent-hover);
    color: var(--bg-card);
    transform: translateY(-1px);
  }
  .sidebar-info { display: none; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t-fast);
  transform-origin: center;
}

/* ----- HERO ----- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  background-color: var(--bg);
  background-image: url('../assets/hero_bg.jpg');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero::before {
  /* Solid cream overlay (no gradient) so foreground text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 232, 0.72);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-title-accent {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  letter-spacing: -0.005em;
}
.hero-body {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Hero — clean background, no watermark */

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--t-fast);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-card);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg-card);
}
.btn-full { width: 100%; }
.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

/* ----- FEATURE GRID ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2rem;
}
.feature {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.feature-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.feature-body {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ----- SERVICE CARDS ----- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 280ms ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(28, 27, 23, 0.08);
}
.service-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.service-head {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  padding-right: 3.75rem; /* leave space for absolute-positioned tag */
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin: 0;
}
.service-tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-light);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  line-height: 1.2;
}
.service-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
.service-list {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.service-list li {
  padding: 0.5rem 0 0.5rem 1.35rem;
  position: relative;
  border-top: 1px solid var(--rule);
}
.service-list li:first-child { border-top: none; padding-top: 0.25rem; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
}

/* ----- STEPS ----- */
.steps {
  margin-top: 1rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: minmax(60px, 90px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.step-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* ----- CALLOUT ----- */
.callout {
  margin-top: 3.5rem;
  padding: 2rem 2.25rem;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.callout strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* ----- FAQ ----- */
.faq {
  max-width: 850px;
  margin-top: 1rem;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast);
}
.faq-item[open] {
  background: var(--bg-card);
  border-radius: var(--radius);
  border-bottom-color: transparent;
}
.faq-q {
  cursor: pointer;
  padding: 1.4rem 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  position: relative;
  transition: color var(--t-fast);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image:
    linear-gradient(var(--accent) 0 0),
    linear-gradient(var(--accent) 0 0);
  background-size: 16px 2px, 2px 16px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--t);
}
.faq-item[open] .faq-q::after {
  background-size: 16px 2px, 0 16px;
  transform: rotate(180deg);
}
.faq-q:hover { color: var(--accent); }
.faq-a {
  padding: 0 1.5rem 1.6rem 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ----- KONTAKT (DARK SECTION) ----- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.kontakt-text { padding-top: 0.5rem; }
.kontakt-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--accent-light);
  max-width: 40ch;
  margin-top: 1rem;
}

.kontakt-card {
  background: var(--bg-card);
  color: var(--ink);
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
}
.kontakt-info {
  margin-bottom: 2rem;
  display: grid;
  gap: 1.4rem;
}
.kontakt-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.kontakt-info dd {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.kontakt-info a:hover { color: var(--accent); }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.footer-logo {
  height: 50px;
  width: auto;
  display: block;
}
.footer-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.footer-col p { line-height: 1.6; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-credit a {
  color: var(--ink-soft);
  font-weight: 500;
}
.footer-credit a:hover { color: var(--accent); }

/* ----- RESPONSIVE ----- */
@media (max-width: 959.98px) {
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: 1rem;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t), visibility var(--t), transform var(--t);
  }
  .main-nav.is-open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list li {
    border-bottom: 1px solid var(--rule);
  }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a {
    display: block;
    padding: 0.85rem 0.75rem;
  }
  .nav-list a.nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }
  .main-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .main-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .main-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .brand-logo { height: 42px; }
  .footer-logo { height: 42px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero {
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
  }
  .hero-eyebrow { margin-bottom: 1.25rem; }
  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ----- SCROLL REVEAL ANIMATIONS ----- */
/* JS adds .reveal-ready class once IntersectionObserver is initialized,
   then .is-revealed when element enters viewport. */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-ready .reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-ready .reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 60ms; }
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 140ms; }
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 220ms; }
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 300ms; }
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 380ms; }
.reveal-ready .reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 460ms; }

/* Hero entrance — runs on page load via .reveal-ready */
.reveal-ready .hero-inner > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 1100ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-ready .hero-inner > *:nth-child(1) { animation-delay: 100ms; }
.reveal-ready .hero-inner > *:nth-child(2) { animation-delay: 220ms; }
.reveal-ready .hero-inner > *:nth-child(3) { animation-delay: 340ms; }
.reveal-ready .hero-inner > *:nth-child(4) { animation-delay: 440ms; }
.reveal-ready .hero-inner > *:nth-child(5) { animation-delay: 560ms; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section titles get a slight scale-in feel */
.reveal-ready .reveal-title {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-ready .reveal-title.is-revealed {
  opacity: 1;
  transform: translateY(0);
}


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

/* ----- PRINT ----- */
@media print {
  .site-header, .nav-toggle, .hero-cta, .btn { display: none; }
  body { font-size: 11pt; color: black; background: white; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
}

/* ----- ACCESSIBILITY: SKIP LINK (entfernt — wurde nicht gewünscht) ----- */

/* ----- COOKIE BANNER (Popup) ----- */
.cookie-banner {
  position: fixed;
  bottom: clamp(1rem, 2vw, 1.5rem);
  left: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  max-width: 480px;
  z-index: 1000;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 36px rgba(28, 27, 23, 0.18);
  padding: 1.4rem 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 320ms ease,
              visibility 320ms;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-banner.is-hiding {
  transform: translateY(20px);
  opacity: 0;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-banner p {
  color: var(--ink-soft);
  margin: 0;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner a:hover { opacity: 0.78; }
.cookie-banner .btn {
  align-self: flex-end;
  min-width: 130px;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
}

@media (min-width: 960px) {
  /* Account for the right sidebar */
  .cookie-banner {
    right: calc(var(--sidebar-w) + 1.5rem);
  }
}
@media (min-width: 960px) and (max-width: 1200px) {
  .cookie-banner {
    right: calc(var(--sidebar-w-narrow) + 1.5rem);
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.2rem 1.25rem;
  }
  .cookie-banner .btn { width: 100%; }
}
