/* === OnPoint Photonics – Styleguide ====================================
Foundations & Guidelines
------------------------------------------------------------------
Naming:/* === Hero / Einstiegsbereich ==================================== */
/* === Sektionen (Leistungen, Angebote, Arbeitsmodell, Kontakt) === */

- Components: .hero, .section, .card, .nav, .footer
- Variants:   .is-compact, .is-muted, .is-inset
- Utilities:  .text-muted, .align-center, .hide-sm, .show-sm

Tokens (see :root):
- Colors:      --brand, --brand-ink, --text, --muted, --line
- Spacing:     --space-1..8, --section-y, --section-y-lg
- Radius:      --radius-sm/md/lg/pill
- Shadows:     --shadow-sm/md/lg
- Typography:  --font-sans, --fs-sm/base/lg/xl/2xl, --lh-tight/normal/loose
- Layout:      --maxw, --container, --container-wide
- Breakpoints: --bp-sm/md/lg/xl  (use in @media)

Usage examples:
- Headings:    h1.title, .section h2  → color: var(--brand-ink)
- Links:       a:hover → color: var(--brand)
- Cards:       .card → border-radius: var(--radius); box-shadow: var(--shadow-sm)
- Spacing:     padding: var(--space-4); gap: var(--space-3)

Do:
- Reuse tokens; avoid hard-coded values.
- Group related rules; keep selectors shallow.
- Prefer semantic HTML; utilities only for exceptions.

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

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --line: #e6e6e6;
  --link: #0089B6;
  --maxw: 860px;
  --radius: 8px;
  /* Brand & palette */
  --brand: #0089B6;              /* primary accent (teal) */
  --brand-ink: #0f2b54;          /* headings / brand text */
  --brand-muted: #e6f3f6;        /* subtle bg accents */

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #111111;
  --muted: #555555;
  --line: #e6e6e6;
  --link: #0089B6;

  /* Layout widths */
  --container: 1140px;
  --container-wide: 1320px;
  --maxw: 860px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --section-y: 34px;
  --section-y-lg: 44px;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 2px 10px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 20px rgba(0,0,0,.12);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: clamp(18px, 1.4vw, 20px);
  --fs-xl: clamp(22px, 2.2vw, 26px);
  --fs-2xl: clamp(28px, 3vw, 34px);
  --lh-tight: 1.2;
  --lh: 1.5;
  --lh-loose: 1.7;

  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Z-index */
  --z-nav: 50;
  --z-overlay: 1000;

  /* Product color mapping
     Blueprint:   requirements & Spezifikation
     Hub:         Koordination & Projektführung
     On-Demand:   Serienbegleitung / Retainer
     Resolve:     Eskalation & Troubleshooting */
  --product-blueprint: #0f2b54;  /* dark brand ink */
  --product-hub: #1d4ed8;        /* blue accent */
  --product-ondemand: #0089B6;   /* teal (brand) */
  --product-resolve: #15803d;    /* green (Stabilisierung) */
}

html {
  font-size: 16px; scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji";
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
}
/* === Navigation & Header ======================================== */

.site-header {
  border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10;
}

.nav {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 0;
}

.brand {
  font-weight: 600; letter-spacing: 0.2px; text-decoration: none; color: var(--text);
}

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

.nav-links a {/* === Allgemeine Form-Styles (Termin/Kontakt) ==================== */

  text-decoration: none; color: var(--text); opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
}

.nav-links a:hover {
  opacity: 1; text-decoration: underline;
}

.hero {
  padding: 40px 0 22px 0;
}

.hero .title {
  margin: 0 0 10px 0; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -0.015em;
}

.hero .lead {
  color: var(--muted); margin: 12px 0 10px 0; font-size: 1.05rem;
}

.hero .hero-usps {
  margin: 8px 0 0 0; padding-left: 18px; color: var(--muted);
}

.hero .hero-usps li {
  margin: 4px 0;
}

.hero .cta {
  display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text);
}

.hero .cta:hover {
  border-color: #cfcfcf;
}

.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; margin-top: 10px;
}

.section {
  padding: 34px 0 44px 0; border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 8px 0; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.01em;
}

.card h3 {
  margin: 0 0 6px 0; font-size: 1.05rem;
}

.card p {
  margin: 0; color: var(--muted);
}

