/* ============================================================
   Hilfspunkt — Stylesheet
   ============================================================ */

/* Google Fonts loaded via HTML preload for better performance */

@layer reset, base, layout, components, animations, utilities;

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --c-primary:    #6B1535;
  --c-brand:      #C41858;
  --c-teal:       #3AAD8A;
  --c-dark-teal:  #1A5C47;
  --c-beige:      #CFC3B3;

  --c-bg:         #ffffff;
  --c-surface:    #f8f6f4;
  --c-text:       #1a1016;
  --c-text-muted: #6b5c65;
  --c-border:     #e8dfe4;

  --sp-2xs: 0.25rem;
  --sp-xs:  0.5rem;
  --sp-sm:  0.75rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  --sh-sm:  0 1px 3px rgba(106,21,53,.08), 0 1px 2px rgba(106,21,53,.06);
  --sh-md:  0 4px 12px rgba(106,21,53,.10), 0 2px 4px rgba(106,21,53,.06);
  --sh-lg:  0 10px 30px rgba(106,21,53,.12), 0 4px 8px rgba(106,21,53,.06);
  --sh-xl:  0 20px 50px rgba(106,21,53,.15), 0 8px 16px rgba(106,21,53,.08);

  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 4.5rem;
}

/* ── RESET ───────────────────────────────────────────────── */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body { min-height: 100dvh; }
  img, video { max-width: 100%; display: block; }
  button, input, textarea, select { font: inherit; }
  p, h1, h2, h3, h4 { overflow-wrap: break-word; }
  ul, ol { list-style: none; }
  a { color: inherit; text-decoration: none; }
}

/* ── BASE ────────────────────────────────────────────────── */
@layer base {
  html {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--c-text);
    background: var(--c-bg);
  }

  h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.1; }
  h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
  h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.3; }
  h4 { font-size: 1rem; font-weight: 600; }
  p  { line-height: 1.8; color: var(--c-text-muted); font-size: 1.05rem; }

  ::selection { background: var(--c-brand); color: #fff; }

  .skip-link {
    position: fixed; top: -100%; left: var(--sp-md);
    background: var(--c-brand); color: #fff;
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--r-full);
    font-weight: 600; z-index: 9999;
    transition: top var(--t-fast);
  }
  .skip-link:focus { top: var(--sp-md); }
}

/* ── LAYOUT ──────────────────────────────────────────────── */
@layer layout {
  .container {
    width: min(1200px, 100% - 2 * var(--sp-xl));
    margin-inline: auto;
  }

  .section { padding-block: var(--sp-5xl); }
  .section--alt { background: var(--c-surface); }

  .subsection { margin-top: var(--sp-5xl); }

  .section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--sp-3xl);
  }

  .section-header .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-brand);
    margin-bottom: var(--sp-sm);
  }

  .section-header h2 { color: var(--c-primary); margin-bottom: var(--sp-md); }
}

