/* =========================================================
   UAFACH ALLS – Grund-Styles, Tokens & Komponenten
   ========================================================= */

/* ===========================
   1. FONTS
   =========================== */

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-VariableFont_wdth,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   2. RESET
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #222222;
  color: #f6f4f1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Globale Abstände für Überschriften & Text */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-heading-bottom);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-text-bottom);
}


/* ===========================
   3. DESIGN TOKENS
   =========================== */

:root {
  /* Farben */
  --black: #222222;
  --eggshell: #f6f4f1;
  --gelb: #ffbd0d;
  --orange: #fa5707;
  --pink: #ff046e;
  --blau: #3b86ff;

  /* Border Radius */
  --radius-lg: 40px;
  --radius-pill: 999px;
  --radius-card: 24px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 80px;
    --space-heading-bottom: 8px;  /* Abstand nach Überschriften */
  --space-text-bottom: 8px;     /* Abstand nach normalen Texten */
  --space-block-gap: 16px;      /* Standard-Gap in Textblöcken */

  /* Typografie */
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-section-sub: 32px;
  --font-size-section-title: 64px;
  --font-size-hero-title: 128px;
}

/* ===========================
   4. LAYOUT
   =========================== */

.page-wrapper {
  min-height: 100vh;
  background: var(--black);
  color: var(--eggshell);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Große Sektionen mit 80px Außenabstand auf Desktop */
.section-padded {
  padding: 72px 80px 80px;
}

.section-padded-wide {
  padding: 80px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-section-title);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-section-sub);
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0;
}

.section-subtitle--center {
  text-align: center;
}

/* ===========================
   5. HEADER & NAV
   =========================== */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--black);
  color: var(--eggshell);
}

.header.scrolled {
  box-shadow: 0 4px 8px rgba(20, 20, 20, 0.06);
}

.header__bar {
  height: 88px;
  padding: 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.header__logo {
  display: inline-flex;
  align-items: center;
}

.header__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* 4 bunte Quadrate links */
.header__logo-squares {
  position: absolute;
  inset: 0;
  width: 32px;
  height: 32px;
  background: #000;
}

.header__logo-squares .sq {
  position: absolute;
  width: 16px;
  height: 16px;
}

.sq--gelb {
  left: 0;
  top: 0;
  background: var(--gelb);
}
.sq--orange {
  left: 16px;
  top: 0;
  background: var(--orange);
}
.sq--pink {
  left: 0;
  top: 16px;
  background: var(--pink);
}
.sq--blau {
  left: 16px;
  top: 16px;
  background: var(--blau);
}

/* „Wortmarke“ rechts – als Balken nachgebaut */
.header__logo-wordmark {
  position: absolute;
  left: 40px;
  top: 4px;
  width: 127px;
  height: 23px;
  background: #ffffff;
}

/* dunkle Version für hellen Header */
.header__logo-mark--dark .header__logo-wordmark--dark {
  background: var(--black);
}

/* Hamburger-Button: 3 Striche -> X */

.header__toggle {
  position: relative;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--eggshell); /* Strichfarbe im normalen Header */
  transition: color 0.2s ease;
}

/* Die drei Linien */
.header__toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Ausgangsposition: drei Striche mit Abstand über translateY */
.header__toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.header__toggle span:nth-child(2) {
  transform: translateY(0);
}

.header__toggle span:nth-child(3) {
  transform: translateY(6px);
}

/* X-Animation (geschlossen -> offen) */
.header__toggle.is-open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

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

.header__toggle.is-open span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* kein weißer Kreis mehr */
.header__toggle.is-open {
  background: none;
  color: var(--eggshell);
}

/* dunkle Version im Overlay (auf heller Fläche) */
.header__bar--overlay {
  color: var(--black);
}

.header__toggle--dark {
  color: var(--black);
}

.header__toggle--dark.is-open {
  color: var(--black);
  background: none;
}