.kv {
  display: grid; gap: 10px; margin-top: 12px;
}

.kv-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 12px;
}

.kv-term {
  color: var(--muted);
}

.kv-def {
  margin: 0;
}

.results-list li, .cases li, .process li {
  margin: 4px 0;
}

.site-footer {
  padding: 32px 0 44px 0; color: var(--muted); background: #fafafa;
}

.legal small a {
  color: inherit;
}

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

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

}

.grid-3 .card {
  display:flex; flex-direction:column;
}

.card p:has(.sep-arrow) {
  display:flex;
  flex-direction:column;
  min-height: 132px;
}

.card p .sep-arrow {
  display:block;
  margin-top:auto;
  padding-top:8px;
  border-top:1px solid var(--line);
  opacity:0.85;
}

@media (min-width: 900px) {
  .grid-3 .card{ min-height: 220px;
}

}

:root {
  --section-y: 48px;
  --section-y-lg: 56px;
}

body {
  overflow-x: hidden;
}

.hero {
  padding: 56px 0 28px 0;
}

.hero .title {
  font-size: clamp(32px, 5vw, 48px); line-height: 1.12;
}

.hero .lead {
  font-size: 1.06rem; line-height: 1.65;
}

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

.section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.card p {
  line-height: 1.65;
}

.bleed-media {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.bleed-media img {
  display:block; width: 100%; height: auto;
}

.hero .cta-row {
  margin-top: 14px;
}

.nav {
  padding: 20px 0;
}

.triptych .trip-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 12px;
}

.trip-card img {
  display:block;
  width:100%;
  height: 280px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .4s ease;
}

.trip-card:hover img {
  transform: scale(1.06);
}

@media (max-width: 980px) {
  .triptych .trip-grid{ grid-template-columns: 1fr;
}

.trip-card img {
  height: 220px;
}

}

