/*
 * style_masterpiece.css
 *
 * A modern, elegant redesign of the original meditec landing page.
 * This stylesheet defines a comprehensive layout with responsive
 * navigation, parallax hero header, feature cards with optional
 * details, a scroll-snap carousel for product categories, a contact
 * form with select dropdowns and a polished footer. The colour
 * palette preserves the original blue tone while introducing a
 * complementary accent colour. Care has been taken to ensure
 * graceful degradation on older browsers and accessibility for
 * assistive technologies.
 */

/* Colour palette variables */
:root {
  --primary: #0a3d62;          /* deep meditec blue */
  --primary-dark: #07325a;     /* darker shade for footer */
  --accent: #006266;           /* greenish accent (from original CTA) */
  --light-bg: #f7fbff;         /* light background for alternating sections */
  --text-color: #222;          /* base text colour */
  --heading-color: var(--primary);
}

/* === Service/Tech Tokens === */
:root{
  --tech-grid: 22px;                 /* Rasterweite */
  --tech-grid-alpha: .045;           /* Linienintensität */
  --tech-ink: #0d4e7a;               /* Blau (Schaltplan) */
  --tech-ink-2: #006266;             /* Akzent (grünlich) */
  --tech-bg-1: #f7fbff;              /* helle Fläche */
  --tech-bg-2: #eef6ff;              /* Verlauf zu kühlerem Blau */
}
@media (min-width:1600px){ :root{ --tech-grid: 24px; } }











/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--accent);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header and navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(10, 61, 98, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
  display: flex;                 /* mobil: flex, Desktop wird unten zu Grid überschrieben */
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0.2rem;
  display: block;
}

.nav-list li:hover > a,
.nav-list li:focus-within > a {
  text-decoration: underline;
}

/* Dropdown menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 200px;
  background: var(--primary);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  z-index: 500;
  list-style: none; /* remove default bullets */
}

.nav-list li:hover > .dropdown-menu,
.nav-list li:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: #fff;
  display: block;
}
.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.1);
}

/* == Einheitliche Header-Höhe & kein Umbruch (Desktop) == */
:root{
  --header-height-desktop: 64px; /* bei Bedarf 60–72px feinjustieren */
  --header-height-mobile: 56px;
}

@media (min-width: 769px){
  header{
    height: var(--header-height-desktop);
  }

  /* Header-Layout: 3-Spalten-Grid → Logo | Nav | Lang */
  .header-container{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--header-height-desktop);
    padding-top: 0;
    padding-bottom: 0;
    gap: 1rem;
  }

  /* Logo links verankern */
  .logo{ justify-self: start; }
  .logo img{
    max-height: calc(var(--header-height-desktop) - 16px);
    height: auto; width: auto; display: block;
  }

  /* Navigation exakt mittig */
  nav{
    justify-self: center;
    flex: initial;              /* frühere Flex-Weiten neutralisieren */
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  /* Sprachschalter ganz rechts */
  .lang-switch{
    justify-self: end;
    margin-left: 0;             /* evtl. frühere auto- oder linke Abstände neutralisieren */
  }

  /* Nav darf nicht umbrechen */
  .nav-list{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;          /* kein Umbruch */
    white-space: nowrap;        /* Sicherheit */
    gap: 1.25rem;
  }
  .nav-list > li{
    display: flex; align-items: center;
  }
  .nav-list > li > a{
    display: flex; align-items: center;
    height: calc(var(--header-height-desktop) - 16px); /* vertikal mittig */
    line-height: 1;
    padding: 0 .2rem;           /* kompakt, verhindert Höhenzuwachs */
  }

  /* Dropdown darf die Header-Höhe nicht beeinflussen */
  header .dropdown-menu{
    position: absolute;
    top: 100%; left: 0;
    margin-top: .25rem;         /* kleiner Abstand nach unten */
  }

  /* Aktiver Link: Markierung ohne Layoutsprung (kein Bold) */
  .nav-list a[aria-current="page"]{
    text-decoration: underline;
    font-weight: 500;           /* identisch zu normal → keine Höhenänderung */
  }
}

/* Mobile: konsistente Höhe */
@media (max-width: 768px){
  header{ height: var(--header-height-mobile); }
  .header-container{
    height: var(--header-height-mobile);
    padding-top: 0; padding-bottom: 0;
  }
  .logo img{
    max-height: calc(var(--header-height-mobile) - 12px);
  }
}

/* Language switcher */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switch a { 
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;          /* verhindert Umbruch von DE/EN/FR */
}

.lang-switch a:hover {
  background-color: rgba(255,255,255,0.2);
}

