/* ============================================================
   404 IT Service – Stylesheet v3 (Dark Blue Theme + Light Mode)
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --color-bg:           #080E1E;
  --color-bg-card:      rgba(255, 255, 255, 0.04);
  --color-bg-card-hover:rgba(255, 255, 255, 0.07);
  --color-bg-surface:   #0D1933;
  --color-bg-alt:       #0B1529;

  --color-primary:      #3B82F6;
  --color-primary-dark: #1D4ED8;
  --color-accent:       #06B6D4;
  --color-accent-soft:  rgba(6, 182, 212, 0.12);
  --color-success:      #10B981;

  --color-text:         #F1F5F9;
  --color-text-muted:   #94A3B8;
  --color-text-subtle:  #64748B;

  --color-link:         #60A5FA;
  --color-link-hover:   #93C5FD;

  --color-border:       rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(59, 130, 246, 0.45);
  --color-border-glow:  rgba(59, 130, 246, 0.25);

  --color-header-bg:    rgba(8, 14, 30, 0.85);
  --color-footer-bg:    #04080F;
  --color-float-bg:     rgba(13, 25, 51, 0.9);
  --color-mobile-nav-bg:rgba(8, 14, 30, 0.97);

  --gradient-primary:   linear-gradient(135deg, #1D4ED8 0%, #0EA5E9 100%);
  --gradient-card:      linear-gradient(135deg, rgba(29,78,216,0.12) 0%, rgba(14,165,233,0.06) 100%);
  --gradient-text:      linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  --gradient-hero-bg:   radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 60%),
                        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.10) 0%, transparent 55%);

  --shadow-glow:        0 0 40px rgba(37, 99, 235, 0.25);
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn:         0 4px 20px rgba(29, 78, 216, 0.45);

  --font-sans:          'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:          6px;
  --radius-md:          14px;
  --radius-lg:          22px;
  --nav-height:         72px;
  --container-width:    1160px;
  --section-padding:    96px;
}

/* --- Light Mode Overrides --------------------------------- */
[data-theme="light"] {
  --color-bg:           #F8FAFD;
  --color-bg-card:      rgba(255, 255, 255, 0.85);
  --color-bg-card-hover:#FFFFFF;
  --color-bg-surface:   #FFFFFF;
  --color-bg-alt:       #EFF6FF;

  --color-text:         #0F172A;
  --color-text-muted:   #475569;
  --color-text-subtle:  #94A3B8;

  --color-link:         #2563EB;
  --color-link-hover:   #1D4ED8;

  --color-border:       rgba(15, 23, 42, 0.10);
  --color-border-hover: rgba(59, 130, 246, 0.50);
  --color-border-glow:  rgba(59, 130, 246, 0.15);

  --color-header-bg:    rgba(248, 250, 253, 0.88);
  --color-footer-bg:    #DDE3EE;
  --color-float-bg:     rgba(255, 255, 255, 0.95);
  --color-mobile-nav-bg:rgba(248, 250, 253, 0.98);

  --gradient-text:      linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --gradient-hero-bg:   radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,0.07) 0%, transparent 60%),
                        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.05) 0%, transparent 55%);

  --shadow-glow:        0 0 40px rgba(37, 99, 235, 0.12);
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-btn:         0 4px 20px rgba(29, 78, 216, 0.30);
}

/* --- Theme Transition ------------------------------------- */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease !important;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p  { color: var(--color-text-muted); line-height: 1.75; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Utilities -------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--alt { background: var(--color-bg-alt); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section__header p { margin-top: 14px; font-size: 1.05rem; }

.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  border: 1px solid rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.10);
  color: var(--color-link);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(29, 78, 216, 0.6);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--color-border-hover);
  color: var(--color-text);
  background: rgba(59,130,246,0.06);
}
.btn--ghost:hover {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.6);
  transform: translateY(-1px);
}

.btn--white {
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  width: 100%;
  justify-content: center;
}
.btn--white:hover {
  background: #EFF6FF;
  transform: translateY(-1px);
}

/* --- Header / Nav ----------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.35s;
}

.header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.header--solid {
  border-bottom-color: var(--color-border);
}

[data-theme="light"] .header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

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

.nav__logo img          { height: 40px; width: auto; }
.nav__logo-fallback     {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

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

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav__link:hover             { color: var(--color-link); }
.nav__link:hover::after      { transform: scaleX(1); }

.nav__cta { padding: 9px 20px; font-size: 0.88rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 2px;
  transition: all 0.22s;
}

/* --- Theme Toggle ----------------------------------------- */
.nav__theme-item {
  display: flex;
  align-items: center;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  color: var(--color-link);
  transform: scale(1.1);
}

.theme-toggle__icon {
  display: block;
  pointer-events: none;
}