.hero .title {
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero .title .claim {
  display: inline-block;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.hero .lead {
  color: #555;
  max-width: 62ch;
}

.hero-grid {
  grid-template-columns: 1fr 380px; gap: 26px;
}

.usp-card {
  background:#fff;
}

.hero .cta-row .cta {
  padding: 10px 16px;
}

.hero .cta-row .cta + .cta {
  border-style: solid;
}

@media (max-width: 980px) {
  .hero-grid{ grid-template-columns: 1fr; gap: 18px;
}

}

.hero-grid {
  align-items: stretch;
}

.hero-aside {
  align-self: stretch;
}

.hero-aside .usp-card {
  height: 100%; display: flex; flex-direction: column;
}

.hero-main {
  display: contents;
}

.hero .title {
  grid-column: 1;
}

.hero .lead {
  grid-column: 1;
}

.hero .cta-row {
  grid-column: 1 / -1;
  justify-content: center;
}

@media (max-width: 980px) {
  .hero .title, .hero .lead, .hero .cta-row{ grid-column: 1;
}

.hero-aside {
  align-self: auto;
}

.hero-aside .usp-card {
  height: auto;
}

}

.hero-grid {
  align-items: start;
}

.hero-aside {
  grid-column: 2; grid-row: 1; align-self: start;
}

.hero-aside .usp-card {
  height: auto;
}

.hero .title {
  grid-column: 1;
}

.hero .lead {
  grid-column: 1;
}

.hero .cta-row {
  grid-column: 1 / -1; grid-row: 2; justify-content: center; margin-top: 14px;
}

.hero-grid {
  row-gap: 16px;
}

.hero-grid {
  grid-template-rows: auto auto; row-gap: 16px;
}

.hero .title {
  grid-column: 1; grid-row: 1;
}

.hero-aside {
  grid-column: 2; grid-row: 1; align-self: start;
}

.hero .lead {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

.hero .cta-row {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: center;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .hero .title, .hero .lead, .hero .cta-row{ grid-column: 1; grid-row: auto;
}

.hero-aside {
  grid-column: 1; grid-row: auto;
}

}

body.cta-above .hero .cta-row {
  grid-row: 2; margin-top: 0;
}

body.cta-above .hero .lead {
  grid-row: 3; margin-top: 6px;
}

.cta-sub a {
  color: inherit; text-decoration: underline;
}

.flash {
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding: 10px 14px;
  font-size: .96rem;
  border: 1px solid transparent;
  border-radius: 8px;
  display:none;
}

.contact-form {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.contact-form fieldset {
  border: 0; margin: 0; padding: 0;
}

.contact-form legend {
  font-weight: 600; margin-bottom: 6px;
}

.form-grid {
  display:grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: 10px 0 8px 0;
}

.contact-form label {
  display:block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 10px 12px; border:1px solid var(--line); border-radius: 6px;
  font: inherit; color: inherit; background: #fff;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: #cfcfcf;
}

.contact-form .consent {
  display:block; margin-top: 8px; color: var(--muted);
}

.form-actions {
  margin-top: 12px; display:flex; justify-content:center;
}

.hp {
  position: absolute; left: -9999px; top: -9999px; visibility: hidden;
}

@media (max-width: 780px) {
  .form-grid{ grid-template-columns: 1fr;
}

}

.form-actions {
  justify-content: center !important;
  text-align: center;
  margin-top: 12px;
}

.form-actions .cta, .form-actions button {
  display: inline-block;
}

label.consent::after {
  content: "";
}

.back-home {
  margin: 0 0 6px 0;
}

.back-home a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
}

.back-home a:hover {
  text-decoration: underline;
}

.contact-form .form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  grid-column: 1 / -1;
}

.usp-diagram svg {
  max-width: 980px; display: block; margin: 8px auto;
}

.standby-diagram svg {
  max-width: 980px; display:block; margin: 8px auto;
}

.standby-diagram svg {
  max-width: 980px; display:block; margin: 8px auto;
}

@media (max-width:700px) {
  h2 .product-badge{ display:block; margin:6px 0 0;
}

}

.kicker {
  display:inline-block; font-weight:700; line-height:1.25;
}

.kicker-name {
  color: var(--accent, #0089B6);
}

.kicker-sep {
  opacity:.5; padding:0 .35ch;
}

.kicker-desc {
  color: inherit; font-weight:600;
}

@media (max-width:700px) {
  h2 .kicker{ display:block;
}

}

.blueprint-diagram svg {
  max-width: 980px; display:block; margin: 8px auto;
}

@media (max-width: 960px) {

}

html {

}

section[id] {

}

header nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1.1rem; align-items: center;
}

header nav li {
  list-style: none;
}

header nav a {
  text-decoration: none;
}

header {
  border-bottom: 1px solid var(--hairline, #e5e7eb);
}

.contact-cta {
  margin-top: 12px; text-align: right;
}

@media (max-width: 700px) {
  .contact-cta{ text-align: left;
}

}

a.cta, a.cta:visited {
  display:inline-block;
  padding:10px 16px;
  border-radius:9999px;
  border:1px solid var(--hairline, #e5e7eb);
  background: var(--surface, #f8fafc);
  font-weight:600;
  line-height:1.15;
  text-decoration:none;
  color: var(--text, #111827);
}

a.cta:hover, a.cta:focus {
  text-decoration:none;
  transform: translateY(-1px);
  outline: none;
}

.contact-cta {
  margin-top: 12px; text-align: left;
}

@media (max-width: 700px) {
  .contact-cta{ margin-top: 10px;
}

}

.resolve-accent {
  color: #0089B6;
}

.bleed-media {
  position: relative;
}

.media-caption {
  position:absolute;
  left:50%;
  top:12%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:.25rem;
  padding:.6rem .9rem;
  border-radius:9999px;
  background:rgba(255,255,255,.78);
  color:#0e0f12;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  line-height:1.25;
  text-align:center;
  white-space:nowrap;
}

.media-caption .cap-line {
  font-weight:600;
  font-size:clamp(14px,1.6vw,20px);
}

@media (max-width: 720px) {
  .media-caption{ top:8%; padding:.45rem .7rem;
}

.media-caption .cap-line {
  font-size:clamp(13px,3.2vw,18px);
}

}

.bleed-media {
  position: relative;
}

.media-caption.plain {
  position:absolute;
  left:50%;
  top:12%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  gap:.15rem;
  padding:0;
  background:none;
  border-radius:0;
  box-shadow:none;
  color:#ffffff;
  line-height:1.15;
  text-align:center;
  white-space:nowrap;
  text-shadow: 0 2px 6px rgba(0,0,0,.35), 0 1px 1px rgba(0,0,0,.35);
}

.media-caption.plain .cap-line {
  font-weight:700;
  letter-spacing:.2px;
  font-size:clamp(14px,1.6vw,22px);
}

@media (max-width: 720px) {
  .media-caption.plain{ top:8%;
}

.media-caption.plain .cap-line {
  font-size:clamp(13px,3.2vw,18px);
}

}

.media-caption.plain {
  left: 10%;
  top: 12%;
  transform: none;
  align-items: flex-start;
  text-align: left;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: #0e0f12;
  text-shadow: none;
  font-family: inherit;
  line-height: 1.1;
}

.media-caption.plain .cap-line {
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 36px);
  letter-spacing: .1px;
}

@media (max-width: 720px) {
  .media-caption.plain{ left: 6%; top: 10%;
}

.media-caption.plain .cap-line {
  font-size: clamp(16px, 4.4vw, 28px);
}

}

a, a:visited {
  color: var(--accent); text-decoration-color: color-mix(in oklab, var(--accent) 50%, transparent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline:2px solid var(--accent); outline-offset:2px;
}

.diagram img {
  width: 100%; height: auto; display:block; border:1px solid var(--line); border-radius:10px; background:#fff;
}

@media (prefers-color-scheme: dark) {
  .diagram img{ border-color:#222; background:#0d0d0d;
}

}

.talk-box {
  background:#f8fafc; border:1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 8px;
}

.talk-box .q {
  font-weight:600; margin:0 0 6px;
}

.talk-box .a {
  margin:0; color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .talk-box{ background:#0f172a; border-color:#1f2937;
}

}

.faq {
  margin:16px 0 0; border-top:1px solid var(--line); padding-top:10px;
}

.faq dt {
  font-weight:600; margin-top:10px;
}

.faq dd {
  margin:4px 0 10px 0; color: var(--muted);
}

.kicker-name a, .product-title .title a {
  color: inherit; text-decoration:none;
}

.kicker-name a:hover, .kicker-name a:focus {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness:2px;
}

#resolve {
  --accent: #0089B6;
}

#paket-guide {
  margin: 24px 0 8px;
}

#paket-guide h2 {
  font-size: 1.15rem; margin: 0 0 10px;
}

@media (max-width: 860px) {
  .grid-guide{ grid-template-columns: repeat(2, minmax(0,1fr));
}

}
@media (max-width: 520px) {
  .grid-guide{ grid-template-columns: 1fr;
}

}
.guide-card {
  display:block;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  text-decoration:none;
  background: white;
}

.guide-card .title {
  font-weight:600;
}

.guide-card .tag {
  font-size:.8rem; margin-top:4px; color: var(--muted);
}

#paket-guide .guide-card[href="#blueprint"] .title,
#paket-guide .guide-card[href="#arbeitsweise"] .title,
#paket-guide .guide-card[href="#ondemand"] .title {
  color:#0089B6;
}

#paket-guide .guide-card[href="#resolve"] .title {
  color:#0089B6;
}

#paket-guide .guide-card .title {
  text-decoration:none;
}

