/* =========================================
   Modern (light blue) Design 
   ========================================= */
/* :root {
  --bg: #ffffff;
  --text: #38445a;
  --muted: #5b6b7a;
  --line: #e8eef5;

  --primary: #4190cc;
  --primary-soft: #c9d4e2; 
  --primary-ink: #5fb2f1; 
  --primary-softer: #73aedb75; 
  --cta-background: #f3faffe0;

  --card: #f2f9fc;
  --shadow: 0 10px 30px rgba(21, 48, 88, .08);

  --radius: 14px;
  --radius-sm: 10px;

  --maxw: 1180px;

  /* Adjust to your real fixed-header height (logo + paddings) 
  --header-height: 96px;
} */





:root {
  --bg: #ffffff;
  --text: #38445a;
  --muted: #5b6b7a;
  --line: #e8eef5;

  --primary: #2267b0ea;
  --primary-soft: #b7cae2; /*#d5dbe6*/
  --primary-ink: #639fe0; 
  --primary-softer: #73aedb75; 
  --cta-background: #e9eff6;

  --card: #f2f9fc; /*#f7fbff;*/
  --shadow: 0 10px 30px rgba(21, 48, 88, .08);

  --radius: 14px;
  --radius-sm: 10px;

  --maxw: 1180px;

  /* Adjust to your real fixed-header height (logo + paddings) */
  --header-height: clamp(5vh, 10vh, 15vh);
}



/* =========================================
   Resets & Base
   ========================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; border-radius: var(--radius-sm); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}


@media (min-width: 1920px) {  /*scale better for large monitors*/
  .container {
    max-width: 1600px;
     margin: 0 auto;
  padding: 0 20px;
  }
}


/*scale font size based on display size */
html {
  font-size: clamp(16px, 0.4vw + 0.7rem, 22px);
}

/* Accessible skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 10px; padding: 8px 12px;
  background: var(--primary); color: #fff; border-radius: 8px; z-index: 10001;
}

:root {
  /* Platz nach oben reservieren für Anker-Scrolls */
  scroll-padding-top: calc(var(--header-height) +8px); /* die 8px sind „Luft“ */
}

/* Reserve space below fixed header (for non-anchored layouts) */
.page-offset { height: var(--header-height); }

/* =========================================
   Header & Navigation (fixed)
   ========================================= */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  background: #fafafae0; border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.nav {
  display: flex; align-items: center; gap: 24px; padding: 14px 0;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  font-weight: 500; font-size: 18px; letter-spacing: .7px;
}

.logo { /* Big logo: adjust if header becomes too tall */
  height: 110px; width: auto; display: inline-block; vertical-align: middle; margin-top: -5px; margin-left: 10px; max-height: 20vh; border-radius: 0;
}

nav { margin-left: auto; } /* push menu to the right */

.menu {
  display: flex; align-items: center; gap: 20px;
  list-style: none; margin: 0; padding: 0;
}

.menu a {
  display: inline-block; padding: 10px 12px;
  border-radius: 8px; color: var(--text); font-weight: 600;
}

/* Hover only on devices that actually support hover */
@media (hover: hover) {
  .menu a:hover { background: var(--primary-soft); }
}

/* Keyboard focus – accessible & not sticky after mouse click */
.menu a:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

/* Active nav item */
.menu a[aria-current="page"] { background: var(--primary); color: #fff; }

/* CTA button in nav */
.cta {
  padding: 10px 14px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-weight: 700; box-shadow: var(--shadow);
}
.cta:hover { background: var(--primary-ink); }

/* Burger button (mobile) */
.burger { display: none; background: none; border: none; padding: 10px; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Mobile menu */
@media (max-width: 880px) {
  .menu {
    display: none;
    position: fixed; left: 16px; right: 16px; top: var(--header-height);
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
    padding: 12px; flex-direction: column; gap: 8px; z-index: 10002;
  }
  .menu.open { display: flex; }
  .burger { display: block; }
  nav { margin-left: 0; }
}
/* =========================================
   Hero
   ========================================= */
.hero {
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr; /* Text 3/4, Logo 1/4 */
  align-items: start; /* Logo und Text oben bündig */
  gap: 2rem;
}


.hero h1 {
  color: #4f5766;
  font-size: 32px;
  margin-bottom: 24px;
  overflow-wrap: break-word;   /* moderne Variante */
  word-wrap: break-word;       /* Fallback für ältere Browser */
  hyphens: auto;     
}

.hero h2 {
  color: var(--primary);/*#4f5766;/*var(--primary);*/
  font-size: 20px;
  font-style: normal;
  margin-bottom: 20px;
  overflow-wrap: break-word;   /* moderne Variante */
  word-wrap: break-word;       /* Fallback für ältere Browser */
  hyphens: auto;               /* Silbentrennung, falls vom Browser unterstützt */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Text links, Bild rechts */
  gap: 30px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;   /* nur eine Spalte */
    text-align: center;           /* optional: Logo mittig */
  }

   .hero-content {
    grid-template-columns: 1fr;   /* nur eine Spalte */
    text-align: center;           /* optional: Logo mittig */
  }

  .hero-logo {
    margin-top: 16px;
    display: flex;
    justify-content: center;      /* Logo mittig */
  }

  .hero-logo img {
    max-width: 180px;             /* Logo darf schön groß sein */
    height: auto;
  }
}

/* =========================================
   Sections & Layout helpers
   ========================================= */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  /* Prevent anchor targets from hiding under the fixed header */
  scroll-margin-top: calc(var(--header-height) - 10px);
}

