/* ============================================================
   EDLERRITTER IT-CONSULTING — styles.css
   Lokale Fonts, kein externer Request zu Google Fonts
   ============================================================ */

/* ============================
   LOKALE FONTS (@font-face)
============================ */

/* Plus Jakarta Sans — latin-ext (enthält deutsche Umlaute) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Plus Jakarta Sans — latin */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Mono — latin-ext */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SpaceMono-Regular-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SpaceMono-Bold-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Mono — latin */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SpaceMono-Regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SpaceMono-Bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================
   CSS CUSTOM PROPERTIES
============================ */
:root {
  --red: #a30000;
  --red-hover: #8a0000;
  --dark: #313131;
  --black: #000000;
  --light: #efe6e6;
  --white: #ffffff;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --section-pad: 120px;
  --container: 1200px;
}

/* ============================
   RESET & BASE
============================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-display);
  overflow-x: hidden;
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================
   SKIP LINK (A11y)
============================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ============================
   SCROLL REVEAL
============================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* ============================
   CONTAINER
============================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================
   NAVIGATION
============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s !important;
  white-space: nowrap;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--red-hover) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  transition: color 0.2s;
}

.nav-overlay a:hover {
  color: var(--red);
}

.nav-overlay .nav-cta-mobile {
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================
   HERO
============================ */
.hero {
  min-height: 100vh;
  background: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.5);
  animation: heroGradientIn 2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.1s forwards;
}

@keyframes heroGradientIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero text entrance (headline, subline, ctas) */
@keyframes shapeYIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill shape entrance — uses CSS Custom Properties per element */
@keyframes shapePillIn {
  from { opacity: 0; transform: rotate(var(--rot-from,-15deg)) translateY(-150px); }
  to   { opacity: 1; transform: rotate(var(--rot-to,0deg)) translateY(0); }
}

/* Floating pill shapes */
.shape-outer {
  position: absolute;
  animation: shapePillIn 2.4s cubic-bezier(0.23,0.86,0.39,0.96) var(--delay,0s) both;
}

.shape-float {
  animation-name: shapeFloat;
  animation-duration: 12s;
  animation-timing-function: ease-in-out;
  animation-delay: var(--float-delay, 0s);
  animation-iteration-count: infinite;
}

@keyframes shapeFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(15px); }
}

.shape-pill {
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  position: relative;
}

.shape-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 48px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
}

@keyframes wmLetterIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wmLineExpand {
  from { width: 0%; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

.animated-wordmark {
  display: inline-flex;
  overflow: visible;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: var(--font-display);
}

.wm-letter {
  display: inline-block;
  opacity: 0;
  animation: wmLetterIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i) * 0.055s + 0.5s);
}