#paket-guide .guide-card:hover .title {
  text-decoration:underline;
}

section[id] {
  scroll-margin-top:72px;
}

.faq dt {
  font-weight:600;
}

.faq dd {
  color: var(--muted); margin: 4px 0 12px;
}

.diagram svg {
  width:100%; height:auto; display:block;
}

img {
  height:auto;
}

#paket-guide .guide-sep {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
  padding: 6px 2px 2px;
}

#paket-guide .guide-sep-title {
  grid-column: 1 / -1;
  margin: 6px 2px 4px;
}

#paket-guide .guide-sep-title .kicker-name {
  color: #0089B6;
}

section.services {
  margin: 28px 0 8px;
}

section.services .product-title {
  margin-bottom: 6px;
}

section.services .lead {
  color: var(--muted, #6b7280); margin-bottom: 14px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .svc-grid{ grid-template-columns: repeat(2, minmax(0,1fr));
}

}
@media (max-width: 640px) {
  .svc-grid{ grid-template-columns: 1fr;
}

}
.svc-card {
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

.svc-card h3 {
  font-weight: 700;
  margin: 0 0 8px;
}

.svc-card p {
  margin: 0 0 10px;
}

.svc-card hr {
  border: 0;
  border-top: 1px solid var(--line, #e5e7eb);
  margin: 8px 0 8px;
}

.svc-foot {
  color: var(--muted, #6b7280); display:flex; align-items: center; gap:6px;
}

.svc-arrow {
  display:inline-block; transform: translateY(-1px);
}

section.model {
  margin: 28px 0 8px;
}

section.model .product-title {
  margin-bottom: 6px;
}

section.model .lead {
  color: var(--muted, #6b7280); margin-bottom: 12px;
}

.model-box {
  border: 1px dashed var(--line, #e5e7eb);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}

.model-box ul {
  margin: 0; padding-left: 20px;
}

.model-box li {
  margin: 8px 0;
}

.model-box li strong {
  font-weight: 700;
}

#paket-guide .guide-card .title {
  color: #111827;
}

#paket-guide .guide-card .title .pn {
  font-weight: 700;
}

#paket-guide .guide-card .title .pn-indigo {
  color: #0089B6;
}

#paket-guide .guide-card .title .pn-teal {
  color: #0089B6;
}

#paket-guide .guide-card {
  cursor: default;
}

#paket-guide .guide-card .title {
  color: #111827;
}

