/* ============================================
   DIGITAL HEAD — Warm Institutional Design
   Trustworthy, approachable, modern
   ============================================ */

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

/* --- Design Tokens --- */
:root {
  --color-bg: #fdfbf7;
  /* Official Gov.Tech Off-White */
  --color-text: #000000;
  /* Deep Black for absolute contrast */
  --color-text-secondary: #595950;
  --color-border: #e9e9e6;
  /* Visible Grid Lines */

  /* Interaction Pop (Hybrid Element) */
  --color-accent: #000000;
  --color-accent-pop: #528579;
  /* Muted Teal-Green Hover */
  --color-accent-light: #e8f1f5;

  --color-card-bg: transparent;
  --color-btn-bg: #f0f2f4;
  --color-btn-hover: var(--color-accent-pop);

  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale: Massive Headlines vs Tiny Meta */
  --font-size-hero: clamp(3.5rem, 8vw, 7rem);
  /* Massive */
  --font-size-h3: clamp(2rem, 3vw, 3rem);
  --font-size-h5: clamp(1rem, 1.5vw, 1.5rem);
  --font-size-body: clamp(1.05rem, 1.2vw, 1.25rem);
  --font-size-small: 0.875rem;
  /* Strict, small meta */
  --font-size-nav: 1rem;

  /* Structure: Wide & Strict */
  --container-max: 1600px;
  --nav-height: 90px;
  --section-padding: clamp(80px, 10vw, 160px);
  /* Massive whitespace */

  /* Brutalist Reset */
  --radius-sm: 0px;
  --radius-md: 0px;

  --shadow-card: none;
  --shadow-hover: none;

  --transition: 0.3s ease;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.25;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  /* Breathing room even inside max-width */
}

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

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: opacity, transform;
}

.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;
}

/* --- Button (gov.tech style: small, gray, rectangular) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: var(--font-size-nav);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-btn-bg);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
  line-height: 1.25;
}

.btn:hover {
  background: #cdd3da;
  transform: translateY(-1px);
}

.btn .arrow {
  font-size: 1.2em;
  transition: transform 0.3s var(--ease-out-expo);
}

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

/* ... (omitting irrelevant parts) ... */

.news-item {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: start;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.news-item:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateX(4px);
}

/* ============================================
   NAVIGATION (gov.tech style)
   ============================================ */
/* ============================================
   NAVIGATION (Transparent)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  /* Removed subtle line */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

/* Navigation Inner */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 20px 0 0;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  color: #ffffff;
  text-transform: uppercase;
  /* Gov.Tech vibe */
}

.nav.scrolled .nav-logo {
  color: var(--color-text);
}

.nav-logo .logo-icon {
  width: 96px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.875rem;
  /* Smaller, sharper */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-accent-pop);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nav.scrolled .nav-links a {
  color: var(--color-text);
}

.nav.scrolled .nav-links a:hover {
  color: var(--color-accent-pop);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform var(--transition), opacity 0.15s ease, background-color 0.3s ease;
}

.nav.scrolled .nav-hamburger span {
  background: var(--color-text);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO (gov.tech: enormous headline, left-aligned)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  padding-bottom: 64px;
  /* Increased padding to clear video transition */
  position: relative;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient Fade to Bottom */
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  /* Smoother fade - increased from 30% */
  background: linear-gradient(to bottom, rgba(253, 251, 247, 0) 0%, rgba(253, 251, 247, 0.4) 50%, #fdfbf7 100%);
  pointer-events: none;
}

.hero-content {
  max-width: 90%;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  opacity: 1;
}

/* ============================================
   INTRO / SUBHERO (text + video)
   ============================================ */
.intro {
  padding: var(--section-padding) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.intro-text {
  max-width: 70%;
  /* Asymmetry: 70/30 split */
}

.intro-text h5 {
  font-size: var(--font-size-h5);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text);
}



/* --- PILLARS / SERVICES (Corporate Brutalism) --- */
.pillars {
  padding: 0;
  /* Full bleed */
  border-bottom: 1px solid var(--color-border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* Borders handle separation */
  width: 100%;
}

.pillar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--section-padding) 40px;
  /* Massive internal spacing */
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  transition: background-color 0.1s ease, color 0.1s ease;
  min-height: 400px;
}

