/* === LOCAL FONTS === */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/urbanist-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: 'Urbanist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/urbanist-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;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; border: none; background: none; color: inherit; }
button { cursor: pointer; }

/* === ANIMATED GRADIENT PROPERTIES === */
@property --11-x-position { syntax: '<percentage>'; inherits: false; initial-value: 20%; }
@property --11-y-position { syntax: '<percentage>'; inherits: false; initial-value: 80%; }
@property --8-x-position { syntax: '<percentage>'; inherits: false; initial-value: 40.35%; }
@property --8-y-position { syntax: '<percentage>'; inherits: false; initial-value: 29.18%; }
@property --9-x-position { syntax: '<percentage>'; inherits: false; initial-value: 79.41%; }
@property --9-y-position { syntax: '<percentage>'; inherits: false; initial-value: 61.84%; }

@keyframes gradient-shift {
  0% {
    --11-x-position: 20%; --11-y-position: 80%;
    --8-x-position: 40.35%; --8-y-position: 29.18%;
    --9-x-position: 79.41%; --9-y-position: 61.84%;
  }
  25% {
    --11-x-position: 100%; --11-y-position: 100%;
    --8-x-position: 85%; --8-y-position: 80%;
  }
  50% {
    --8-x-position: 15%; --8-y-position: 85%;
    --9-x-position: 20%; --9-y-position: 20%;
  }
  100% {
    --11-x-position: 20%; --11-y-position: 80%;
    --8-x-position: 40.35%; --8-y-position: 29.18%;
    --9-x-position: 79.41%; --9-y-position: 61.84%;
  }
}

.animated-bg {
  background:
    radial-gradient(100% 100% at var(--11-x-position) var(--11-y-position), #0a1628 0%, transparent),
    radial-gradient(100% 100% at var(--8-x-position) var(--8-y-position), #0f2240 0%, transparent),
    radial-gradient(100% 100% at var(--9-x-position) var(--9-y-position), #4a7ab5 0%, transparent),
    #0a1628;
  animation: gradient-shift 16s ease-in-out infinite;
}

/* === TOKENS === */
:root {
  --navy: #0A1628;
  --blue: #4A7AB5;
  --accent: #FA4838;
  --white: #ffffff;
  --off-white: #F7F8FA;
  --gray-100: #ECEEF2;
  --gray-300: #B0B8C9;
  --gray-500: #6B7A94;
  --text: #1A1F2B;
  --text-light: #4A5568;
  --font: 'Urbanist', sans-serif;
  --max-w: 1440px;
  --px: clamp(24px, 4vw, 80px);
  --section-py: clamp(80px, 12vw, 180px);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth: cubic-bezier(0.77, 0, 0.175, 1);
}

/* === BASE === */
body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

::selection { background: var(--blue); color: var(--white); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

section { padding: var(--section-py) 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(3.5rem, 8vw, 8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.label-light { color: #c8cdd6; }

.label + h2, .label + h1 { margin-top: 12px; }
h2 + p, h2 + .about-text, h1 + p { margin-top: 24px; }

.text-lg {
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-light);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue), #8FB8E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 0;
  transition: background 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--white); }
.nav-links a.btn-light:hover { color: var(--navy); }

/* --- Unified Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 100px;
  padding: 12px 28px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn .arrow {
  color: var(--accent);
  font-size: 11px;
  transition: transform 0.25s ease;
}

.btn:hover .arrow { transform: translateX(3px); }

/* Light variant — for dark backgrounds */
.btn-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

.btn-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* Dark variant — for light backgrounds */
.btn-dark {
  color: var(--navy);
  border-color: rgba(10,22,40,0.2);
}

.btn-dark:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover .arrow { color: var(--accent); }

/* nav CTA inherits from .btn.btn-light via HTML classes */

.burger {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-name {
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--white);
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-content { margin-bottom: -50px; }

picture.hero-profile-mobile {
  display: none;
  margin-bottom: 20px;
}

picture.hero-profile-mobile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(255,255,255,0.2);
}

picture.hero-portrait {
  position: absolute;
  right: 8%;
  bottom: 0;
  height: 75%;
  max-height: 680px;
  z-index: 1;
  pointer-events: none;
}

picture.hero-portrait img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  opacity: 0.9;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-hint .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

/* === ABOUT === */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.about-left h2 { margin-bottom: 8px; }

.about-text p {
  margin-bottom: 24px;
  color: var(--text-light);
  line-height: 1.75;
}

.about-text p:last-child { margin-bottom: 0; }

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skill {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.skill:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-100);
}

.stat { text-align: center; }

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

/* === AVUI === */
.avui {
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.avui-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  transform: translateX(-50%);
  will-change: transform;
}

.avui-img {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.avui-img .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avui-logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* avui image styling handled by .avui-logo-img */

.avui-text-col {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 5vw, 80px);
}

.avui-text-inner { max-width: 520px; }

.avui-text-inner h2 { margin-bottom: 8px; }

.avui-text {
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 24px;
  margin-bottom: 32px;
}

/* link-arrow removed — use .btn.btn-dark instead */

/* === REFERENZEN === */
.referenzen { background: var(--white); }

.referenzen-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.referenzen-header h2 { margin-bottom: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.project-card { position: relative; }

.project-card-img {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card-img img { transform: scale(1.04); }

.project-card-img .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.project-card-title {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.project-card-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 4px 12px;
  border: 1px solid var(--gray-100);
  border-radius: 100px;
}

.all-ref-link {
  text-align: center;
  margin-top: clamp(48px, 6vw, 80px);
}

/* === KONTAKT === */
.kontakt {
  color: var(--white);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.kontakt-left h2 {
  color: var(--white);
  margin-bottom: 24px;
}

.kontakt-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.kontakt-link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.3s ease;
}

.kontakt-link:hover { color: var(--white); }

.kontakt-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--white);
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* form submit uses .btn.btn-light */
.form-submit { align-self: flex-start; }

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--white); }

/* === SECTION DIVIDER === */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-100);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === REFERENZEN PAGE === */
.ref-page-hero {
  padding: 160px 0 80px;
  color: var(--white);
}

.ref-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
}