#paket-guide .guide-card .title .pn {
  font-weight: 700;
}

#paket-guide .guide-card .title .pn-indigo {
  color: #0089B6;
}

#paket-guide .guide-card .title .pn-teal {
  color: #0089B6;
}

#paket-guide .guide-card:hover {
  transform: none; box-shadow: none;
}

h2.product-title {
  font-size: clamp(28px, 3.1vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2.product-title .kicker-name {
  color: var(--accent, #0089B6);
}

#paket-guide .guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

#paket-guide .guide-col-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

#paket-guide .guide-col-title .indigo {
  color: #0089B6;
}

#paket-guide .guide-col-title .teal {
  color: #0089B6;
}

#paket-guide .guide-list .guide-card {
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  #paket-guide .guide-columns{ grid-template-columns: 1fr;
}

}

#paket-guide > h2.product-title {
  font-size: clamp(28px, 3.1vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

a, a:visited {
  text-decoration: none;
}

.navbar-brand img, header nav a img {
  height: 40px; width:auto; display:block;
}

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

header nav a img {
  height: 40px !important; width:auto; display:block
}

:root {
  --brand-accent:#0089B6;
}

.accent-blue {
  color:var(--brand-accent);
}

#flash h1.section-title,
#flash h2.section-title,
#flash h3.section-title {
  color: #0f2b54 !important;
}


/* Components & Utilities (reference) ----------------------------------------

Section headings
----------------
.section h2,
h1.title {
  color: var(--brand-ink);
  line-height: var(--lh-tight);
}

Text helpers
------------
.text-muted { color: var(--muted); }
.align-center { text-align: center; }

Buttons
-------
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 700;
}

Cards
-----
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

Responsive
----------
@media (max-width: var(--bp-md)) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

---------------------------------------------------------------------------- */


/* === Responsive Layout (Mobile & kleine Screens) =======================
   Faustregel:
   - Layout stapeln (einspaltig)
   - Innenabstände etwas erhöhen
   - Schrift leicht größer, aber mit kürzeren Zeilen
   - Navigation in zwei Zeilen / umbruchfähig
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {

  body {
    font-size: var(--fs-base);
    line-height: var(--lh);
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    row-gap: 6px;
    column-gap: 14px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-7);
  }

  .hero-grid {
    display: block;
  }

  .hero-main {
    margin-bottom: var(--space-5);
  }

  .hero .title {
    font-size: var(--fs-xl);
    line-height: var(--lh-tight);
  }

  .hero .lead {
    font-size: var(--fs-base);
    margin-top: var(--space-3);
  }

  .hero ul {
    margin-top: var(--space-3);
  }

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

  .bleed-media img {
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }

  .section h2 {
    font-size: var(--fs-lg);
  }

  .services {
    gap: var(--space-4);
  }

  .svc-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-4);
  }

  .svc-card {
    padding: var(--space-4);
  }

  .offer-grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-5);
  }

  .offer-card {
    padding: var(--space-4);
  }

  .talk-box {
    padding: var(--space-4);
  }

  .arbeitsmodell-grid,
  .arbeitsmodell-columns {
    display: block;
  }

  .arbeitsmodell-columns > * + * {
    margin-top: var(--space-4);
  }

  .contact-layout {
    display: block;
  }

  .contact-layout > * + * {
    margin-top: var(--space-5);
  }

  form.contact-form,
  form {
    max-width: 100%;
  }

  .site-footer {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }
}





/* === Mobile Navigation & Overflow Fixes ============================== */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text, #111827);
}