/*no line after first page-offset */
section:first-of-type { 
  border-top: none;
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 24px;
}
.section-head h2 { margin: 0; font-size: 32px; }
.kicker { color: var(--primary); font-weight: 700; letter-spacing: .2px; font-size: 18px; text-transform: uppercase; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; }

.card h3 i {
  margin-right: 0.5em;
  color: var(--primary)
}

.muted { color: var(--muted); }

.strip {
  background: var(--cta-background);
  border: 0px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 20px; align-items: center; justify-content: space-between;
}
.strip strong { font-size: 18px; }
@media (max-width: 720px) { .strip { flex-direction: column; align-items: flex-start; } }

/* =========================================
   Forms
   ========================================= */
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .full { grid-column: 1 / -1; }
label { font-weight: 600; }

input, textarea, select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--primary-soft); border-color: var(--primary);
}
textarea { min-height: 120px; resize: vertical; }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* =========================================
   Footer (2-column layout)
   ========================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  background: #f7f7f7e0;
  line-height: 2;
}

.footgrid {
  display: grid; gap: 20px;
  grid-template-columns: 2.4fr 2fr 0.8fr 1.4fr;
}
.footgrid h4 { margin: 0 0 8px; color: var(--text); }
.legal { font-size: 12px; margin-top: 18px; }

@media (max-width: 880px) { .footgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footgrid { grid-template-columns: 1fr; } }

/* =========================================
   Checklists (with checkmark bullets)
   ========================================= */
ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li {
  position: relative; padding-left: 28px; margin-bottom: 8px;
}

ul.checklist li::before {
  content: "\f00c"; /* Unicode für fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Solid = 900, Regular = 400 */
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
  color: #4190cc;
}

/* =========================================
   Cards (with fisheye bullets) - Kundenportal
   ========================================= */
.card2 {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card2 h3 { margin: 0 0 8px; }

.card2 h3 {
  position: relative;
  padding-left: 1.5em; /* Platz für das Icon links */
}

.card2 h3::before {
  content: "\f192"; /* Unicode für fa-circle-dot */
  font-family: "Font Awesome 6 Free";
  font-weight: 100; /* wichtig für Solid-Icons */
  font-size: 1.1em;
  color: #4190cc;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}


/* =========================================
   Kundenportal - Layout
   ========================================= */

/* 2-Spalten-Layout */
.portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* links 2/3, rechts 1/3 */
  gap: 2em;
  align-items: start;
  margin: 2em 0;
}

/* Textspalte */
.portal-text h2 {
  margin-top: 0;
  font-size: 1.8em;
  font-weight: 700;
}

/* CTA-Spalte (Card) */
.portal-cta {
  background: var(--cta-background);
  border: 1px solid #e0e6eb;
  border-radius: 12px;
  padding: 1.5em;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 10px;
}

.portal-cta h3 {
  margin: 0 0 1em 0;
  font-size: 1.2em;
  font-weight: 600;
}


/* Responsive */
@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-cta { text-align: left; }
}



/* =========================================
   Start Layout
   ========================================= */

/* Grid Layout */
.start-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.7fr;
  gap: 5em;
  margin: 0em 2em;
  align-items: start;
}

/* Textspalte */
.start-text h2 {
  margin-top: 0;
  font-size: 1.8em;
  font-weight: 700;
}

/* Cards-Spalte */
.start-cards {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.start-cards .card {
  background: #ffffff;
  border: 1px solid #e0e6eb;
  border-radius: 12px;
  padding: 1.2em 1.5em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.start-cards .card h3 {
  margin-top: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.start-cards .card h3 i {
  margin-right: 0.5em;
  color: var(--primary)
}

.start-cards .card p {
  margin: 0.5em 0 0;
  font-size: 0.95em;
  color: #555;
}

/* Responsive: untereinander bei kleinen Screens */
@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
  .start-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .start-cards .card {
    flex: 1 1 calc(33% - 1em);
  }
}

@media (max-width: 600px) {
  .start-cards {
    flex-direction: column;
  }
  .start-cards .card {
    flex: 1 1 100%;
  }
}


@media (max-width: 900px) {
  .start-text .hero-image {       /* <figure> */
    margin: 0;                    /* <-- reset default 40px sides */
    width: 100%;
    max-width: 100%;
    display: block;
  }

  .start-text .hero-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;               /* centers if the img is narrower */
  }
}


/* =========================================
   Über uns Layout
   ========================================= */


/* Grid Layout */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2em;
  margin: 2em 0;
  align-items: start;
}

