/* Shared accessibility and responsive rules for the four design previews. */
:root { --text-dim: #a5b6aa; }
html.light { --text-dim: #48604f; }
html { scroll-padding-top: 145px; }
body { overflow-x: clip; }
img, video { max-width: 100%; }
section, article, form, [class*="grid"] > *, .services-bento > *, .service-box, .tour-right-content { min-width: 0; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #65b985; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 20px; background: #fff; color: #143a25; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.mobile-nav { display: none; position: relative; pointer-events: auto; color: var(--text-lead, var(--text, #e2ede5)); }
.mobile-nav summary { cursor: pointer; padding: 10px; font: inherit; font-size: .9rem; }
.mobile-nav nav { position: absolute; right: 0; top: 100%; width: min(280px, 80vw); max-height: 70vh; overflow-y: auto; background: #0c1c11; color: #e2ede5; border: 1px solid #57745f; border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px #0006; }
.mobile-nav a { display: block; padding: 10px 14px; color: inherit; text-decoration: none; }
html.light .mobile-nav nav { background: #fff; color: #143a25; }
.form-status { margin-top: 16px; line-height: 1.6; color: var(--text-lead, var(--text, #e2ede5)); }
.form-status:empty { display: none; }
.contact-note { margin: 16px 0; font-size: .85rem; line-height: 1.6; color: var(--text-muted, #a5b6aa); }
.contact-note a { color: inherit; text-decoration: underline; }
.legal-sheet { overflow-wrap: anywhere; }
.editorial-note { margin: 24px 0; padding: 16px; border: 1px solid #688871; border-radius: 12px; font-size: .9rem; }
.source-links a { color: inherit; text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.guide-cat-btn.active, .cat-btn.active, .btn-primary { color: #052e16 !important; }
.guide-cat-btn.active span, .cat-btn.active span, .btn-primary span { color: inherit !important; }
@media (max-width: 1100px) {
  header .nav-links, header .nav-menu { display: none; }
  .mobile-nav { display: block; }
  .nav-bar, .nav-bar-pill { gap: 8px; flex-wrap: wrap; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 600px) {
  .hero-telemetry-pill { display: none !important; }
  header { padding-left: 12px; padding-right: 12px; }
  .nav-bar, .nav-bar-pill { padding: 8px 12px; border-radius: 22px; }
  header .brand-logo-img { height: auto; width: 130px; max-width: 100%; }
  header .brand { min-width: 0; flex: 1 1 125px; }
  header .nav-actions { justify-content: flex-end; flex: 1 1 auto; }
  header .nav-actions a { padding: 8px 12px; font-size: .8rem; }
  .guide-grid, .feed-grid-3, .solution-tour-stage { grid-template-columns: minmax(0, 1fr) !important; }
  .tour-right-content { overflow-wrap: anywhere; }
  .obs-section-title, .macro-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .solution-tour-stage { padding: 20px; }
  .toast, .toast-pill { max-width: calc(100vw - 32px); white-space: normal; }
  .guide-cat-pill, .article-pill, .tag-item, .guide-tag { white-space: normal; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.audit-legal-page { padding: 160px 24px 80px; min-height: 70vh; }
.audit-legal-sheet { max-width: 850px; margin: 0 auto; line-height: 1.75; overflow-wrap: anywhere; }
.audit-legal-sheet h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 28px; }
.audit-legal-sheet h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.audit-legal-sheet p, .audit-legal-sheet ul { margin-bottom: 18px; }
.audit-legal-sheet ul { padding-left: 24px; }
.audit-legal-sheet a { color: inherit; text-decoration: underline; }
#tourMetricBar { display: none; }
.contact-form label { display:block; color:var(--text-lead); font-size:.85rem; margin:8px 0; }

.guide-card, .article-bento-card { text-decoration:none; color:inherit; }

@media (min-width: 601px) {
  .terminal-col-card .metric-row {
    gap: 12px;
  }
  .terminal-col-card .metric-label,
  .terminal-col-card .metric-value {
    min-width: 0;
  }
  .terminal-col-card .metric-value {
    text-align: right;
  }
  .terminal-col-card .metric-row-stacked {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .terminal-col-card .metric-row-stacked .metric-value {
    text-align: left;
  }
}

/* Ampersands follow the surrounding typography instead of acting as accent glyphs. */
.amp,
html.light .amp {
  display: inline;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit !important;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Entwürfe 3/4: Auf Tablet und Mobil steht das Hero-Bild im Textfluss. */
@media (max-width: 1024px) {
  .vision-pillars-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }
  .vision-pillar-card {
    width: 100%;
    padding: 26px 24px;
  }
  .vision-pillar-card h5,
  .vision-pillar-card p,
  .vision-pillar-num {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .immersive-preview .hero-stage {
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 48px;
  }
  .immersive-preview .hero-content-grid,
  .immersive-preview .hero-left-text {
    max-width: none;
  }
  .immersive-preview .hero-stage-bg {
    position: relative;
    inset: auto;
    transform: none;
    width: min(100%, 720px);
    height: auto;
    aspect-ratio: 1376 / 768;
    margin: 32px auto 0;
    z-index: 4;
  }
  .immersive-preview .hero-bg-img {
    width: 100%;
    max-height: none;
  }
  .immersive-preview .hero-telemetry-pill {
    display: none !important;
  }
  .immersive-preview .hero-vignette {
    background: linear-gradient(180deg, #030805 0%, rgba(3, 8, 5, 0.96) 58%, rgba(3, 8, 5, 0.72) 78%, #030805 100%);
  }
  .immersive-preview .hero-headline {
    font-size: clamp(2.65rem, 6vw, 3.4rem);
  }
  .immersive-preview .hero-footer-bar {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  header {
    top: 8px;
  }
  header .nav-bar,
  header .nav-bar-pill {
    flex-wrap: nowrap;
    padding: 8px 12px;
  }
  header .brand-logo-img {
    width: min(150px, 46vw);
  }
  header .mobile-nav {
    margin-left: auto;
    flex: 0 0 auto;
  }
  header .nav-actions,
  header .header-cta-group,
  header .header-actions {
    flex: 0 0 auto;
    gap: 6px;
  }
  header .nav-actions > a[href*="portal-bereich.de"],
  header .header-cta-group > a[href*="portal-bereich.de"],
  header .header-actions > a[href*="portal-bereich.de"] {
    display: none;
  }
  .terminal-window-card {
    padding: 20px 14px;
  }
  .terminal-topbar,
  .viz-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .terminal-col-card,
  .terminal-center-viz {
    padding: 18px 16px;
  }
  .metric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 5px;
  }
  .metric-label,
  .metric-value {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-align: left;
  }
  .viz-chart-svg + div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    text-align: left;
  }
  .vision-pillar-card {
    padding: 24px 20px;
  }
  .immersive-preview .hero-stage {
    padding-top: 112px;
    padding-bottom: 36px;
  }
  .immersive-preview .hero-headline {
    font-size: clamp(2.1rem, 10.5vw, 2.65rem);
  }
  .immersive-preview .hero-subtext {
    font-size: 1rem;
    margin-bottom: 28px;
  }
  .immersive-preview .hero-actions {
    align-items: stretch;
  }
  .immersive-preview .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .immersive-preview .hero-stage-bg {
    margin-top: 24px;
  }
  .immersive-preview .hero-footer-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }
}

@media(max-width:600px) {
 .macro-foliage-section { height:auto !important; min-height:0 !important; padding-bottom:50px; }
 .pulse-pin-node { position:relative; top:auto; left:auto; margin:16px 20px; }
 .pin-circle { display:none; }
 .pin-popup-card, .pulse-pin-node:hover .pin-popup-card, .pulse-pin-node.active .pin-popup-card { position:relative; bottom:auto; left:auto; width:100%; opacity:1; transform:none; pointer-events:auto; }
}
