/* ==========================================================
   raantec GmbH – Website
   Design-System-Tokens siehe Abschnitt oben in :root
   ========================================================== */

/* Inter wird lokal ausgeliefert (assets/fonts) statt von Google Fonts geladen –
   damit werden beim Seitenaufruf keine Nutzerdaten an Google übertragen. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-800.woff2') format('woff2'); }

:root {
  --color-primary: #3E5D9A;      /* helles Logo-Blau */
  --color-secondary: #1C3760;    /* dunkles Marineblau, Header/Footer/Tabellenkoepfe */
  --color-accent: #F4962C;       /* Orange */
  --color-accent-dark: #D97F17;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F6F9;
  --color-text: #22252B;
  --color-text-muted: #5B6270;
  --color-border: #E1E4EC;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(28, 55, 96, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--color-secondary);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 16px; color: var(--color-text); }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  border-bottom: none !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-accent-dark); color: #fff !important; }

.nav-toggle { display: none; }

/* ---------- Produkte dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-block; }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: flex; }
.nav-dropdown-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: none;
  white-space: nowrap;
}
.nav-dropdown-panel a:hover { background: var(--color-bg-soft); color: var(--color-primary); border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-link { color: var(--color-primary); font-weight: 700; }
.btn-link:hover { color: var(--color-accent); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding: 72px 0 56px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-tagline { font-weight: 600; color: var(--color-primary); }

/* ---------- Section shells ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-secondary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C9D3E4; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature / service tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tile.tile-secondary { box-shadow: none; background: var(--color-bg-soft); }
.tile-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.tile h3 { margin-bottom: 4px; }
.tile p { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 14px; flex-grow: 1; }
.tile-action-cta { display: inline-block; }

/* ---------- Photo tiles (Startseite Produkt&uuml;bersicht) ---------- */
.photo-tile-grid { display: grid; gap: 22px; }
.photo-tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
/* Einheitliche Bildhoehe fuer alle Kacheln (2er- und 3er-Reihe), damit die oberen Bilder nicht groesser wirken als die unteren */
.photo-tile-img { height: 260px; overflow: hidden; }
.photo-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.photo-tile-body h3 { margin-bottom: 6px; }
.photo-tile-body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 16px; flex-grow: 1; }
.photo-tile-action { display: inline-block; align-self: flex-start; }
.photo-tile-action { display: inline-block; align-self: flex-start; }

/* USP tiles (5-across, zerspanung) */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.usp-tile { text-align: center; padding: 20px 14px; }
.usp-tile .tile-icon { margin: 0 auto 10px; }

/* ---------- Badges / chips / tags ---------- */
.badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}
.chip-accent { border-color: var(--color-accent); color: var(--color-accent-dark); background: #FFF4E8; }

/* ---------- Placeholder photo blocks (echtes Foto folgt) ---------- */
.ph-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, #E7ECF5, #E7ECF5 10px, #DEE4F0 10px, #DEE4F0 20px);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--color-border);
}
.ph-photo span {
  display: block;
  background: rgba(28,55,96,0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  margin: 12px;
  border-radius: 6px;
}
.ph-photo.tall { min-height: 340px; }
.ph-photo.short { min-height: 150px; }

/* ---------- Real photos ---------- */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { min-height: 340px; }
.photo-caption {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}
.video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #000;
}
.video-embed video { width: 100%; height: auto; display: block; }

/* ---------- YouTube-Einbettung (responsive 16:9) ---------- */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: #000;
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-caption {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* ---------- Schmale Sprungnavigation (In-Page-Buttons) ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 16px 0 8px;
}
.subnav a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.subnav a:hover,
.subnav a:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
@media (max-width: 640px) {
  .subnav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* ---------- Prozess-Schritte (Stepper) ---------- */
.step-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 0; }
@media (max-width: 900px) { .step-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .step-list { grid-template-columns: 1fr; } }

/* ---------- Feature-Listen (Hauptmerkmale / Ausstattungsoptionen) ---------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.feature-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.94rem;
  color: var(--color-text);
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
}
.feature-list strong { color: var(--color-secondary); }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.hero-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 0;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}
.hero-banner img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-row .photo { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .photo-row { grid-template-columns: 1fr; } }

/* ---------- Quote / promise band ---------- */
.promise-band { background: var(--color-bg-soft); border-radius: var(--radius); padding: 36px; }
.promise-band blockquote {
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
  font-size: 1.05rem;
  color: var(--color-text);
}
.promise-band blockquote:last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th {
  background: var(--color-secondary);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.94rem;
}
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- Cards (Referenzen / Kompetenzen) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.card-body { padding: 20px; }
.card-tag { font-size: 0.75rem; font-weight: 700; color: var(--color-accent-dark); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }

/* ---------- Kontakt / Ansprechpartner ---------- */
.contact-info-box {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--color-border);
}
.contact-info-box .row { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-info-box .row strong { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #C9D3E4; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-secondary); color: #C9D3E4; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #C9D3E4; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.footer-logo { height: 30px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom a { color: #C9D3E4; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---------- Legal page ---------- */
.legal-content h3 { margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.small-note { font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-tile-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .photo-tile-img { height: 220px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .tile-grid, .card-grid, .footer-grid, .photo-tile-grid { grid-template-columns: 1fr !important; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .nav-dropdown-panel {
    position: static;
    display: flex !important;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    min-width: 0;
  }
}


/* ---------- Sprachumschalter DE | EN ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-switch .lang-current,
.main-nav .lang-switch a {
  padding: 7px 11px;
  border-bottom: none;
}
.lang-switch .lang-current { background: var(--color-secondary); color: #fff; }
.main-nav .lang-switch a { color: var(--color-text-muted); }
.main-nav .lang-switch a:hover { background: var(--color-bg-soft); color: var(--color-primary); border-bottom: none; }

/* Menü-Button nur auf dem Handy anzeigen (.btn überschrieb display:none) */
.site-header .nav-toggle { display: none; }
@media (max-width: 640px) { .site-header .nav-toggle { display: inline-flex; } }