/* Textspalte */
.about-text h2 {
  margin-top: 0;
  font-size: 1.8em;
  font-weight: 700;
}

/* Cards-Spalte */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.about-cards .card {
  background: #ffffff;
  border: 1px solid #e0e6eb;
  border-radius: 12px;
  padding: 1.2em 1.5em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.about-cards .card h3 {
  margin-top: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.about-cards .card h3 i {
  margin-right: 0.5em;
  color: var(--primary)
}

.about-cards .card p {
  margin: 0.5em 0 0;
  font-size: 0.95em;
  color: #555;
}

/* Responsive: untereinander bei kleinen Screens */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-cards .card {
    flex: 1 1 calc(33% - 1em);
  }
}

@media (max-width: 600px) {
  .about-cards {
    flex-direction: column;
  }
  .about-cards .card {
    flex: 1 1 100%;
  }
}





/* =========================================
   Kontakt Formular
   ========================================= */

/* Sichtbarkeit robust steuern */
.contact-form { display: none; }             /* Standard: alle zu */
.contact-form.is-active { display: block; }  /* nur aktives sichtbar */
.contact-form[hidden] { display: none !important; } /* hidden bleibt hidden */


/* Tab-Buttons wie CTA */
.tab-button {
  padding: 10px 14px;
  background: var(--primary-soft);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem; /* oder inherit */
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .2s;
}
.tab-button:hover { background: var(--primary-ink); }
.tab-button.is-active { background: var(--primary); }

/* Formular schöner gestalten */
.contact-form {
  max-width: 700px;
  margin: 0 auto 2em auto;
  padding: 2em;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
label { display:block; font-weight:600; margin-bottom:.4rem; }
input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  outline: none;
  background: #fafbfc;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,102,211,0.15);
  background: #fff;
}

/* Submit-Button im CTA-Look */
.btn-submit {
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem; /* oder inherit */
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-ink); }

/* Formular Layout auf Container-Breite */
.contact-form {
  width: 100%;
  max-width: 100%;   /* nicht mehr begrenzt auf 700px */
  box-sizing: border-box;
}

/* Gruppierung: Felder nebeneinander */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr; /* auf kleinen Screens wieder untereinander */
  }
}






/* ================================
   HERO BANNER (cleaned & commented)
   ================================ */

/* Wrapper for the full-width hero section */
.hero-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;                 /* keep zoomed image inside */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Image URL exposed as a CSS var so ::before can reuse it */
  --hero-bg: url("../images/h.jpeg");
}

/* Background image + Ken Burns zoom lives on ::before
   so text & overlay are not scaled */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;                       /* behind overlay & content */
  background: var(--hero-bg) center center / cover no-repeat;
  transform: scale(1.2);
  will-change: transform;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

/* Persistent colored overlay above the image (improves contrast) */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;                       /* above image, below text */
  background: rgba(7, 29, 65, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foreground content (logo, heading, copy, buttons) */
.hero-content {
  position: relative;
  z-index: 2;                       /* top-most layer */
  color: #f6fafc;
  text-align: center;
}

/* Typographic scale with fluid clamp */
.hero-content h1 {
  font-size: clamp(32px, 4vw, 100px);
  margin: 0 auto 12px;   /* zentriert den Block */
  max-width: 900px;      /* gleiche Breite wie der Absatz */
}

.hero-content p {
  font-size: clamp(22px, 2.5vw, 44px);
  font-weight: 300;
  margin: 0 auto;
  letter-spacing: 1px;
  max-width: 900px;                 /* readable line-length */
}

.hero-content {
  padding: 0 40px; /* verhindert, dass Text an den Rand stößt */
}


/* ============ Animations ============ */

/* Ken Burns (subtle background zoom) */
@keyframes heroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.15); }
}

/* Fade-up entrance for hero content children (stagger via delays) */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}
.hero-content h1 { animation-delay: 0.15s; }
.hero-content p  { animation-delay: 0.30s; }
/* Add more delays for buttons, etc., e.g. .hero-content .btn { animation-delay: 0.45s; } */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-banner::before { animation: none; transform: none; }
  .hero-content > *     { animation: none; opacity: 1; transform: none; }
}




/* Form alerts */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert.success {
  background: #e7f9ed;
  color: #0a7a2a;
  border: 1px solid #0a7a2a;
}

.alert.error {
  background: #fdecea;
  color: #b00020;
  border: 1px solid #b00020;
}