/* ── LOGO ────────────────────────────────────────────────── */
@layer components {

  /* Logo SVG switching */
  .nav-logo-light,
  .nav-logo-dark {
    height: clamp(52px, 5.5vw, 78px);
    width: auto;
    display: block;
    transition: height var(--t-base);
  }
  .nav-logo-dark { display: none; }

  .site-nav.scrolled .nav-logo-light { display: none; }
  .site-nav.scrolled .nav-logo-dark  { display: block; }

  .site-nav.scrolled .nav-logo-light,
  .site-nav.scrolled .nav-logo-dark {
    height: clamp(44px, 4.5vw, 62px);
  }

  /* ── NAV ─────────────────────────────────────────────── */

  .site-nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: calc(var(--nav-h) + 1rem);
    z-index: 100;
    transition: background var(--t-base), box-shadow var(--t-base), height var(--t-base);
  }

  .site-nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--sh-sm);
    height: var(--nav-h);
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--sp-xl);
  }

  .nav-logo { display: flex; align-items: center; }

  /* Desktop links */
  .nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    margin-left: auto;
  }

  .nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    padding-bottom: 6px;
    transition: color var(--t-fast);
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-teal);
    border-radius: var(--r-full);
    transition: width var(--t-base);
  }

  .nav-links a:hover { color: #fff; }
  .nav-links a:hover::after,
  .nav-links a.active::after { width: 100%; }

  .site-nav.scrolled .nav-links a { color: var(--c-primary); }
  .site-nav.scrolled .nav-links a:hover { color: var(--c-brand); }
  .site-nav.scrolled .nav-links a::after { background: var(--c-brand); }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm) var(--sp-lg);
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--t-base);
    text-decoration: none;
    white-space: nowrap;
  }

  .btn-primary {
    background: var(--c-brand);
    color: #fff;
    border-color: var(--c-brand);
  }
  .btn-primary:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
  }

  .btn-outline {
    background: transparent;
    color: var(--c-brand);
    border-color: var(--c-brand);
  }
  .btn-outline:hover {
    background: var(--c-brand);
    color: #fff;
    transform: translateY(-2px);
  }

  .btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.65);
  }
  .btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: translateY(-2px);
  }

  .btn-lg {
    padding: 0.75rem var(--sp-xl);
    font-size: 1rem;
  }

  /* Nav CTA: white outline before scroll */
  .nav-cta {
    border-color: rgba(255,255,255,0.6) !important;
    background: transparent !important;
    color: #fff !important;
  }
  .site-nav.scrolled .nav-cta {
    border-color: var(--c-brand) !important;
    background: var(--c-brand) !important;
    color: #fff !important;
  }

  /* Hamburger */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--sp-xs);
    border-radius: var(--r-sm);
  }

  .nav-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: var(--r-full);
    transition: all var(--t-base);
  }

  .site-nav.scrolled .nav-hamburger span { background: var(--c-primary); }

  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile dropdown — Basis (desktop: komplett versteckt) */
  .nav-mobile {
    display: none;
  }

  .nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: var(--sp-lg);
    margin-bottom: var(--sp-sm);
  }

  .nav-mobile ul a {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-primary);
    padding: var(--sp-sm) 0;
    transition: color var(--t-fast);
  }

  .nav-mobile ul a:hover { color: var(--c-brand); }

  .nav-mobile .btn {
    color: #fff !important;
    align-self: flex-start;
  }

  /* ── HERO ──────────────────────────────────────────────── */

  .hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
    background: linear-gradient(135deg,
      var(--c-primary) 0%,
      #8B1A3A 30%,
      #a31d48 55%,
      var(--c-dark-teal) 100%);
    background-size: 300% 300%;
    animation: hero-gradient 14s ease infinite;
  }

  /* White arc at bottom */
  .hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 100px;
    background: var(--c-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
    pointer-events: none;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: stretch;
    padding-block: var(--sp-4xl) calc(var(--sp-4xl) + 60px);
  }

  .hero-content { color: #fff; }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fade-up var(--t-slow) 100ms both;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px; height: 2px;
    background: var(--c-teal);
    border-radius: var(--r-full);
    flex-shrink: 0;
  }

  .hero-content h1 {
    color: #fff;
    margin-bottom: var(--sp-lg);
    opacity: 0;
    animation: fade-up var(--t-slow) 250ms both;
  }

  /* "Gemeinsam" in teal */
  .hero-content h1 em {
    font-style: normal;
    color: var(--c-teal);
  }

  .hero-lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin-bottom: var(--sp-xl);
    opacity: 0;
    animation: fade-up var(--t-slow) 400ms both;
  }

  .hero-actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up var(--t-slow) 550ms both;
  }

  .hero-image-wrap {
    position: relative;
    opacity: 0;
    animation: fade-up var(--t-slow) 700ms both;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    align-self: stretch;
  }

  .hero-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
  }

  /* ── INTRO SECTION ─────────────────────────────────────── */

  .intro-section {
    background: var(--c-bg);
    padding-block: var(--sp-4xl);
  }

  .intro-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-4xl);
    align-items: center;
  }

  .intro-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--c-text);
    line-height: 1.85;
    margin-bottom: var(--sp-lg);
  }

  .intro-sub {
    font-size: 1.05rem;
    margin-bottom: var(--sp-lg);
  }

  .intro-claim {
    font-size: 1.05rem;
    color: var(--c-text-muted);
  }

  .intro-claim strong { color: var(--c-brand); font-weight: 700; }

  .intro-stats {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
    padding: var(--sp-xl);
    background: var(--c-primary);
    border-radius: var(--r-xl);
    color: #fff;
    text-align: center;
  }

  .stat-item { }

  .stat-number {
    display: block;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--c-teal);
    line-height: 1;
    margin-bottom: var(--sp-xs);
  }

  .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
  }

  /* ── SERVICES ──────────────────────────────────────────── */

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-lg);
    align-items: stretch;
  }

  .service-card {
    border: 2px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    background: var(--c-bg);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    display: flex;
    flex-direction: column;
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--c-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
  }

  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: rgba(196,24,88,0.2);
  }

  .service-card:hover::before { transform: scaleX(1); }

  .service-icon {
    width: 3rem; height: 3rem;
    background: rgba(196,24,88,0.08);
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    margin-bottom: var(--sp-lg);
    font-size: 1.4rem;
    color: var(--c-brand);
    transition: background var(--t-base), color var(--t-base);
    flex-shrink: 0;
  }

  .service-card:hover .service-icon {
    background: var(--c-brand);
    color: #fff;
  }

  .service-card h3 {
    color: var(--c-primary);
    margin-bottom: var(--sp-sm);
    text-wrap: balance;
  }

  /* ── CUSTOMERS ─────────────────────────────────────────── */

  .customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-md);
    align-items: stretch;
  }

  .customer-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    padding: var(--sp-sm);
  }

  .customer-item:hover {
    transform: translateY(-4px);
  }

  /* Customer images: round portraits */
  .customer-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(58,173,138,0.15);
    transition: border-color var(--t-base), transform var(--t-base);
    flex-shrink: 0;
  }

  .customer-item:hover .customer-image {
    border-color: var(--c-teal);
    transform: scale(1.04);
  }

  .customer-item p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-primary);
    line-height: 1.4;
  }

  /* ── PRICING ───────────────────────────────────────────── */

  .pricing-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-lg);
    max-width: 860px;
    margin-inline: auto;
    align-items: stretch;
  }

  .pricing-card {
    border: 2px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-2xl);
    background: var(--c-bg);
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
  }

  .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
  }

  .pricing-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-sm);
  }

  .pricing-amount {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    margin-bottom: var(--sp-sm);
  }

  .pricing-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-text-muted);
  }

  .pricing-note {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-xl);
    border-bottom: 1px solid var(--c-border);
    line-height: 1.6;
  }

  .pricing-extra {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    flex: 1;
  }

  .pricing-extra-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
  }

  .pricing-extra-item .check {
    color: var(--c-teal);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
  }

  .pricing-extra-item p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* ── VALUES ────────────────────────────────────────────── */

  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-lg);
    align-items: stretch;
  }

  .value-card {
    border: 2px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
    text-align: center;
    background: var(--c-surface);
    transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .value-card:hover {
    border-color: var(--c-brand);
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
  }

  .value-icon {
    width: 4rem; height: 4rem;
    background: rgba(196,24,88,0.08);
    border-radius: var(--r-full);
    display: grid;
    place-items: center;
    margin-bottom: var(--sp-lg);
    font-size: 1.6rem;
    color: var(--c-brand);
    transition: background var(--t-base), color var(--t-base);
    flex-shrink: 0;
  }

  .value-card:hover .value-icon {
    background: var(--c-brand);
    color: #fff;
  }

  .value-card h3 { color: var(--c-primary); margin-bottom: var(--sp-sm); }

  /* ── TEAM ──────────────────────────────────────────────── */

  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
    align-items: stretch;
  }

  .team-card {
    border: 2px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--c-surface);
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
  }

  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
  }

  .team-img-wrap {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
  }

  .team-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .team-info {
    padding: var(--sp-xl);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .team-info h3 {
    color: var(--c-primary);
    margin-bottom: var(--sp-sm);
  }

  .team-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-brand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-sm);
    display: block;
  }

  .team-info p { font-size: 0.92rem; flex: 1; }

  /* ── CONTACT ───────────────────────────────────────────── */

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3xl);
    align-items: start;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2xs);
  }

  .field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
  }

  .field input,
  .field textarea {
    padding: var(--sp-sm) var(--sp-md);
    border: 2px solid var(--c-border);
    border-radius: var(--r-md);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 0.95rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
  }

  .field input:focus,
  .field textarea:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(196,24,88,0.12);
  }

  .field textarea { min-height: 140px; resize: vertical; }
  .field input.error, .field textarea.error { border-color: #e53e3e; }
  .field .field-error { font-size: 0.78rem; color: #e53e3e; display: none; }
  .field.has-error .field-error { display: block; }

  .form-submit-wrap {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
  }

  .form-feedback { font-size: 0.9rem; font-weight: 500; display: none; }
  .form-feedback.success { color: var(--c-dark-teal); display: block; }
  .form-feedback.error   { color: #e53e3e; display: block; }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
  }

  .contact-block h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-md);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-sm);
  }

  .ci-icon {
    width: 2.5rem; height: 2.5rem;
    background: rgba(196,24,88,0.08);
    border-radius: var(--r-full);
    display: grid;
    place-items: center;
    color: var(--c-brand);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background var(--t-base), color var(--t-base);
  }

  .contact-item:hover .ci-icon { background: var(--c-brand); color: #fff; }
  .contact-item p { font-size: 0.95rem; color: var(--c-text); line-height: 1.4; }

  .hours-grid { display: flex; flex-direction: column; gap: var(--sp-xs); }

  .hours-row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-md);
    font-size: 0.92rem;
  }

  .hours-row .day { color: var(--c-text-muted); }
  .hours-row .time { font-weight: 600; color: var(--c-primary); }

  .social-links { display: flex; gap: var(--sp-sm); }

  .social-link {
    width: 2.5rem; height: 2.5rem;
    border: 2px solid var(--c-border);
    border-radius: var(--r-full);
    display: grid;
    place-items: center;
    color: var(--c-text-muted);
    font-size: 1rem;
    transition: all var(--t-base);
  }

  .social-link:hover {
    border-color: var(--c-brand);
    background: var(--c-brand);
    color: #fff;
    transform: translateY(-3px);
  }

  /* ── FOOTER ────────────────────────────────────────────── */

  .site-footer {
    background: var(--c-primary);
    color: rgba(255,255,255,0.7);
    padding-block: var(--sp-3xl);
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-3xl);
    margin-bottom: var(--sp-2xl);
  }

  .footer-logo { display: inline-block; margin-bottom: var(--sp-md); }

  .footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: var(--sp-xl);
  }

  .footer-social { display: flex; gap: var(--sp-sm); }

  .footer-social .social-link {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.55);
  }
  .footer-social .social-link:hover {
    border-color: var(--c-teal);
    background: var(--c-teal);
    color: #fff;
  }

  .footer-col h4 {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-lg);
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-xl);
  }

  .footer-col ul li a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--t-fast);
  }
  .footer-col ul li a:hover { color: var(--c-teal); }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
  }

  .footer-contact p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
  }

  .footer-bottom {
    padding-top: var(--sp-xl);
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-md);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
  }

  .footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
  }

  .footer-legal { display: flex; gap: var(--sp-lg); }

  .footer-legal a {
    color: rgba(255,255,255,0.65);
    transition: color var(--t-fast);
  }
  .footer-legal a:hover { color: rgba(255,255,255,0.95); }

  /* ── COOKIE BANNER ─────────────────────────────────────── */

  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--c-primary);
    color: #fff;
    padding-block: var(--sp-lg);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.12);
    transform: translateY(0);
    transition: transform 0.3s ease;
  }

  .cookie-banner.is-hidden {
    display: none;
  }

  .cookie-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    flex-wrap: wrap;
  }

  .cookie-inner p {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.6;
  }

  .cookie-inner p a {
    color: var(--c-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .cookie-actions {
    display: flex;
    gap: var(--sp-sm);
    flex-shrink: 0;
    flex-wrap: wrap;
  }

  /* ── SCROLL REVEAL ─────────────────────────────────────── */

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
                transform 0.6s cubic-bezier(0.4,0,0.2,1);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 100ms; }
  .reveal-delay-2 { transition-delay: 200ms; }
  .reveal-delay-3 { transition-delay: 300ms; }
  .reveal-delay-4 { transition-delay: 400ms; }

} /* end @layer components */