/* Overlay-Navigation – Vorhang-Effekt */
.header__nav {
  position: fixed;
  inset: 0;
  background: var(--eggshell);
  color: var(--black);
  z-index: 40;

  /* Start: komplett nach oben rausgeschoben */
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;

  /* Schließen: smooth nach oben raus */
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.45s;
}

.header__nav.is-open {
  /* Öffnen: smooth nach unten gleiten */
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  /* sofort sichtbar beim Öffnen */
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s;
}

.header__nav-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* Hauptbereich im Overlay */

.header__nav-main {
  padding: 0 80px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header__nav-links {
  width: 540px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header__nav-big-link {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 64px;
  text-decoration: none;
  color: var(--black);
}

.header__nav-big-link:hover {
  opacity: 0.7;
}

.header__nav-cta {
  width: 540px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.header__nav-cta-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 64px;
  margin: 0 0 8px;
}

.header__nav-cta-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.header__nav-cta-btn {
  align-self: flex-start;
}

/* unterer Bereich im Overlay */

.header__nav-footer {
  padding: 40px 80px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

.header__nav-footer-link {
  text-decoration: none;
  color: var(--black);
}

.header__nav-footer-link:hover {
  opacity: 0.7;
}

.header__nav-footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  display: none
}

.header__nav-footer-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header__nav-footer-icon-img {
  width: 64px;
  height: 64px;
  display: block;
}

.header__nav-footer-icon:hover .header__nav-footer-icon-img {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
  opacity: 0.8;
}

/* Body-Scroll sperren, wenn Menü offen */
body.nav-open {
  overflow: hidden;
}

/* =========================================
   NAV-OVERLAY: LINKS RECHTS, ICONS LINKS
   ========================================= */

/* Hauptbereich: Inhalt nach rechts schieben */
.header__nav-main {
  padding: 0 80px;
  display: flex;
  justify-content: flex-end;   /* alles nach rechts */
  align-items: center;
  flex: 1;
}

/* Linkliste rechtsbündig */
.header__nav-links {
  width: auto;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;       /* rechts ausrichten */
  text-align: right;
  gap: 24px;
}

/* Footer: Icons links */
.header__nav-footer {
  padding: 24px 80px 32px;
  display: flex;
  justify-content: flex-start; /* links */
  align-items: center;
  gap: 16px;
}

/* Nur zur Sicherheit: Links sind weg, falls irgendwo noch vorhanden */
.header__nav-footer-link {
  display: none;
}

@media (max-width: 768px) {
  /* Innenlayout des Overlays */
  .header__nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* nicht mehr space-between */
    height: 100%;
  }

  /* Bereich mit den Links nimmt den freien Platz ein */
  .header__nav-main {
    flex: 1;
    padding: 0px;
    display: flex;
    align-items: center;        /* vertikal zentriert */
    justify-content: flex-end;  /* nach rechts schieben */
  }

  /* Linkliste rechtsbündig, etwas enger */
  .header__nav-links {
    width: auto;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;      /* rechts */
    text-align: right;
    gap: 20px;
  }

  .header__nav-big-link {
    font-size: 64px;
    line-height: 1.1;
  }

  /* Footer bleibt unten */
  .header__nav-footer {
    margin-top: auto;           /* schiebt Footer nach unten */
    padding: 24px;
    justify-content: flex-start;
  }
}



/* ===========================
   6. BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease;
}

.btn--primary-eggshell {
  background: var(--eggshell);
  color: var(--black);
}

.btn--secondary-outline-eggshell {
  background: transparent;
  color: var(--eggshell);
  border: 1px solid var(--eggshell);
}

.btn--secondary-outline-eggshell:hover {
  background: var(--eggshell);
  color: var(--black);
}

.btn-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
}

.btn--solid-black {
  background: var(--black);
  color: var(--eggshell);
}

.btn {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-icon-svg {
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon-svg {
  transform: translateX(4px);
}


/* ===========================
   7. HERO
   =========================== */

.hero {
  /* Weniger Abstand zum Header, aber responsive */
  padding: 24px 80px 80px;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  row-gap: clamp(24px, 5vw, 48px); /* Abstand zwischen Tagline, Tiles, Textblock */
}

/* Basis-Style für beide Taglines */
.hero__tagline {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 0;
}

/* Desktop/Tablet: Tagline über den Tiles, rechtsbündig */
.hero__tagline--desktop {
  text-align: right;
  align-self: flex-end;
  margin: 0 0 4px; /* Abstand zu den Tiles */
}

/* Mobile-Tagline erst mal ausblenden */
.hero__tagline--mobile {
  display: none;
}

/* Tiles-Grid */
.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; /* kein Abstand zwischen Tiles */
}

