/* ==========================================================================
   TechBahn Landingpage – Styles
   Farben: Navy #0F2038 (Haupt), Teal #06B6A4 (Akzent), Amber #FFB020 (Highlight)
   ========================================================================== */

:root {
  --navy: #0F2038;
  --navy-light: #1A3358;
  --teal: #06B6A4;
  --teal-dark: #059485;
  --amber: #FFB020;
  --white: #FFFFFF;
  --grey-50: #F7F9FB;
  --grey-100: #EEF2F6;
  --grey-300: #CBD5DF;
  --grey-600: #55647A;
  --text: #16233A;

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

  --max-width: 1120px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 32, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 32, 56, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--grey-600); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.logo:hover, .logo:focus { text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch .lang-link {
  color: var(--grey-600);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.lang-switch .lang-link:hover,
.lang-switch .lang-link:focus-visible {
  text-decoration: none;
  color: var(--navy);
}

.lang-switch .lang-link.active {
  color: var(--navy);
  background: var(--grey-100);
}

.lang-switch .lang-sep {
  color: var(--grey-300);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span { background: var(--white); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: var(--navy);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 5rem 1.5rem 2rem;
}
.primary-nav.is-open { transform: translateX(0); }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.primary-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

.primary-nav .nav-cta {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 6px 16px rgba(255, 176, 32, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.12);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 32, 56, 0.68) 0%, rgba(15, 32, 56, 0.52) 42%, rgba(15, 32, 56, 0.32) 100%);
  z-index: -1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.eyebrow-center { text-align: center; }

.hero h1 { color: var(--white); }

.hero-lead {
  color: var(--grey-300);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.app-preview {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.app-preview-illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.35));
}

/* ---------- Sections (generic) ---------- */
.section { padding: 3.5rem 0; }
.section-title { margin-bottom: 0.75rem; }
.section-title.center { text-align: center; }
.section-lead.center {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.problem { background: var(--grey-50); }

/* ---------- App-Vorschau ---------- */
.app-vorschau-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.app-vorschau-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--grey-600);
  font-size: 0.95rem;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(6, 182, 164, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { margin: 0; }

/* ---------- Warum TechBahn ---------- */
.warum { background: var(--navy); color: var(--white); }
.warum .eyebrow { color: var(--amber); }
.warum h2 { color: var(--white); }

.warum-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

.moat-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.moat-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.moat-list strong { color: var(--teal); }
.moat-list span { color: var(--grey-300); }

.warum-visual {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.warum-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Über uns ---------- */
.ueber-uns-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.ueber-uns-photo {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}

.ueber-uns-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ueber-uns-content { text-align: left; }

.founder-byline {
  margin-bottom: 1.25rem;
}

.founder-byline-name {
  display: block;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
}

.founder-byline-text {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--grey-600);
}

/* ---------- Kontakt ---------- */
.kontakt { background: var(--grey-50); }

.kontakt-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(6, 182, 164, 0.18);
}

.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-consent input { margin-top: 0.25rem; }
.form-consent label { font-weight: 400; color: var(--grey-600); font-size: 0.9rem; }

.contact-form .btn { align-self: flex-start; }

.form-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-status.success { color: var(--teal-dark); }
.form-status.error { color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--grey-300);
  padding: 2.5rem 0 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--grey-300); }

.footer-copy { font-size: 0.85rem; margin: 0; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-content { padding-top: 2.5rem; }

.legal-container {
  max-width: 720px;
}

.legal-container h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

.legal-container h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal-container p {
  margin-bottom: 1.1rem;
}

.legal-container .legal-list {
  color: var(--grey-600);
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.legal-container .legal-list li {
  margin-bottom: 0.4rem;
}

.legal-beta-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--amber);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-left: 0.6rem;
}

.legal-placeholder {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.legal-placeholder summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
}
.legal-placeholder p {
  color: var(--grey-300);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (min-width: 560px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .ueber-uns-inner {
    flex-direction: row;
    align-items: center;
  }
  .ueber-uns-photo { flex: 0.9; }
  .ueber-uns-content { flex: 1.1; }
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }

  .kontakt-inner { flex-direction: row; }
  .kontakt-intro { flex: 1; }
  .contact-form { flex: 1.2; }

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

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    background: none;
    transform: none;
    padding: 0;
    width: auto;
  }

  .primary-nav ul { flex-direction: row; align-items: center; gap: 2rem; }
  .primary-nav a { color: var(--navy); font-size: 0.95rem; }
  .primary-nav .nav-cta { color: var(--navy); }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-content { flex: 1.1; }
  .hero-visual { flex: 0.9; }

  .warum-inner {
    flex-direction: row;
    align-items: center;
  }
  .warum-inner > div:first-child { flex: 1.1; }
  .warum-visual { flex: 0.9; }
}

@media (min-width: 1100px) {
  .section { padding: 5rem 0; }
  .hero { padding: 4.5rem 0 5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