/* ── ANIMATIONS ──────────────────────────────────────────── */
@layer animations {

  @keyframes hero-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

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

  @keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
  }

  @keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-32px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes slide-in-right {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Scroll-driven animations */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: scroll-reveal 0.6s cubic-bezier(0.4,0,0.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    .reveal-delay-1 { animation-delay: 100ms; }
    .reveal-delay-2 { animation-delay: 200ms; }
    .reveal-delay-3 { animation-delay: 300ms; }
    .reveal-delay-4 { animation-delay: 400ms; }

    @keyframes scroll-reveal {
      from { opacity: 0; transform: translateY(30px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .section-header {
      animation: scroll-reveal 0.7s cubic-bezier(0.4,0,0.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }

    .service-card, .value-card, .team-card, .pricing-card, .customer-item {
      animation: card-reveal 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    @keyframes card-reveal {
      from { opacity: 0; transform: translateY(40px) scale(0.96); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .intro-text {
      animation: slide-in-left 0.7s cubic-bezier(0.4,0,0.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }

    .intro-stats {
      animation: slide-in-right 0.7s cubic-bezier(0.4,0,0.2,1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }

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

/* ── UTILITIES ───────────────────────────────────────────── */
@layer utilities {
  .text-brand   { color: var(--c-brand); }
  .text-teal    { color: var(--c-teal); }
  .text-primary { color: var(--c-primary); }
  .text-center  { text-align: center; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-grid    { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .intro-inner     { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .intro-stats     { flex-direction: row; justify-content: space-around; }
  .team-grid       { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 767px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile dropdown: max-height trick — kein weisser Balken möglich */
  .nav-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    position: fixed;
    top: calc(var(--nav-h) + 1rem);
    left: 0; right: 0;
    background: #fff;
    box-shadow: var(--sh-lg);
    border-bottom: 3px solid var(--c-brand);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--sp-xl);
    opacity: 0;
    transition: max-height var(--t-slow), padding var(--t-slow), opacity var(--t-slow), top var(--t-base);
  }

  .site-nav.scrolled + .nav-mobile {
    top: var(--nav-h);
  }

  .nav-mobile.open {
    max-height: 420px;
    padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
    opacity: 1;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-xl);
    padding-block: var(--sp-2xl) calc(var(--sp-3xl) + 80px);
  }

  .hero-eyebrow  { justify-content: center; }
  .hero-actions  { justify-content: center; }

  /* Image below text on mobile */
  .hero-image-wrap {
    order: 1;
    border-radius: var(--r-lg);
    aspect-ratio: 16/9;
  }

  .hero-image-wrap img {
    position: static;
    width: 100%;
    height: 100%;
    object-position: center 20%;
  }

  /* Some breathing room between buttons and the arc */
  .hero-actions { margin-bottom: var(--sp-lg); }

  .footer-inner  { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row      { grid-template-columns: 1fr; }
  .pricing-wrap  { grid-template-columns: 1fr; }
  .customers-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .intro-stats   { flex-direction: column; gap: var(--sp-lg); }
}

@media (max-width: 480px) {
  :root { --nav-h: 3.75rem; }
  .section { padding-block: var(--sp-3xl); }
  .hero::after { height: 60px; }
}