.pillar:nth-child(3) {
  border-right: none;
  /* Last item in row on desktop */
}

/* Hover POP Effect */
.pillar:hover {
  background: var(--color-accent-pop);
  cursor: pointer;
}

.pillar:hover h3,
.pillar:hover p,
.pillar:hover .pillar-label,
.pillar:hover .btn {
  color: #ffffff;
  /* Invert to white */
}

.pillar:hover .pillar-label {
  background: transparent;
}

/* Content Styling */
.pillar-label {
  font-size: var(--font-size-small);
  font-family: monospace;
  /* Tech feel */
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  display: block;
}

.pillar h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  /* Heavy */
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-text);
}

.pillar p {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 90%;
}

.pillar .btn {
  background: transparent;
  padding: 0;
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar:hover .btn .arrow {
  transform: translateX(10px);
  filter: invert(1);
  /* Ensure arrow is white */
}

/* --- STATS (Corporate Brutalism) --- */
.stats {
  padding: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

.stat-item {
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--section-padding) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Left align */
  transition: background-color 0.1s ease;
  min-height: 300px;
}

.stat-item:nth-child(3) {
  border-right: none;
}

/* Hover POP Effect */
.stat-item:hover {
  background: var(--color-accent-pop);
  cursor: default;
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label,
.stat-item:hover .stat-label-top {
  color: #ffffff;
}

.stat-label-top {
  font-size: var(--font-size-small);
  font-family: monospace;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-number {
  font-size: clamp(4rem, 6vw, 6rem);
  /* Massive */
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  /* Black by default */
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: var(--font-size-body);
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================
   NEWS (gov.tech: simple rows with top border)
   ============================================ */
.news {
  padding: var(--section-padding) 0;
}

.news-header {
  margin-bottom: 24px;
}

.news-header h3 {
  font-size: var(--font-size-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: start;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.news-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.news-item:hover {
  background: rgba(0, 0, 0, 0.015);
  padding-left: 12px;
  padding-right: 12px;
}

.news-date {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.25;
}

.news-title {
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-text);
}

.news-tag {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.25;
}

/* ============================================
   CTA (gov.tech: simple, underlined text)
   ============================================ */
.cta {
  padding: var(--section-padding) 0;
}

.cta h3 {
  font-size: var(--font-size-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-contact a {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.25;
  transition: color var(--transition);
}

.cta-contact a:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   FOOTER (gov.tech: minimal, border-top)
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-left .footer-label {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  font-weight: 400;
}

.footer-left .footer-email a {
  font-size: var(--font-size-small);
  color: var(--color-text);
  font-weight: 400;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-right a {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.footer-right a:hover {
  color: var(--color-text);
}

.footer-copy {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

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

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
}

.mobile-menu a:hover {
  color: var(--color-text-secondary);
}

.mobile-menu .mobile-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pillars-grid {
    display: flex;
    flex-direction: column;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar h3 {
    margin-bottom: 8px;
  }

  .pillar p {
    margin-bottom: 16px;
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-content {
    max-width: 100%;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-left,
  .footer-right {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ============================================
   INNER PAGES (Impressum, Datenschutz, Artikel)
   ============================================ */
.page-main {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: var(--section-padding);
  min-height: 80vh;
}

.page-hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 64px;
}

.page-tag {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 20ch;
}

.page-meta {
  margin-top: 16px;
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* Prose — article/legal content */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.prose p {
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
}

.prose p.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.375rem);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 48px;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.prose ul li {
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 6px;
}

.prose a {
  color: var(--color-accent-pop);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  opacity: 0.75;
}

.prose .btn {
  margin-top: 48px;
  text-decoration: none;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.cta-grid h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-pop);
}

.form-submit {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: var(--font-size-body);
  font-weight: 600;
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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