/* Quadratische Tiles */
.hero__tile {
  border-style: solid;
  border-color: var(--eggshell);
  border-width: 4px;
  border-radius: 0;
  aspect-ratio: 1 / 1; /* immer Quadrat */
}

/* Rundungen pro Tile (proportional mit %) */
.hero__tile--1 {
  border-top-left-radius: 60%;
  border-bottom-right-radius: 60%;
}

.hero__tile--2 {
  border-top-right-radius: 60%;
  border-bottom-right-radius: 60%;
}

.hero__tile--3 {
  border-bottom-left-radius: 60%;
  border-top-left-radius: 60%;
  border-bottom-right-radius: 60%;
}

.hero__tile--4 {
  border-radius: 60%;
}

/* Textblock unter den Tiles */
.hero__text-block {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.5vw, 24px); /* Abstand Headline/Subline/Buttons */
  margin-top: clamp(8px, 1.6vw, 20px); 
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--font-size-hero-title);
  font-weight: 800;
  line-height: 1;
  margin: 0; /* kein extra H1-Margin */
}

.hero__headline span:last-child {
  color: var(--gelb);
}

.hero__subline {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  max-width: none;
  margin: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ========= Mobile: 2x2 Tiles & Tagline unter den Tiles ========= */
@media (max-width: 768px) {
  .hero__inner {
    row-gap: 16px;
  }

  .hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 oben, 2 unten */
    gap: 0;
  }

  .hero__headline {
    font-size: 64px;
  }

  .hero__subline {
    font-size: 24px;
  }}

  /* -----------------------------
   HERO Tiles Base
------------------------------ */

.hero__tile {
  border-style: solid;
  border-color: var(--eggshell);
  border-width: 4px;
  aspect-ratio: 1 / 1;
  background: transparent;
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease,
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
}

/* inaktive Tiles etwas ruhiger */
.hero__tile:not(.hero__tile--active) {
  opacity: 0.45;
}