.wordmark-underline {
  display: block;
  height: 3px;
  border-radius: 2px;
  width: 0%;
  opacity: 0;
  background: linear-gradient(to right, var(--red), #ffffff);
  margin-top: 8px;
}

.wm-line-animate {
  animation: wmLineExpand 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-headline {
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 44px;
  animation: shapeYIn 1s cubic-bezier(0.25,0.4,0.25,1) 0.7s both;
}

.hl-top {
  display: block;
  background: linear-gradient(to bottom, #ffffff, rgba(239,230,230,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.15em;
}

.hl-accent {
  display: block;
  background: linear-gradient(to right, #efe6e6, #ffffff 40%, #a30000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.2em;
}

.hero-subline {
  font-size: 1.05rem;
  color: rgba(239,230,230,0.4);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  animation: shapeYIn 1s cubic-bezier(0.25,0.4,0.25,1) 0.9s both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: shapeYIn 1s cubic-bezier(0.25,0.4,0.25,1) 1.1s both;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 3px;
  border: 2px solid rgba(239, 230, 230, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--light);
  transform: translateY(-1px);
}

.hero-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(3,3,3,0.8), transparent);
  pointer-events: none;
  z-index: 5;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, #030303, transparent);
  pointer-events: none;
  z-index: 5;
}

/* ============================
   KERNBOTSCHAFT
============================ */
.kernbotschaft {
  background: var(--red);
  padding: 90px var(--section-pad) 100px;
  text-align: center;
  margin-top: -1px;
}

.kernbotschaft blockquote {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--light);
  line-height: 1.65;
  letter-spacing: -0.3px;
  position: relative;
}

.kernbotschaft blockquote::before {
  content: '\201E';
  font-size: 6rem;
  line-height: 0;
  color: rgba(239, 230, 230, 0.15);
  position: absolute;
  top: 20px;
  left: -24px;
  font-family: Georgia, serif;
}

.kernbotschaft cite {
  display: block;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
  color: rgba(239, 230, 230, 0.65);
  letter-spacing: 0.05em;
}

/* ============================
   KENNZAHLEN
============================ */
.kennzahlen {
  background: var(--dark);
  padding: 72px 48px;
}

.kennzahlen-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.kenn-item {
  padding: 32px 40px;
  text-align: center;
  position: relative;
}

.kenn-item + .kenn-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--red);
  opacity: 0.6;
}

.kenn-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--light);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 10px;
}

.kenn-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(239, 230, 230, 0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ============================
   ÜBER MICH
============================ */
.about {
  background: var(--light);
  padding: var(--section-pad) 0;
}

.about-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 80px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  max-width: 420px;
}

.about-photo-frame {
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  border-radius: 4px;
  transform: translate(14px, 14px);
  z-index: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.about-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 28px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-body p {
  font-size: 0.975rem;
  color: #4a4040;
  line-height: 1.75;
}

.about-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: #4a4040;
  line-height: 1.65;
}

.about-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 2px;
  background: var(--red);
  margin-top: 12px;
}

/* ============================
   LEISTUNGEN
============================ */
.leistungen {
  background: var(--white);
  padding: var(--section-pad) 0;
}

.leistungen-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.leistung-card {
  background: var(--light);
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 40px 40px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s ease, box-shadow 0.15s ease, transform 0.1s ease-out;
  cursor: default;
}

.leistung-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 40px rgba(163, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--red);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.card-text {
  font-size: 0.9rem;
  color: #5a4f4f;
  line-height: 1.75;
  flex-grow: 1;
  margin-bottom: 28px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.12s ease;
  text-decoration: none;
}

.card-link:hover {
  gap: 12px;
}

/* ============================
   REFERENZEN + KONTAKT
============================ */
.ref-kontakt {
  background: #f7f5f2;
  padding: var(--section-pad) 0 0;
  position: relative;
}

.ref-kontakt::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.ref-kontakt-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.ref-kontakt .section-headline {
  color: var(--dark);
}

/* ---- Carousel Wrapper ---- */
.ref-carousel-outer {
  position: relative;
  margin-top: 48px;
  padding-bottom: 64px;
}

.ref-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 56px 56px 72px;
}

.ref-carousel::-webkit-scrollbar { display: none; }

/* ---- Retro Card ---- */
.ref-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 320px;
  min-height: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #ede9e4;
  text-align: center;
}

.ref-card:hover {
  transform: rotate(2deg) scale(1.025);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
  border-color: rgba(163, 0, 0, 0.2);
}

.ref-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.ref-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ref-card-logo-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(59, 59, 59, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #f7f5f2;
  flex-shrink: 0;
}

.ref-card-logo-ring .ref-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.ref-card-text {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(31, 27, 29, 0.68);
  line-height: 1.65;
  margin-bottom: 20px;
}

.ref-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(31, 27, 29, 0.82);
  margin-bottom: 6px;
}

.ref-card-desg {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(31, 27, 29, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(31, 27, 29, 0.25);
}

/* ---- Nav Buttons ---- */
.ref-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.ref-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4b3f33;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f2f0eb;
  transition: background 0.2s, opacity 0.2s;
}

