
  @font-face {
    font-family: 'Attila Sans';
    src: url('fonts/attila-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Inter';
    src: url('fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --bg: #17233A;
    --ink: #1B2430;
    --ink-soft: #4A5568;
    --text: #F5EFE3;
    --text-soft: #B7C2D1;
    --blue: #66A1E5;
    --blue-deep: #2E5C94;
    --orange: #E37E0A;
    --line: rgba(245, 239, 227, 0.14);
    --max: 1240px;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }

  html { scroll-behavior: smooth; background: var(--bg); overflow-x: hidden; }

  body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  a { color: inherit; }

  /* Verhindert 'eingefrorenen' Hover-Zustand beim Scrollen unter dem Cursor */
  body.is-scrolling a,
  body.is-scrolling button {
    pointer-events: none;
  }

  :focus-visible {
    outline: 2px solid var(--blue-deep);
    outline-offset: 3px;
  }

  /* ---------- Header ---------- */
  header {
    position: relative;
    z-index: 1000;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px clamp(20px, 4vw, 48px);
  }

  .logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
  }

  .logo-link img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
  }

  nav ul {
    display: flex;
    gap: clamp(16px, 2.4vw, 34px);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
  }

  nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.25s ease;
  }

  nav a:hover::after,
  nav a:focus-visible::after {
    width: 100%;
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    width: 100%;
    height: min(88vh, 900px);
    min-height: 520px;
    overflow: hidden;
  }

  .hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 30%;
  }

  .hero-text {
    position: absolute;
    top: 14%;
    left: max(clamp(20px, 4vw, 48px), calc((100% - var(--max)) / 2 + clamp(20px, 4vw, 48px)));
    max-width: clamp(300px, 38.4vw, 560px);
    z-index: 1;
  }

  .hero-text h1 {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 3.9vw, 3.4rem);
    line-height: 1.14;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
    animation: fadeInUp 1s ease 0.15s both;
  }

  /* ---------- Fade-in beim Laden ---------- */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-text h1 {
      animation: none;
    }
  }

  /* ---------- Swoosh divider ---------- */
  .swoosh {
    display: block;
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px clamp(20px, 4vw, 48px) 0;
  }

  .swoosh svg { display: block; }

  .swoosh path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2.4s ease;
  }

  .swoosh.in-view path {
    stroke-dashoffset: 0;
  }

  /* ---------- Intro ---------- */
  .intro {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px clamp(20px, 4vw, 48px) 40px;
  }

  .intro p {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0;
  }

  /* ---------- Core links (two buttons) ---------- */
  .core-links {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px) 90px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }

  .core-link {
    flex: 1 1 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--blue);
    border-radius: 0;
    padding: 20px 28px;
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    text-align: center;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
  }

  .core-link .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
  }

  .core-link:hover,
  .core-link:focus-visible {
    background: var(--blue-deep);
    color: #fff;
    transform: translateY(-1px);
  }

  /* ---------- Testimonials ---------- */
  .testimonials {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px) 130px;
  }

  .testimonials h2 {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin: 0 0 40px;
    color: var(--text);
  }

  .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .testimonial-card .mark {
    font-family: 'Attila Sans', sans-serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--blue);
  }

  .testimonial-card p {
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--text-soft);
    margin: 0;
  }

  .testimonial-card .attribution {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    font-size: 0.88rem;
    color: var(--text);
    margin-top: auto;
    padding-left: 15px;
  }

  .testimonial-card .attribution .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
    margin-left: -15px;
  }

  .testimonial-card .attribution .who { font-weight: 600; }
  .testimonial-card .attribution .ctx { color: var(--text-soft); }

  @media (max-width: 900px) {
    .testimonial-grid {
      grid-template-columns: 1fr;
      gap: 44px;
    }
  }

  @media (max-width: 780px) {
    .testimonial-card .attribution {
      flex-wrap: nowrap;
    }
  }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--line);
    padding: 34px 0 40px;
  }

  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .footer-copy {
    font-size: 0.85rem;
    color: var(--text-soft);
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-links a {
    font-size: 0.85rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .footer-links a:hover,
  .footer-links a:focus-visible {
    color: var(--blue-deep);
  }

  @media (max-width: 780px) {
    .footer-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  /* ---------- Tablet / halbes Laptop-Fenster ---------- */
  @media (min-width: 781px) and (max-width: 1100px) {
    .hero img {
      object-position: 88% 22%;
    }

    .hero-text {
      top: 12%;
    }
  }

  /* ---------- Breite externe Bildschirme: Stirn nie abschneiden ---------- */
  @media (min-width: 1600px) {
    .hero img {
      object-position: 78% top;
    }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 780px) {
    header {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      background: transparent;
    }

    .logo-link img {
      filter: none;
    }

    .header-inner {
      padding: 20px clamp(20px, 4vw, 48px);
    }

    .hero {
      height: auto;
      min-height: 0;
      aspect-ratio: 4 / 5;
    }

    .hero img {
      object-position: 77% top;
    }

    nav ul {
      position: fixed;
      inset: 0 0 0 auto;
      height: 100vh;
      width: min(60vw, 280px);
      background: var(--bg);
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 40px;
      gap: 26px;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      box-shadow: -8px 0 24px rgba(0,0,0,0.06);
      z-index: 1000;
    }

    nav ul.open { transform: translateX(0); }

    .nav-toggle {
      display: block;
      margin-left: auto;
      position: relative;
      z-index: 1001;
    }

    .nav-toggle.is-open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle.is-open span {
      background: var(--text);
    }

    .hero-text {
      top: auto;
      bottom: 3%;
      left: 0;
      right: 0;
      max-width: none;
      display: flex;
      justify-content: center;
    }

    .hero-text h1 {
      text-align: center;
      color: #fff;
      background: rgba(46, 92, 148, 0.72);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      padding: 12px 18px;
      border-radius: 8px;
      display: inline-block;
      font-size: clamp(1.2rem, 6.2vw, 2.2rem);
      line-height: 1.28;
    }
  }
  /* ---------- Site-wide contact section ---------- */
  .site-contact {
    position: relative;
    width: 100%;
    height: clamp(238px, 26.25vw, 325px);
    overflow: hidden;
    border-top: 1px solid var(--line);
  }

  .site-contact-image {
    position: absolute;
    top: 0;
    left: max(clamp(20px, 4vw, 48px), calc((100% - var(--max)) / 2 + clamp(20px, 4vw, 48px)));
    width: clamp(380px, 42vw, 520px);
    aspect-ratio: 16 / 10;
  }

  .site-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 32% 22%;
    display: block;
  }

  .site-contact-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: max(clamp(20px, 4vw, 48px), calc((100% - var(--max)) / 2 + clamp(20px, 4vw, 48px)));
    max-width: 320px;
    text-align: right;
  }

  .site-contact-text h2 {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 1.7rem);
    margin: 0 0 12px;
    color: var(--text);
    white-space: nowrap;
  }

  .site-contact-text p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0 0 22px;
  }

  .site-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }

  .site-contact-actions .core-link {
    flex: none;
    width: auto;
    padding: 14px 24px;
    font-size: 1rem;
  }

  @media (max-width: 780px) {
    .site-contact {
      height: auto;
    }

    .site-contact-image {
      position: relative;
      left: 0;
      top: 0;
      width: 100%;
      aspect-ratio: 16 / 10;
    }

    .site-contact-text {
      position: static;
      transform: none;
      max-width: none;
      text-align: left;
      padding: 40px clamp(20px, 4vw, 48px);
    }

    .site-contact-actions {
      align-items: flex-start;
    }

    .site-contact-actions .core-link {
      width: 100%;
      justify-content: center;
    }
  }

  /* ---------- Legal pages (Impressum, Datenschutz, 404) ---------- */
  .legal-hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px clamp(20px, 4vw, 48px) 0;
  }

  .legal-hero h1 {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 5.5vw, 2.8rem);
    margin: 0;
    color: var(--text);
    overflow-wrap: break-word;
  }

  .legal-content {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px clamp(20px, 4vw, 48px) 120px;
  }

  .legal-content h2 {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text);
    margin: 52px 0 16px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-content h2:first-child {
    margin-top: 0;
  }

  .legal-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin: 32px 0 10px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-content h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-soft);
    margin: 24px 0 8px;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .legal-content p {
    font-size: 0.98rem;
    line-height: 1.68;
    color: var(--text-soft);
    margin: 0 0 14px;
    overflow-wrap: break-word;
  }

  .legal-content ul {
    margin: 0 0 14px;
    padding-left: 20px;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.68;
    overflow-wrap: break-word;
  }

  .legal-content li {
    margin-bottom: 4px;
  }

  .legal-content strong {
    color: var(--text);
    font-weight: 600;
  }

  .legal-content a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .legal-content a:hover {
    color: var(--orange);
  }

  .legal-back {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--blue);
    text-decoration: none;
  }

  .legal-back:hover {
    color: var(--orange);
  }

  /* ---------- 404 page ---------- */
.error-code {
    font-family: 'Attila Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1;
    margin: 0 0 8px;
    color: var(--blue);
  }

  .error-content p {
    max-width: 520px;
  }

  .error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
  }

  /* .legal-content a ueberschreibt sonst Unterstreichung/Farbe der Buttons */
  .error-actions .core-link {
    text-decoration: none;
    color: var(--text);
  }

  .error-actions .core-link:hover,
  .error-actions .core-link:focus-visible {
    color: #fff;
  }