/* aktive Tiles heben sich ab */
.hero__tile--active {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* Aktive Farben je Tile */
.hero__tile--1.hero__tile--active {
  background: var(--gelb);
  border-color: var(--gelb);
}

.hero__tile--2.hero__tile--active {
  background: var(--orange);
  border-color: var(--orange);
}

.hero__tile--3.hero__tile--active {
  background: var(--pink);
  border-color: var(--pink);
}

.hero__tile--4.hero__tile--active {
  background: var(--blau);
  border-color: var(--blau);
}

/* ---------------------------------
   Headline Transition
---------------------------------- */

.hero__headline {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero__headline--fade-out {
  opacity: 0;
  transform: translateY(6px);
}

/* Zweite Zeile farbig je Zustand */
.hero-headline-line2 {
  transition: color 0.3s ease;
}


/* ===========================
   8. INTRO – Responsive Fix
   =========================== */

/* Desktop / Standard */
.section-intro {
  padding: 80px;
}

.intro-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Bild immer gleiches Verhältnis */
.intro-image {
  flex: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--eggshell);

  /* Halbkreis rechts */
  border-top-right-radius: 100vw;
  border-bottom-right-radius: 100vw;
    overflow: hidden;           /* wichtig: Bild darf rauswandern, wird aber gecroppt */
  position: relative;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
    will-change: transform;
  transform: translate3d(0, 0, 0);
}


/* Text */
.intro-text {
  width: 580px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.intro-subtitle {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.5;
}

.intro-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ===========================
   MOBILE & TABLET BREAKPOINT
   =========================== */

@media (max-width: 900px) {

  .intro-inner {
    flex-direction: column; /* Bild untereinander */
  }

  /* Bild dann volle Breite */
  .intro-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Bleibt gleiches Verhältnis */
  }

  .intro-text {
    width: 100%;
  }
}

/* ===========================
   9. LEISTUNGEN
   =========================== */

.section-services {
  padding: 80px;
}

.services-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

.services-header {
  max-width: 734px;
  text-align: center;
}

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.service-card {
  border-radius: 40px;
  padding: 40px 48px;
  border: 1px solid var(--eggshell);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card--solid {
  background: var(--black);
}

.service-card__icon-outer {
  width: 40px;
  height: 40px;
  position: relative;
}

.service-card__icon {
  width: 40px;
  height: 40px;
}

.service-card {
  transition: border-color 0.25s ease;
}

/* Hover-Farben je nach Karte */
.service-card--gelb:hover {
  border-color: var(--gelb);
}

.service-card--orange:hover {
  border-color: var(--orange);
}

.service-card--pink:hover {
  border-color: var(--pink);
}

.service-card--blau:hover {
  border-color: var(--blau);
}

/* Ecken-Varianten */
.service-card__icon--gelb {
  background: var(--gelb);
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.service-card__icon--orange {
  background: var(--orange);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}
.service-card__icon--pink {
  background: var(--pink);
  border-top-left-radius: 1000px;
  border-bottom-right-radius: 1000px;
  border-bottom-left-radius: 1000px;
}
.service-card__icon--blau {
  background: var(--blau);
  border-radius: 9999px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.service-card__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

/* CTA unten */
.services-footer-actions {
  display: flex;
  justify-content: center; /* Buttons zentrieren */
  gap: 24px;
}

.service-card__header + .service-card__title {
  margin-bottom: -8px; /* Standard ist 16px – jetzt viel kleiner */
}

.service-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px; /* Abstand zwischen den Zeilen */
}

.service-card__list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-left: 20px; /* Platz für Punkt */
  position: relative;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em; /* perfekte vertikale Zentrierung */
  width: 6px;
  height: 6px;
  background: var(--eggshell);
  border-radius: 50%; /* Rund! */
}

/* SLIDER-GRUNDLAYOUT */

.projects-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projects-slider__viewport {
  overflow: hidden; /* verhindert, dass der nächste Slide links/rechts sichtbar ist */
}

.projects-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Jede Slide nimmt 100% Breite ein */
.projects-slide {
  flex: 0 0 100%;
}

/* Deine vorhandenen grid-Einstellungen für 3 Cards bleiben gültig */
.projects-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

/* Dots hattest du schon – nur Erinnerung: */
.projects-dots {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.projects-dots__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.projects-dots__dot--active {
  background: var(--eggshell);
}

.projects-dots__dot--inactive {
  border: 2px solid var(--eggshell);
  background: transparent;
}

/* RESPONSIVE: auf kleineren Screens 1 Card pro Zeile */
@media (max-width: 900px) {
  .projects-cards-row {
    grid-template-columns: 1fr;
  }
}



/* ===========================
   10. BANDE / „Neuer Betrieb in Reutte & Umgebung?“
   =========================== */

.section-band {
  background: var(--eggshell);
  color: var(--black);
  padding: 40px 80px;
  margin-top: 40px
}

.section-band__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Textblock links */
.section-band__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-band__headline {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.section-band__subline {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0;
}

/* Button rechts */
.section-band__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive: auf Mobile untereinander */
@media (max-width: 768px) {
  .section-band {
    padding: 32px 24px;
  }

  .section-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .section-band__headline {
    font-size: 32px;
  }

  .section-band__subline {
    font-size: 14px;
  }

  .section-band__btn {
    justify-content: center;
  }
}

/* ===========================
   11. PROJEKTE
   =========================== */

.section-projects {
  padding: 144px 80px 80px;
}

.projects-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Header-Zeile – nur noch Text, volle Breite */
.projects-header-row {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  align-items: flex-start;
}

.projects-intro {
  width: 100%;
  max-width: 100%;
}

/* Grid mit Karten */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.projects-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
/* ===========================
   PROJECT CARDS – DESKTOP (quadratisch)
   =========================== */

.project-card {
  aspect-ratio: 1 / 1;      
  padding: 32px 40px;
  border-radius: 24px;
  border: 1px solid var(--eggshell);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
  transition: transform 0.4s ease;
  transform-origin: center;
}

/* sorgt dafür, dass z-index in diesem Grid sauber funktioniert */
.projects-cards-row {
  isolation: isolate;
}

/* Hover: Karte nach vorne holen, damit der Border nicht verdeckt wird */
.project-card:hover {
  z-index: 10;
  transform: scale(1.02);
}

/* Optional: Hover auf Touch-Geräten deaktivieren (gegen "klebt nach Klick") */
@media (hover: none) {
  .project-card:hover {
    transform: none;
  }
}

.project-card__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===========================
   PROJECT CARDS – TABLET & MOBILE (nicht quadratisch)
   =========================== */

@media (max-width: 1024px) {
  .project-card {
    aspect-ratio: unset;    
    height: auto;           
  }

  .project-card__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

/* schöner Tastatur-Fokus */
.project-card__link:focus-visible {
  outline: none; /* wichtig: verhindert den Outline-Rand */
  box-shadow: 0 0 0 2px var(--eggshell) inset; /* Fokus-Rahmen innen */
  border-radius: inherit;
}

/* Meta-Bereich unter dem Bild */
.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.project-card__tags {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  margin-top: 4px
}

/* ============ PROJECT CARD ICONS (wie Services) ============ */

.project-card__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-card__icon-small {
  width: 16px;
  height: 16px;
  display: block;
}

/* Gelb – gleiche Rundungen wie Branding-Tile */
.project-card__icon--gelb {
  background: var(--gelb);
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Orange – gleiche Rundung wie Webdesign */
.project-card__icon--orange {
  background: var(--orange);
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

/* Pink – gleiche Rundungen wie Social Media */
.project-card__icon--pink {
  background: var(--pink);
  border-top-left-radius: 1000px;
  border-bottom-right-radius: 1000px;
  border-bottom-left-radius: 1000px;
}

/* Blau – Kreis */
.project-card__icon--blau {
  background: var(--blau);
  border-radius: 9999px;
}


/* Slider Dots */
.projects-dots {
  width: 100%;
  display: flex;
  justify-content: center;   /* <-- Zentriert */
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.projects-dots__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.projects-dots__dot--active {
  background: var(--eggshell);
}

.projects-dots__dot--inactive {
  border: 2px solid var(--eggshell);
  background: transparent;
}


/* Optional: einspaltig auf kleineren Screens wie gehabt */
@media (max-width: 900px) {
  .projects-cards-row {
    grid-template-columns: 1fr;
  }
}

/* MOBILE: Slider deaktivieren – alle 6 Projekte untereinander */
@media (max-width: 600px) {
  .projects-slider__viewport {
    overflow: visible; /* nichts abschneiden */
  }

  .projects-slider__track {
    transform: none !important;  /* Slider-Shift ignorieren */
    display: block;              /* statt flex */
  }

  .projects-slide {
    flex: none;
    margin-bottom: 40px;        /* Abstand zwischen den "Seiten" */
  }

  /* Cards sowieso 1-spaltig (hast du schon bei max-width: 900px) */
  .projects-cards-row {
    grid-template-columns: 1fr;
  }

  /* Dots auf Mobile ausblenden */
  .projects-dots {
    display: none;
  }
}

/* Basis: Bildcontainer wie gehabt */
.project-card__image {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Beide Bilder */
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
}


/* =========================================================
   PROJEKTE: Standardmäßig nur Slide 1 zeigen (Projekte 1–3)
   Wenn du später alles zeigen willst: #projekte bekommt .projects--show-all
   ========================================================= */

#projekte:not(.projects--show-all) .projects-slide[data-page="1"] {
  display: none;
}

#projekte:not(.projects--show-all) .projects-dots {
  display: none;
}

/* Wenn nur Projekte 1–3 aktiv sind, nichts clippen */
#projekte:not(.projects--show-all) .projects-slider__viewport {
  overflow: visible;
}




/* ===========================
   12. KONTAKT
   =========================== */

.section-contact {
  padding-top: 80px;
  padding-bottom: 160px
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-text-block {
  display: flex;
  flex-direction: column;
}

/* 1. Weniger Abstand innerhalb des Textblocks ("alls klar?" / Subline / Text) */
.section-contact .contact-text-block {
  gap: 0px; /* vorher 20px über die globale Regel */
}

.section-contact .section-title {
  margin-bottom: 8px; /* nimmt noch etwas Luft raus */
}

.section-contact .section-subtitle {
  margin-bottom: 16px; /* kleine optische Trennung */
}


.contact-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.contact-info {
  padding: 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* z.B. 28px statt 16px */
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}


.contact-info-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
}

.contact-form-wrapper {
  width: 541px;
  max-width: 100%;
  background: var(--eggshell);
  border-radius: 24px;
  padding: 32px 48px;
}

/* Formular (ähnlich Office am See) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.contact-form input,
.contact-form textarea {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--black);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  background: var(--black);
  color: var(--eggshell);
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(59, 134, 255, 0.08); /* Blau sehr dezent */
  color: var(--black);
  font-size: 14px;
  border: 1px solid var(--blau);
}

/* ===========================
   13. FOOTER
   =========================== */

.footer {
  padding: 40px 80px;
  background: var(--eggshell);
  color: var(--black);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.footer-logo {
  width: 288px;
  max-width: 100%;
}

.footer-section {
  font-size: 14px;
  line-height: 1.5;
}

.footer-section strong {
  font-weight: 700;
}

.footer-section + .footer-section {
  flex: 1;
}

.footer-contact {
  min-width: 160px;
}

.footer-legal {
  flex: 1;
}

.footer-socials {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  display: none;
}

.footer-social-icon-img {
  width: 32px;
  height: 32px;
  display: block;
}

/* ===========================
   14. ANCHOR OFFSET
   =========================== */

#hero,
#kontakt {
  scroll-margin-top: 96px;
}

#projekte,
#leistungen {
  scroll-margin-top: 0px;
}

@media (max-width: 768px) {
#leistungen, #projekte, #kontakt {
  scroll-margin-top: 40px;
}
}


html {
  scroll-behavior: smooth;
}


/* ===========================
   15. REVEAL ANIMATION
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

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

/* ===========================
   16. RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .hero__headline {
    font-size: 96px;
  }
}

/* Mobile: engeres Padding links/rechts */
@media (max-width: 768px) {
  .hero,
  .section-intro,
  .section-services,
  .section-band,
  .section-projects,
  .section-contact,
  .header,
  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }

    .header__bar {
    padding-left: 0px;
    padding-right: 0px;
  }

}

@media (max-width: 768px) {
  /* oberer Header im Overlay */
  .header__nav .header__bar {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Hauptbereich mit den Links */
  .header__nav-main {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Linkliste selbst – kein extra Einzug */
  .header__nav-links {
    padding-right: 0;
    padding-left: 0;
  }
}



@media (max-width: 900px) {

  .intro-inner {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-cards-row {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
  }

  .footer-socials {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .hero__headline {
    font-size: 64px;
  }

  .hero__subline {
    font-size: 24px;
  }

  .intro-title,
  .section-title {
    font-size: 40px;
  }

  .section-projects {
    padding-top: 80px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-intro,
  .section-services {
    margin-top: -16px;
  }

  .section-contact {
    margin-top: -96px;
  }

  .footer {
    margin-top: -64px;
  }
}



/* Einheitliche Gaps zwischen Heading / Subline / Text / Buttons */

.hero__text-block,
.intro-text,
.contact-text-block,
.contact-text,
.service-card,
.projects-inner {
  gap: var(--space-block-gap);
}