.ref-nav-btn:hover { background: rgba(75, 63, 51, 0.75); }
.ref-nav-btn:disabled { opacity: 0.35; cursor: default; }
.ref-nav-btn svg { width: 20px; height: 20px; }

/* ---- Badge ---- */
.ref-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(163, 0, 0, 0.07);
  color: rgba(163, 0, 0, 0.9);
  border: 1px solid rgba(163, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ---- Modal ---- */
.ref-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

.ref-modal.open {
  display: flex;
}

.ref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ref-modal-card {
  background: #ffffff;
  border: 1px solid #ede9e4;
  border-radius: 16px;
  padding: 32px 36px 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 60px;
  animation: ref-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ref-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ref-modal-close {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4b3f33;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-bottom: 20px;
  color: #f2f0eb;
  transition: background 0.15s;
  flex-shrink: 0;
}

.ref-modal-close:hover { background: rgba(75, 63, 51, 0.75); }
.ref-modal-close svg { width: 14px; height: 14px; }

.ref-modal-body .ref-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 16px;
}

.ref-logo-invert {
  filter: invert(1);
}

.ref-modal-body .ref-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(31, 27, 29, 0.82);
  font-style: italic;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.ref-modal-body .ref-card-desg {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(31, 27, 29, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 28px;
}

.ref-service {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(31, 27, 29, 0.85);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.ref-result {
  font-size: 0.9rem;
  color: rgba(31, 27, 29, 0.6);
  line-height: 1.7;
  border-top: 1px solid rgba(31, 27, 29, 0.12);
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.ref-logo {
  display: block;
  height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(163, 0, 0, 0.8);
  transition: color 0.15s;
}

.ref-link:hover { color: var(--red); }

/* ---- CTA Zone ---- */
.ref-cta-zone {
  font-style: normal;
  margin-top: 80px;
  padding: 80px 48px 100px;
  text-align: center;
  position: relative;
  background: #0f0f0f;
}

.ref-cta-zone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(163, 0, 0, 0.5), transparent);
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(163, 0, 0, 0.8);
  margin-bottom: 20px;
}

.cta-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(239, 230, 230, 0.5);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 44px;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 3px;
  letter-spacing: -0.2px;
  transition: background 0.15s, transform 0.12s ease-out;
}

.btn-email:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.kontakt-legal {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(239, 230, 230, 0.2);
  letter-spacing: 0.05em;
}

/* ============================
   FOOTER
============================ */
.footer {
  background: #e8e4df;
  padding: 48px 48px 28px;
}

.footer-outer {
  max-width: var(--container);
  margin: 0 auto;
}

/* ---- Tape Card ---- */
.footer-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 48px;
  position: relative;
}

.footer-card-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ---- Tape Decorations ---- */
.footer-tape {
  position: absolute;
  display: block;
  top: -18px;
}

.footer-tape-tl { left: -20px; }

.footer-tape-tr {
  right: -20px;
  transform: rotate(90deg);
  transform-origin: center;
}

.footer-tape svg {
  width: 72px;
  height: 52px;
}

/* ---- Brand ---- */
.footer-brand {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.footer-logo-link img {
  height: 140px;
  width: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(30, 20, 20, 0.48);
  line-height: 1.65;
  max-width: 240px;
}

/* ---- Nav Columns ---- */
.footer-cols {
  display: flex;
  gap: 56px;
  justify-content: flex-end;
  flex: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 20, 20, 0.35);
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-links a,
.footer-col-links button {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(30, 20, 20, 0.55);
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  white-space: nowrap;
}

.footer-col-links a:hover,
.footer-col-links button:hover {
  color: #1a1212;
}

/* ---- Bottom Bar ---- */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 0 6px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: rgba(30, 20, 20, 0.38);
  letter-spacing: 0.04em;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 20, 20, 0.07);
  color: rgba(30, 20, 20, 0.45);
  transition: background 0.15s, color 0.15s;
}