/* Auf mobilen / schmalen Screens: Hamburger aktiv, kein horizontales Scrollen */
@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    padding: 8px 16px 10px;
    background: var(--bg, #f9fafb);
    border-bottom: 1px solid var(--line, #e5e7eb);
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-links li a {
    display: block;
    padding: 6px 0;
  }

  .nav-links.is-open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
  }

  /* Banner sollen auf Mobil nicht über die Seite hinausragen */
  .bleed-media {
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
}





/* === Mobile-only Fixes (clean) =========================================
   Ziel: Auf Mobilgeräten (≤ 900px) kein horizontales Scrollen, saubere
   Typografie/Umbrüche, stabile Navigation. Desktop bleibt unverändert.
*/
@media (max-width: 900px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Verhindert, dass einzelne Elemente breiter als der Viewport werden */
  *, *::before, *::after { box-sizing: border-box; }
  img, video, canvas, svg { max-width: 100%; height: auto; }
  pre, code, kbd, samp { white-space: pre-wrap; word-break: break-word; }
  table { width: 100%; display: block; overflow-x: auto; }
  body { overflow-wrap: anywhere; hyphens: auto; }

  /* Container und Bleed-Grafiken sicher begrenzen */
  .container { max-width: 100%; width: 100%; }
  .bleed-media {
    width: 100%;
    left: 0; right: 0;
    margin-left: 0; margin-right: 0;
    position: relative;
  }

  /* Navigation: einfache, sichere Standard-Variante */
  .nav-toggle { display: none !important; } /* kein Burger nötig */
  .nav-links {
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    width: 100%;
    padding: .25rem 0 0 0 !important;
    z-index: 30;
  }
  .nav-links ul {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a { display: block; padding: .5rem 0; }

  /* Grids stapeln */
  .svc-grid, .trip-grid, #paket-guide .guide-columns, .kv-row-wrap, .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Buttonreihen umbrechen statt zu schieben */
  .cta-row, .form-actions { flex-wrap: wrap; }
}


/* === Mobile Menu Visibility Fix (≤900px) ===============================
   Stellt sicher, dass die Navigation unter dem Logo sichtbar wird,
   indem der Header flex-wrap nutzt und die Nav über volle Breite geht.
*/
@media (max-width: 900px) {
  .site-header .nav {
    display: flex;
    flex-wrap: wrap;          /* <<< wichtig: Zeilenumbruch erlauben */
    align-items: flex-start;
    gap: .5rem;
  }
  .site-header .nav .brand { order: 0; }
  .site-header .nav .nav-links {
    order: 1;
    width: 100%;              /* volle Breite unter dem Logo */
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    padding: .25rem 0 0 0 !important;
    margin: 0;
  }
  .site-header .nav .nav-links ul {
    display: flex !important;
    flex-direction: column !important;
    gap: .375rem !important;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-header .nav .nav-links a {
    display: block;
    padding: .5rem 0;
  }
}


/* === Mobile Menu Force-Visible (≤900px) ================================
   Überschreibt frühere mobile Dropdown-Styles (opacity/max-height etc.).
*/
@media (max-width: 900px) {
  .site-header .nav { display:flex; flex-wrap:wrap; align-items:flex-start; gap:.5rem; }
  .site-header .nav .nav-links {
    order: 1;
    width: 100%;
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    padding: .25rem 0 0 0 !important;
    margin: 0;
    /* harte Überschreibungen gegen frühere Dropdown-Variante: */
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .site-header .nav .nav-links ul {
    display:flex !important;
    flex-direction:column !important;
    gap:.375rem !important;
    list-style:none; margin:0; padding:0;
  }
  .site-header .nav .nav-links a { display:block; padding:.5rem 0; }
  .nav-toggle { display: none !important; }
}


/* Product names tone */
.product-name { color: #006A8C; font-weight: 700; }