.lang-switch a.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  nav.open {
    transform: translateX(0);
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .nav-list li a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  /* Hide dropdowns by default; they expand when parent li has .open */
  .dropdown-menu {
    position: static;
    background: none;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  .nav-list li.open > .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    padding: 0.5rem 0;
  }
  .lang-switch {
    margin-top: 1.5rem;
  }
}


/* Hero section */
.hero {
  position: relative;
  /* global verkürzt: ~25% weniger als volle Höhe */
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url('../img/meditec_Gebaude-1920.jpg');
  background-size: cover;
  background-position: center top; /* Motiv oben ausrichten */
  background-attachment: fixed;
}

@media (max-width: 768px){
  .hero { min-height: 70vh; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1.5rem;
  color: #e0e5ec;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #008878;
  transform: translateY(-2px);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn.small {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

/* Quicklinks unter dem Hero-Text */
.hero-quicklinks {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center; /* Buttons mittig ausrichten */
}

.hero-quicklinks .btn {
  padding: 0.6rem 1rem;   /* etwas kompakter als die Hauptbuttons */
  font-weight: 600;
}

/* Hero-Quicklinks doppelt so groß */
.hero-quicklinks {
  gap: 0.75rem;                 /* etwas mehr Abstand zwischen den Buttons */
}

.hero-quicklinks .btn {
  padding: 1.1rem 2rem;         /* deutlich mehr Fläche */
  font-size: 1.25rem;           /* größere Schrift */
  line-height: 1.2;
  border-radius: 0.75rem;       /* optisch massiver */
  min-height: 30px;             /* komfortables Klickziel */
}

/* Optional: am großen Desktop noch eine Spur größer */
@media (min-width: 1200px) {
  .hero-quicklinks .btn {
    padding: 1.2rem 2.2rem;
    font-size: 1.35rem;
  }
}

/* Section styling */
section {
  padding: 4rem 0;
}

.leistungen {
  background: var(--light-bg);
  text-align: center;
}

.leistungen h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.leistungen p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  color: #555;
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* == Kunden-Kacheln: exakt 4 Spalten, mittig, gleiche Höhe == */
.product-categories .card-grid {
  display: grid; /* nur zur Sicherheit */
  grid-template-columns: repeat(4, minmax(260px, 320px));
  gap: 2rem;
  justify-content: center;    /* gesamte Spaltengruppe zentrieren */
  align-items: stretch;       /* alle Grid-Items gleiche Höhe */
}

.product-categories .product-card {
  box-sizing: border-box;
  width: 100%;
  max-width: none;            /* füllt die zugewiesene Grid-Spalte */
  min-width: 0;               /* überschreibt globales min-width:280px */
  height: 100%;               /* gleiche Höhe wie die Nachbarn */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;/* kein space-between → vermeidet „Hängen“ */
}

/* Call-to-Action immer bündig unten → gleiche optische Höhe */
.product-categories .product-card .btn.small {
  margin-top: auto;
}

/* Responsive: unterhalb breiter Desktops automatisch auf 2/1 Spalten */
@media (max-width: 1200px) {
  .product-categories .card-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .product-categories .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature cards (legacy/new pattern) */
.feature-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature-card .icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.feature-card p {
  flex: 1 1 auto;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/*
  Legacy support: Many pages still use older class names `.service-cards` and `.card`. To ensure
  these sections match the new design aesthetic, align them with the new grid and card styles.
  `.service-cards` will behave like `.card-grid`, and `.card` will inherit the same look and
  behaviour as `.feature-card`.
*/
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-card details {
  width: 100%;
}
.feature-card summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 0.25rem;
  position: relative;
  list-style: none;
}
.feature-card summary::marker {
  content: '';
}
.feature-card summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.feature-card details[open] summary::after {
  transform: rotate(45deg);
}
.feature-card details > p {
  margin-top: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

/* === Service-Karten – Variante A: Design-Variablen === */
:root{
  --brand-blue: #0d4e7a;          /* Primärblau */
  --card-bg: #f7fbff;             /* sehr helles Blau */
  --card-border: #e1eef7;
  --card-shadow: 0 6px 18px rgba(13,78,122,.10);
  --card-shadow-hover: 0 10px 28px rgba(13,78,122,.16);
}

/* === Utility: Variante A als wiederverwendbare Klasse === */
.cards-elevated {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cards-elevated .card{
  position: relative;
  background:
    linear-gradient(180deg, rgba(13,78,122,.04), rgba(13,78,122,0) 60%),
    var(--card-bg, #f7fbff);
  border: 1px solid var(--card-border, #e1eef7);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--card-shadow, 0 6px 18px rgba(13,78,122,.10));
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.cards-elevated .card h3{
  color: var(--brand-blue, #0d4e7a);
  font-weight: 800;
  letter-spacing: .2px;
  margin: .2rem 0 .6rem;
}

.cards-elevated .card p{
  margin: .45rem 0;
  color: #213547;
}

.cards-elevated .card:hover{
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover, 0 10px 28px rgba(13,78,122,.16));
  border-color: rgba(13,78,122,.25);
}

.cards-elevated .card:focus-within{
  outline: 2px solid rgba(13,78,122,.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  .cards-elevated .card{ transition: none; }
}

/* Spezialregeln, die bleiben sollen */
/* Details-Link unten mittig NUR in #bereiche */
#bereiche .service-cards .card{ display:flex; flex-direction:column; }
#bereiche .service-cards .card .btn{
  margin-top:auto; align-self:center; text-align:center;
}

/* Listen-Optik in Paketen */
#pakete .card ul{ margin:.4rem 0 0; padding-left:1.2rem; color:#213547; }
#pakete .card li{ margin:.25rem 0; }

/* Product categories carousel */
.product-categories {
  background: #fff;
  text-align: center;
}

.product-categories h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar {
  height: 8px;
}
.carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

.product-card {
  background: var(--light-bg);
  border: 1px solid #eaeaea;
  border-radius: 6px;
  min-width: 280px;
  padding: 2rem 1.5rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: var(--primary);
}
.product-card p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}

/* Call to action section */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #e8eaf6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact form */
.contact-section {
  background: var(--light-bg);
  text-align: center;
}
.contact-section h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
.contact-section p {
  color: #555;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}
.contact-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
/* A full-width grid item to center content (e.g. submit button) */
.contact-form .form-group.full {
  grid-column: span 2;
  text-align: center;
}
/* Centre the button within its parent */
.contact-form .form-group.full button {
  margin-top: 0.5rem;
}
@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form .btn {
    grid-column: span 1;
  }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-section h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}
.footer-section a {
  color: #fff;
  font-size: 0.9rem;
}
.footer-section a:hover {
  text-decoration: underline;
}
.footer-section .icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-section .icon svg {
  width: 100%;
  height: 100%;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.footer-social a {
  color: #fff;
  font-size: 1.4rem;
}
.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1500;
}
.back-to-top.show {
  display: flex;
}
.back-to-top:hover {
  background: #00a6a6;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.hero h3 {
  font-style: italic;
  color: #fff;
  text-shadow:
    0 0 5px rgba(255,255,255,0.5);
}
.hero p {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}


/* === Dropdown: Hover-Gap fix (Desktop) === */
@media (min-width: 769px){
  /* 1) Kein vertikaler Abstand zwischen Trigger und Menü */
  header .dropdown-menu{
    top: 100%;
    left: 0;
    margin-top: 0 !important;   /* überschreibt evtl. frühere .25rem */
    z-index: 999;               /* sicher über dem Header */
  }

  /* 2) Unsichtige "Hover-Brücke" zwischen Link und Menü */
  .nav-list li{
    position: relative;
  }
  .nav-list li:hover::after,
  .nav-list li:focus-within::after{
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 10px;               /* Brücke füllt den bisherigen Zwischenraum */
  }

  /* 3) Optional: etwas Innenabstand im Menü statt äußerem Gap */
  .dropdown-menu{
    padding-top: 6px;           /* optische Luft nach unten */
  }

  /* 4) Anzeigen auf Hover/Focus bleibt wie gehabt – hier nur zur Sicherheit */
  .nav-list li:hover > .dropdown-menu,
  .nav-list li:focus-within > .dropdown-menu{
    display: block;
  }
}

/* ===== Section Head – Basis + Variante A ===== */
.section-head{
  max-width: 1100px;
  margin: 0 auto 1.25rem;
}
.section-head .kicker{
  display:inline-block;
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--accent, #0d4e7a);
  margin-bottom:.25rem;
}
.section-head .title{
  margin:.1rem 0 .35rem;
  color: var(--text-strong, #102530);
  font-weight:900;
  letter-spacing:.2px;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
}
.section-head .lead{
  margin:0;
  color: var(--text-soft, #445766);
  line-height:1.55;
  max-width: 78ch;
}

/* Variante A: Underline-Gradient */
.section--A .title{
  position:relative;
  padding-bottom:.35rem;
}
.section--A .title::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width: clamp(140px, 18vw, 260px); height: 3px;
  background: linear-gradient(90deg, rgba(13,78,122,.9), transparent 85%);
  border-radius:3px;
}

/* kleine Hover-Animation (respektiert Reduced Motion) */
@media (prefers-reduced-motion: no-preference){
  .section--A .title::after{ transform-origin:left; transform: scaleX(.85); transition: transform .35s ease; }
  .section--A:hover .title::after{ transform: scaleX(1); }
}









/* === Hero Tech (Blueprint + Scanline) === */
.hero.hero--tech{
  background-blend-mode: overlay;
}
.hero.hero--tech::before{
  background:
    linear-gradient(180deg, rgba(2,20,32,.45), rgba(2,20,32,.45)),
    linear-gradient(180deg, rgba(13,78,122,.35), transparent 60%),
    linear-gradient(to right, rgba(13,78,122,.05) 1px, transparent 1px) 0 0/var(--tech-grid) var(--tech-grid),
    linear-gradient(to bottom, rgba(13,78,122,.05) 1px, transparent 1px) 0 0/var(--tech-grid) var(--tech-grid);
}
@media (prefers-reduced-motion: no-preference){
  .hero.hero--tech::after{
    content:""; position:absolute; left:0; right:0; top:-10%;
    height:40%; pointer-events:none;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.08), transparent);
    filter: blur(12px);
    animation: techSweep 6s cubic-bezier(.2,.7,0,1) infinite;
  }
  @keyframes techSweep{
    0%{ transform: translateY(0); opacity:.0; }
    10%{ opacity:.6; }
    50%{ transform: translateY(160%); opacity:.2; }
    100%{ transform: translateY(180%); opacity:0; }
  }
}


/* === Tech Surface: kühle Fläche + Micro-Grid im Container === */
.tech-surface{
  position:relative; border-radius: 16px;
  background:
    linear-gradient(to right, rgba(13,78,122,var(--tech-grid-alpha)) 1px, transparent 1px) 0 0/var(--tech-grid) var(--tech-grid),
    linear-gradient(to bottom, rgba(13,78,122,var(--tech-grid-alpha)) 1px, transparent 1px) 0 0/var(--tech-grid) var(--tech-grid),
    linear-gradient(180deg, var(--tech-bg-1), var(--tech-bg-2));
  box-shadow: 0 8px 24px rgba(13,78,122,.08);
  padding: 2rem;
}
.tech-surface::after{
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: radial-gradient(120% 60px at 50% 0, transparent 60%, rgba(13,78,122,.08));
}


/* === Card: Schematic (Ecken + Top-Leiste) === */
.card--tech{
  background: #fff;
  border: 1px solid #e1eef7;
  border-radius: 14px;
  padding-top: 1.6rem;
  box-shadow: 0 6px 18px rgba(13,78,122,.08);
  position: relative;
}
.card--tech::before{
  content:""; position:absolute; left:0; right:0; top:0; height:6px; border-radius:14px 14px 0 0;
  background: linear-gradient(90deg, var(--tech-ink), var(--tech-ink-2));
}
.card--tech::after{
  content:""; position:absolute; right:10px; bottom:10px; width:26px; height:26px;
  background:
    radial-gradient(circle at 100% 0, var(--tech-ink) 3px, transparent 4px) top right/50% 50% no-repeat,
    radial-gradient(circle at 100% 100%, var(--tech-ink) 3px, transparent 4px) bottom right/50% 50% no-repeat;
  opacity:.14;
}
.card--tech h3{ color: var(--primary); font-weight: 800; margin-bottom:.35rem; }
.card--tech p{ color:#2b3a44; }


/* === Chips (Normen, SLA, Labels) === */
.chips{ display:flex; gap:.5rem; flex-wrap:wrap; margin:.25rem 0 .75rem; }
.chip{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.2rem .6rem; border-radius:999px; font-size:.78rem; font-weight:700;
  border: 1px solid color-mix(in lab, var(--tech-ink) 50%, white);
  background: linear-gradient(180deg, #fff, #f5fbff);
  color: var(--tech-ink);
}
.chip::before{
  content:""; width:.5rem; height:.5rem; border-radius:50%;
  background: var(--tech-ink-2);
}


/* === Stepper (Service-Ablauf) === */
.stepper{ counter-reset: step; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:1.5rem; }
.step{
  position:relative; padding:1rem 1rem 1rem 3.2rem; border:1px dashed #cfe3f2; border-radius:12px; background:#fff;
}
.step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position:absolute; left:.9rem; top:.9rem; width:2rem; height:2rem; border-radius:50%;
  display:grid; place-items:center; font-weight:800;
  background: linear-gradient(180deg, var(--tech-ink), var(--tech-ink-2)); color:#fff;
  box-shadow: 0 3px 8px rgba(13,78,122,.25);
}
.step h4{ margin:.2rem 0 .3rem; font-weight:800; color: var(--primary); }
.step p{ margin:0; color:#2b3a44; font-size:.95rem; }


/* === Mono-Meta === */
.meta{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size:.86rem; letter-spacing:.02em; color:#445766;
}