.footer-social-btn:hover {
  background: rgba(30, 20, 20, 0.13);
  color: #1a1212;
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
}

/* ============================
   KONTAKTFORMULAR MODAL
============================ */
.form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.form-overlay.open { display: flex; }

.form-modal {
  background: #1a1a1a;
  border: 1px solid rgba(163, 0, 0, 0.3);
  border-radius: 6px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(239, 230, 230, 0.5);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  transition: color 0.15s;
}

.form-close:hover { color: #fff; }

.form-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 0.9rem;
  color: rgba(239, 230, 230, 0.5);
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 230, 230, 0.6);
}

.form-row input,
.form-row select,
.form-row textarea {
  background: #111;
  border: 1px solid rgba(239, 230, 230, 0.15);
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
  min-height: 44px;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(239, 230, 230, 0.25); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(163, 0, 0, 0.7);
  outline: 2px solid rgba(163, 0, 0, 0.3);
  outline-offset: 1px;
}

.form-row select option { background: #1a1a1a; }

.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 8px;
  min-height: 44px;
}

.form-submit:hover:not(:disabled) { background: var(--red-hover); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 14px;
  min-height: 1.4em;
}

.form-status.success { color: #6fcf97; }
.form-status.error { color: #eb5757; }

/* ============================
   COOKIE CONSENT BANNER
   Floating card — bottom-right
============================ */
#cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#cookie-banner.cb-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cb-card {
  background: #ffffff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header */
.cb-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(163, 0, 0, 0.08);
  color: var(--red);
  border: 1px solid rgba(163, 0, 0, 0.18);
}

.cb-icon svg {
  width: 18px;
  height: 18px;
}

.cb-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1212;
  margin: 0;
  flex: 1;
}

.cb-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}

.cb-close svg {
  width: 14px;
  height: 14px;
}

.cb-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1212;
}

/* Message */
.cb-message {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.cb-message a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.cb-message a:hover { color: #cc2222; }

/* Actions row */
.cb-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cb-btn-primary {
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 36px;
  white-space: nowrap;
}

.cb-btn-primary:hover { background: var(--red-hover); }

.cb-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #444;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 14px;
  border: 1px solid #d0cbc6;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  min-height: 36px;
  white-space: nowrap;
}

.cb-btn-secondary:hover {
  color: #1a1212;
  border-color: #999;
}

.cb-btn-sm {
  font-size: 0.75rem;
  padding: 7px 12px;
  min-height: 32px;
}

.cb-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

/* Collapsible prefs panel */
.cb-prefs-wrap {
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cb-prefs-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

/* Individual pref row */
.cb-pref-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0dbd5;
  background: #f7f5f2;
}

.cb-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: var(--red);
  transition: background 0.15s, border-color 0.15s;
}

.cb-check:not(.cb-check-locked):hover {
  background: rgba(163, 0, 0, 0.08);
  border-color: rgba(163, 0, 0, 0.4);
}

.cb-check-locked {
  background: #f0ece8;
  border-color: #ddd;
  opacity: 0.7;
}

.cb-check-icon {
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.cb-check-icon svg {
  width: 12px;
  height: 12px;
}

.cb-pref-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.cb-pref-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-required {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(30, 20, 20, 0.4);
  letter-spacing: 0.02em;
}

.cb-pref-desc {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.5;
}

/* Prefs footer buttons */
.cb-prefs-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

/* ============================
   LEGAL PAGES (Impressum / Datenschutz)
============================ */
.legal-page {
  padding: 140px 48px 100px;
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1.5px;
  margin-bottom: 48px;
  line-height: 1.1;
}

.legal-inner h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.legal-inner p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(49, 49, 49, 0.8);
  margin-bottom: 10px;
}