/* Dark Mode: Sonne zeigen (wechsle zu Hell) */
.theme-toggle__icon--sun  { display: block; }
.theme-toggle__icon--moon { display: none; }

/* Light Mode: Mond zeigen (wechsle zu Dunkel) */
[data-theme="light"] .theme-toggle__icon--sun  { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* --- Hero ------------------------------------------------- */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

/* Background: grid dots + radial glows */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background-image:
    radial-gradient(circle, rgba(59,130,246,0.18) 1px, transparent 1px);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-bg);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; width: 100%; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero__badge { margin-bottom: 22px; }

.hero__title {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero__title .gradient-text { display: block; }

.hero__subtitle {
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.hero__meta-item svg { color: var(--color-success); flex-shrink: 0; }

/* --- Hero Monitor Illustration ---------------------------- */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__device {
  position: relative;
  width: 100%;
  max-width: 460px;
}

/* Glow behind monitor */
.hero__device::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(37,99,235,0.25) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .hero__device::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(37,99,235,0.12) 0%, transparent 70%);
}

.hero__monitor {
  position: relative;
  z-index: 1;
}

.hero__screen-wrap {
  background: #0A1628;
  border: 1.5px solid rgba(59,130,246,0.35);
  border-radius: 10px 10px 4px 4px;
  padding: 14px 18px 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06);
  min-height: 240px;
  overflow: hidden;
}

