/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== LIGHT MODE (Default) ===== */
:root {
  --primary: #0077b6;
  /* Blau: Tech/Vertrauen */
  --primary-700: #005f8f;
  --accent: #fcbf49;
  /* Sonnengelb */
  --bg-gradient-1: #e7f5ff;
  --bg-gradient-2: #fff4e0;
  --bg: #f5f7fb;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --ring: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.8);
  --btn-hover-bg: #e6f2fb;
  --badge-bg: #e8f3ff;
  --badge-text: #0b4a75;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --primary: #0ea5e9;
  /* Leuchtenderes Blau für Dark Mode */
  --primary-700: #0284c7;
  --accent: #f59e0b;
  --bg-gradient-1: #0f172a;
  /* Dunkelblaues Glow */
  --bg-gradient-2: #1e1b4b;
  /* Tiefes Indigoblau */
  --bg: #0b0f19;
  /* Sehr dunkler Hintergrund */
  --text: #e2e8f0;
  /* Hellgrau für Text */
  --muted: #94a3b8;
  --card: #1e293b;
  /* Dunkle Karten */
  --ring: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(15, 23, 42, 0.85);
  /* Dark Glassmorphism */
  --btn-hover-bg: rgba(14, 165, 233, 0.15);
  /* Transparenter Hover im Dark Mode */
  --badge-bg: rgba(14, 165, 233, 0.2);
  --badge-text: #7dd3fc;
}

* {
  box-sizing: border-box;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  transition: background-color 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(60rem 60rem at -10% -10%,
      var(--bg-gradient-1) 0,
      transparent 60%),
    radial-gradient(60rem 60rem at 110% -10%, var(--bg-gradient-2) 0, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  /* Gradients fixieren beim Scrollen */
  line-height: 1.6;

  /* Flexbox Setup für Sticky Footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

main a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

main a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

/* Spezifische Headline-Farbe für mehr Kontrast im Dark Mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
  color: #f8fafc;
  /* Fast Weiß */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  gap: 16px;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  /* Nutzt Variable für Dark/Light */
  backdrop-filter: blur(12px);
  /* Etwas stärkerer Blur für Premium Look */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  padding: 0;
  /* Header-Padding auf 0, wir steuern den Platz über die Logos */
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
  /* Pusht das Menü und den Switcher ganz nach rechts */
  overflow: hidden;
  /* Verhindert, dass das riesige Bild woanders drüberlappt */
}

.brand img {
  height: 320px; /* Massiv vergrößert, weil die Datei 90% leeren Rand hat */
  width: auto;
  object-fit: contain;
  margin: -132px 0 -108px 0; /* Das Logo 12px nach oben gerückt für die perfekte Linie */
  display: block;
}

.brand img.logo-dark {
  display: none !important;
}

.brand img.logo-light {
  display: block !important;
}

[data-theme="dark"] .brand img.logo-light {
  display: none !important;
}

[data-theme="dark"] .brand img.logo-dark {
  display: block !important;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--primary);
  background: var(--btn-hover-bg);
  /* Nutzt Variable */
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  /* Zwingt den Toggle ganz nach rechts */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--btn-hover-bg);
  color: var(--primary);
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s ease forwards;
}

.highlight {
  color: var(--primary);
}

.lead {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.cta {
  margin: 24px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--primary);
  font-weight: 700;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

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

.btn.ghost {
  color: var(--primary);
}

.btn.ghost:hover {
  background: var(--btn-hover-bg);
}

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--ring);
  /* Subtiler Rahmen für Dark Mode Glow */
}

.uc-hint {
  margin-top: 14px;
  color: var(--muted);
}

.features {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 8px;
}

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

@media (max-width: 1024px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  /* Etwas runder für modernen Look */
  padding: 24px;
  /* Mehr Whitespace in den Karten */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Weicherer Schatten */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  /* Stärkerer Schatten im Dark Mode */
}

.card h3 {
  margin: 8px 0 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.future {
  padding: 20px 0 50px;
}

.future h2 {
  text-align: center;
  margin: 10px 0 6px;
}

.future-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.future-list li {
  background: var(--card);
  /* Nutzt Variable für Dark Mode */
  border: 1px solid var(--ring);
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 12px;
}

.site-footer {
  background: var(--card);
  /* Nutzt Variable für Dark Mode */
  border-top: 1px solid var(--ring);
  padding: 32px 0;
  /* Mehr Spacing im Footer */
  text-align: center;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.small-heading {
  font-size: 1rem;
  color: var(--muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
}

.contact-form label {
  font-weight: bold;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid var(--ring);
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 4px var(--primary);
}

.g-recaptcha {
  margin: 8px 0;
}

.hidden-field {
  display: none;
}

.cookie-banner {
  display: none;
  /* Standard: versteckt */
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: var(--card);
  /* Nutzt Variable */
  border: 1px solid var(--primary);
  /* Im Darkmode blauer Rahmen für Fokus */
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 940px;
  margin: 0 auto;
}

.cookie-banner.show {
  display: flex;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: none;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

#open-consent {
  cursor: pointer;
}

#open-consent {
  cursor: pointer;
}

/* Entfernt da es schon oben im :hover abgedeckt ist (.top-nav a:hover, .top-nav a.active) */

.hidden-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}


/* Clickable cards */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover,
.card-link:focus {
  transform: translateY(-5px);
  /* Etwas mehr Lift */
  box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
  border-color: var(--primary);
  /* Rahmen wird blau bei Hover */
  outline: none;
}

[data-theme="dark"] .card-link:hover,
[data-theme="dark"] .card-link:focus {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(14, 165, 233, 0.2);
  /* Blauer Glow */
}

.card-link:focus {
  box-shadow: 0 0 0 3px rgba(0, 119, 182, .4), 0 10px 24px rgba(0, 0, 0, .1);
}

/* =========================
   BRAND (Logo)
   ========================= */

/* Optional: etwas weniger "hoch" im Header */
.site-header .brand {
  padding: 0;
}

/* =========================
   RESPONSIVE HEADER/NAV
   ========================= */
@media (max-width: 700px) {
  .site-header .row {
    flex-wrap: wrap;
  }

  .top-nav {
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    padding-bottom: 10px;
    align-items: center;
  }

  .top-nav a {
    margin-left: 0;
    padding: 8px 10px;
  }

  .theme-toggle {
    margin-left: auto;
    /* Push Switcher to the right on mobile */
  }
}

/* =========================
   LIGHTBOX MODAL (PROJEKTE)
   ========================= */
.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none !important;
}

.modal-content {
  background: var(--card);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ring);
}

.modal-content img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: contain;
  max-height: 55vh;
  background: var(--bg);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--primary);
}