.legal-inner ul {
  margin: 10px 0 10px 24px;
}

.legal-inner ul li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(49, 49, 49, 0.8);
  margin-bottom: 4px;
}

.legal-inner a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-inner a:hover { color: var(--red-hover); }

.legal-divider {
  border: none;
  border-top: 1px solid rgba(163, 0, 0, 0.15);
  margin: 40px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 40px;
  transition: gap 0.12s ease;
}

.back-link:hover { gap: 10px; }

/* ============================
   RESPONSIVE — TABLET (1024px)
============================ */
@media (max-width: 1024px) {
  .container,
  .nav-inner {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 80px 32px 100px;
  }

  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 0 32px;
  }

  .leistungen-inner,
  .ref-kontakt-inner,
  .ref-cta-zone {
    padding-left: 32px;
    padding-right: 32px;
  }

  .kennzahlen-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .kenn-item:nth-child(3)::before {
    display: none;
  }

  .footer {
    padding: 40px 32px 24px;
  }

  .footer-card {
    padding: 36px 32px;
  }

  #cookie-banner {
    right: 16px;
    bottom: 16px;
  }
}

/* ============================
   RESPONSIVE — MOBILE (768px)
============================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    padding: 60px 24px 80px;
  }

  .hero-shapes .s3,
  .hero-shapes .s4,
  .hero-shapes .s5 {
    display: none !important;
  }

  .hero-headline {
    letter-spacing: -0.5px;
  }

  .animated-wordmark {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .kernbotschaft {
    padding: 72px 20px;
  }

  .kennzahlen {
    padding: 56px 20px;
  }

  .kennzahlen-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .kenn-item {
    padding: 24px 16px;
  }

  .kenn-item:nth-child(3)::before {
    display: block;
  }

  .kenn-item:nth-child(even)::before {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .about-photo-wrap {
    max-width: 340px;
  }

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

  .leistungen-inner,
  .ref-kontakt-inner,
  .ref-cta-zone {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ref-card {
    width: 280px;
    min-height: 440px;
  }

  .ref-modal-card {
    padding: 24px 20px 32px;
    margin-top: 20px;
  }

  .footer {
    padding: 32px 16px 20px;
  }

  .footer-card {
    padding: 32px 24px;
  }

  .footer-card-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand {
    flex: none;
  }

  .footer-tape-tl,
  .footer-tape-tr {
    display: none;
  }

  .footer-cols {
    gap: 32px;
    justify-content: flex-start;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-main-links,
  .footer-legal-links {
    justify-content: flex-start;
  }

  .btn-email {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .form-modal {
    padding: 32px 24px;
  }

  #cookie-banner {
    right: 8px;
    bottom: 8px;
    max-width: calc(100vw - 16px);
  }

  .cb-actions {
    flex-wrap: wrap;
  }

  .cb-btn-primary,
  .cb-btn-secondary:not(.cb-btn-sm) {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .legal-page {
    padding: 120px 20px 80px;
  }
}

/* ============================
   RESPONSIVE — KLEIN-MOBILE (420px)
============================ */
@media (max-width: 420px) {
  :root {
    --section-pad: 60px;
  }

  .hero-headline {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
  }

  .kennzahlen-inner {
    grid-template-columns: 1fr;
  }

  .kenn-item::before {
    display: none !important;
  }

  .kenn-item + .kenn-item {
    border-top: 1px solid rgba(163, 0, 0, 0.3);
  }
}

/* ============================
   REDUCED MOTION (A11y)
============================ */
@media (prefers-reduced-motion: reduce) {
  .wm-letter,
  .wm-line-animate,
  .hero-headline,
  .hero-subline,
  .hero-ctas {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .shape-outer {
    animation: none !important;
    opacity: 1 !important;
    transform: rotate(var(--rot-to,0deg)) translateY(0) !important;
  }
  .shape-float {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #cookie-banner {
    transition: none !important;
  }
}