/* Traffic light dots */
.hero__screen-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.hero__screen-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero__screen-dot:nth-child(1) { background: #EF4444; }
.hero__screen-dot:nth-child(2) { background: #F59E0B; }
.hero__screen-dot:nth-child(3) { background: #10B981; }

/* Code lines */
.hero__code { font-size: 0.78rem; font-family: 'Courier New', monospace; line-height: 2; }

.code-l       { display: flex; align-items: center; gap: 4px; }
.code-l.indent{ padding-left: 20px; }

.c-tag  { color: #60A5FA; }
.c-name { color: #34D399; }
.c-attr { color: #FBBF24; }
.c-str  { color: #F87171; }
.c-txt  { color: #E2E8F0; }
.c-cmt  { color: #64748B; font-style: italic; }

.code-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: #60A5FA;
  margin-left: 2px;
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Monitor stand + base */
.hero__stand {
  height: 22px;
  width: 60px;
  background: linear-gradient(to bottom, #1A2E50, #0F1E38);
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  border: 1.5px solid rgba(59,130,246,0.2);
  border-top: none;
}
.hero__base {
  height: 8px;
  width: 120px;
  background: linear-gradient(to right, transparent, #1A2E50, transparent);
  border-radius: 100px;
  margin: 0 auto;
}

/* Floating badges around the monitor */
.hero__float {
  position: absolute;
  background: var(--color-float-bg);
  border: 1px solid var(--color-border-hover);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.12);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

[data-theme="light"] .hero__float {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 0 0 1px rgba(59,130,246,0.15);
}

.hero__float:nth-child(odd) { animation-direction: alternate-reverse; }

@keyframes float {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.hero__float--1 { top: -18px;  left: -40px; animation-delay: 0s;    animation-duration: 3.4s; }
.hero__float--2 { top: 30px;   right: -50px; animation-delay: 0.5s;  animation-duration: 2.9s; }
.hero__float--3 { bottom: 60px; left: -55px; animation-delay: 1.1s; animation-duration: 3.7s; }
.hero__float--4 { bottom: 20px; right: -40px; animation-delay: 0.7s; animation-duration: 3.2s; }

/* --- Services --------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 1px rgba(59,130,246,0.15), var(--shadow-glow);
  transform: translateY(-4px);
}

[data-theme="light"] .service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(59,130,246,0.15), var(--shadow-glow);
}

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

/* Featured/highlight card */
.service-card--featured {
  background: var(--gradient-card);
  border-color: rgba(59,130,246,0.25);
}
.service-card--featured::before { transform: scaleX(1); }

.service-card__icon {
  width: 50px; height: 50px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-card__title { margin-bottom: 10px; font-size: 1.02rem; }
.service-card p      { font-size: 0.9rem; line-height: 1.7; }

/* Row of 2 for the last two cards */
.services__grid-row2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* --- About ------------------------------------------------ */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__content h2   { margin-bottom: 16px; }
.about__content > p  { margin-bottom: 14px; font-size: 0.97rem; }

.about__highlights   { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-item__icon {
  width: 38px; height: 38px;
  background: rgba(6,182,212,0.10);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.highlight-item__text strong {
  display: block;
  font-size: 0.93rem;
  color: var(--color-text);
  margin-bottom: 2px;
}
.highlight-item__text span {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.about__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Subtle glow in corner */
.about__card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about__card-avatar {
  width: 72px; height: 72px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(29,78,216,0.4);
}

.about__card h3      { margin-bottom: 4px; }
.about__card-role    {
  font-size: 0.82rem;
  color: var(--color-link);
  font-weight: 600;
  margin-bottom: 16px;
}

.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.tag {
  padding: 4px 12px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-link-hover);
}

/* --- Contact ---------------------------------------------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact__info h2     { margin-bottom: 14px; }
.contact__info > p    { margin-bottom: 32px; font-size: 0.97rem; }
.contact__items       { display: flex; flex-direction: column; gap: 20px; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__item-icon {
  width: 44px; height: 44px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact__item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin-bottom: 3px;
}

.contact__item-value {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact__item-value a {
  color: var(--color-link);
  transition: color 0.15s;
}
.contact__item-value a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

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

.contact__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.contact__card h3 { font-size: 0.97rem; margin-bottom: 8px; }
.contact__card p  { font-size: 0.88rem; }

.contact__cta {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}
.contact__cta::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.contact__cta h3 { color: white; margin-bottom: 8px; }
.contact__cta p  { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 18px; }

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 52px 0 30px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 2fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer__brand p {
  font-size: 0.86rem;
  margin-top: 12px;
  line-height: 1.65;
  max-width: 280px;
  color: var(--color-text-subtle);
}

.footer__logo {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.7);
}

[data-theme="light"] .footer__logo img {
  filter: brightness(0) opacity(0.6);
}

.footer__col h4 {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.86rem;
  color: var(--color-text-subtle);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--color-link); }

/* --- Footer Map ------------------------------------------- */
.footer__map h4 {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.footer__map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  line-height: 0;
}

.footer__map-wrap iframe {
  width: 100%;
  height: 190px;
  display: block;
}

.footer__map-addr {
  font-size: 0.78rem;
  color: var(--color-text-subtle);
  margin-top: 10px;
  text-align: center;
}

/* --- Footer Bottom --------------------------------------- */
.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom a { color: var(--color-text-subtle); transition: color 0.15s; }
.footer__bottom a:hover { color: var(--color-link); }

/* --- Subpages (Impressum, Datenschutz) -------------------- */
.subpage-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0;
}
.subpage-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.subpage-hero p  { font-size: 0.93rem; }

.legal-content {
  padding: 64px 0 96px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.02rem; margin-top: 22px; margin-bottom: 8px; }
.legal-content p  { margin-bottom: 14px; font-size: 0.93rem; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-content ul li { font-size: 0.93rem; color: var(--color-text-muted); margin-bottom: 6px; }
.legal-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--color-link-hover); }

/* --- Scroll Reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  :root { --section-padding: 64px; }

  .hero__inner       { grid-template-columns: 1fr; gap: 56px; }
  .hero              { min-height: auto; padding: 60px 0 80px; }

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

  .about__inner      { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner    { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner     { grid-template-columns: 1fr 1fr; }
  .footer__brand     { grid-column: 1 / -1; }
  .footer__map       { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section-padding: 48px; --nav-height: 64px; }

  .nav__list { display: none; }
  .nav__cta  { display: none; }
  .nav__toggle { display: flex; }

  .nav__list.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-mobile-nav-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 28px;
    gap: 4px;
    backdrop-filter: blur(20px);
    z-index: 99;
  }

  .nav__list.open .nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }
  .nav__list.open .nav__link:last-child { border-bottom: none; }

  /* Theme toggle in open mobile menu */
  .nav__list.open .nav__theme-item {
    border-bottom: 1px solid var(--color-border);
  }
  .nav__list.open .theme-toggle {
    width: 100%;
    border-radius: var(--radius-sm);
    height: 50px;
    gap: 12px;
    justify-content: flex-start;
    padding: 0 4px;
    margin: 4px 0;
  }
  .nav__list.open .theme-toggle::after {
    content: 'Erscheinungsbild wechseln';
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .services__grid    { grid-template-columns: 1fr; }
  .services__grid-row2 { grid-template-columns: 1fr; }

  .hero__float { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .footer__inner     { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom    { flex-direction: column; align-items: flex-start; }
  .legal-content     { padding: 40px 0 64px; }
}

/* --- Cookie Banner ---------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(calc(100% + 4px));
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 18px 0;
}

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

[data-theme="light"] .cookie-banner {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
}

.cookie-banner__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__content {
  flex: 1;
  min-width: 240px;
}

.cookie-banner__title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.cookie-banner__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.cookie-banner__link:hover { color: var(--color-link-hover); }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-banner__actions .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.cookie-banner__btn-settings {
  border: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-banner__btn-settings:hover {
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  border-color: var(--color-border-hover);
}

@media (max-width: 640px) {
  .cookie-banner { padding: 16px 0; }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn,
  .cookie-banner__btn-settings {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