.ref-page-hero .label-light { margin-bottom: 16px; }

.ref-grid-section {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover { border-color: var(--blue); color: var(--blue); }

.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.ref-card { transition: opacity 0.4s ease, transform 0.4s ease; }

.ref-card-img {
  aspect-ratio: 16/9;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--gray-100);
}

.ref-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-card-img .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.ref-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ref-card-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.5;
}

.ref-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.ref-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 3px 10px;
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  background: var(--white);
}

.ref-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 100px;
  background: var(--blue);
  border: none;
  transition: background 0.25s ease;
}

.ref-card-link:hover { background: var(--navy); }

.ref-card-link svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === LEGAL PAGES === */
.legal-hero {
  padding: 160px 0 80px;
  color: var(--white);
}

.legal-content {
  background: var(--white);
  padding: var(--section-py) 0;
}

.legal-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-top: 48px;
  margin-bottom: 12px;
}

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

.legal-content p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: 16px;
  line-height: 1.7;
}

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

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

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
  min-width: 280px;
}

.cookie-text a {
  color: #2d5f99;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cookie-btn-accept {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.cookie-btn-accept:hover { background: var(--blue); border-color: var(--blue); }

.cookie-btn-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gray-100);
}

.cookie-btn-reject:hover { border-color: var(--gray-300); }

.cookie-btn-settings {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--gray-100);
}

.cookie-btn-settings:hover { border-color: var(--gray-300); }

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-modal-overlay.visible { opacity: 1; pointer-events: all; }

.cookie-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 520px;
  width: 90%;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.cookie-modal h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cookie-category:last-of-type { border-bottom: none; }

.cookie-cat-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-cat-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-100);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--blue); }
.cookie-toggle input:checked + .cookie-toggle-slider::after { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { cursor: default; opacity: 0.7; }

.cookie-modal-buttons {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-buttons { justify-content: stretch; }
  .cookie-btn { flex: 1; text-align: center; padding: 12px 16px; }
  .cookie-modal { padding: 24px; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 56px; }
  .projects-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .avui-wrapper { width: 100%; height: auto; flex-direction: column; transform: none !important; }
  .avui-img { width: 100%; height: 50vw; }
  .avui-text-col { width: 100%; padding: clamp(32px, 6vw, 64px) var(--px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero-name { font-size: clamp(3.5rem, 14vw, 6rem); }
  .hero { padding-top: 80px; min-height: 90vh; }
  .stats-row { grid-template-columns: 1fr; gap: 32px; }
  .referenzen-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .ref-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 12px; padding: 8px 16px; }
  .hero { align-items: flex-start; padding-top: 80px; }
  .hero-content { margin-top: 0; margin-bottom: 0; }
  picture.hero-portrait { display: none; }
  picture.hero-profile-mobile { display: block; }
  .hero-scroll-hint { display: none; }
}
