/* =================================================================
   TechDo Homepage – Light Theme mit dunkler Navigation
   =================================================================
   Aufbau:
   1. Design Tokens (CSS Custom Properties)
   2. Reset & Basis
   3. Navigation (dunkel)
   4. Hero-Sektionen
   5. Seiteninhalt-Komponenten
   6. Cards & Tiles
   7. Akkordeon & Tabs
   8. Referenzen-Marquee (siehe startseite-style.css)
   9. Kontakt & Rechtliches
   10. Footer (dunkel)
   11. Utilities & Hilfsstile
   12. Responsive
   ================================================================= */


/* -----------------------------------------------------------------
   1. DESIGN TOKENS
   ----------------------------------------------------------------- */

:root {
  /* Farben – Seite */
  --bg-body:             #ffffff;
  --bg-surface:          #f5f6f8;
  --bg-surface-elevated: #ffffff;

  /* Farben – Dunkle Sektionen (Nav, Footer, Akkordeon-Blöcke) */
  --bg-dark:             #111827;
  --bg-dark-surface:     rgba(255,255,255,.05);
  --bg-dark-hover:       rgba(255,255,255,.10);
  --border-dark:         rgba(255,255,255,.10);
  --text-dark-primary:   #f0f0f0;
  --text-dark-secondary: #9ca3af;

  /* Text – Helle Seite */
  --text-primary:        #111827;
  --text-secondary:      #4b5563;
  --text-muted:          #6b7280;

  /* Borders – Helle Seite */
  --border-subtle:       #e5e7eb;
  --border-hover:        #d1d5db;

  /* Markenfarbe */
  --td-red:              #bf0312;
  --td-red-hover:        #9e020f;
  --td-red-light:        rgba(191,3,18,.08);
  --td-red-glow:         rgba(191,3,18,.15);

  /* Schatten */
  --shadow-sm:           0 1px 2px rgba(0,0,0,.05);
  --shadow-md:           0 4px 12px rgba(0,0,0,.07);
  --shadow-lg:           0 8px 30px rgba(0,0,0,.10);

  /* Radien */
  --radius-sm:           8px;
  --radius-md:           12px;
  --radius-lg:           16px;

  /* Typografie */
  --fs-h1:          clamp(2rem, 4vw, 3.25rem);
  --fs-h2:          clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3:          clamp(1.25rem, 2.5vw, 2rem);
  --fs-h4:          clamp(1.1rem, 2vw, 1.5rem);
  --fs-h5:          clamp(.95rem, 1.4vw, 1.2rem);
  --fs-body:        clamp(1rem, 1.1vw, 1.15rem);
  --fs-body-lg:     clamp(1.05rem, 1.3vw, 1.25rem);
  --fs-small:       clamp(.85rem, .95vw, .95rem);
  --fs-caption:     .8rem;
}


/* -----------------------------------------------------------------
   2. RESET & BASIS
   ----------------------------------------------------------------- */

/* Marken-Styling: "TechDo" schwarz/bold + Sub-Brand in td-red */
.brand-name { white-space: nowrap; }
.brand-sub { color: var(--td-red); font-style: italic; }

.pillar-claim {
  font-weight: 600;
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  margin-bottom: .5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; color: var(--text-primary); }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2;  color: var(--text-primary); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--text-primary); }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3;  color: var(--text-primary); }
h5 { font-size: var(--fs-h5); font-weight: 600; line-height: 1.35; color: var(--text-primary); }

p, li { font-size: var(--fs-body); line-height: 1.7; color: var(--text-secondary); }

.lead { font-size: var(--fs-body-lg); line-height: 1.7; color: var(--text-secondary); }

a { color: var(--td-red); }
a:hover { color: var(--td-red-hover); }


/* -----------------------------------------------------------------
   3. NAVIGATION (dunkel, sticky)
   ----------------------------------------------------------------- */

.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.site-header .navbar { padding: .6rem 0; }

.navbar-brand { padding-left: 0; }
.navbar-brand img { height: 40px; }

.site-header .nav-link {
  color: var(--text-dark-secondary) !important;
  font-weight: 500;
  font-size: var(--fs-small);
  padding: .5rem 1rem !important;
  transition: color .2s;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff !important;
}


/* -----------------------------------------------------------------
   4. HERO-SEKTIONEN
   ----------------------------------------------------------------- */

/* ---- Startseite Hero (Bild-Hintergrund + Bogen-Maske) ---- */
.page-header {
  position: relative;
  min-height: clamp(420px, 75vh, 850px);
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header.bow {
  mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path d='M0,0 H100 V82 C66,100 33,100 0,82 Z' fill='black'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path d='M0,0 H100 V82 C66,100 33,100 0,82 Z' fill='black'/></svg>");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  overflow: hidden;
}

.page-header .hero-box {
  position: absolute;
  top: 42%;
  left: 50px;
  transform: translateY(-50%);
  max-width: 780px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  z-index: 10;
}

.page-header .hero-box h1 { color: #fff; margin-bottom: .75rem; }
.page-header .hero-box p  { color: rgba(255,255,255,.85); font-size: var(--fs-body-lg); }

@media (max-width: 767.98px) {
  .page-header .hero-box {
    position: relative;
    top: auto; left: auto; transform: none;
    margin: 1rem 1rem 0;
    text-align: center;
    padding: 1.5rem;
  }
  .page-header .hero-box .d-flex { flex-direction: column; gap: .5rem; }
}

/* ---- Unterseiten Hero (Video / Canvas) ---- */
.header-layout-general {
  position: relative;
  min-height: 72vh;
  width: 100%;
  overflow: hidden;
  mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path d='M0,0 H100 V82 C66,100 33,100 0,82 Z' fill='black'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path d='M0,0 H100 V82 C66,100 33,100 0,82 Z' fill='black'/></svg>");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.header-layout-general .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  background: var(--bg-dark);
}

.header-textbox {
  position: absolute;
  top: 40%;
  left: 50px;
  transform: translateY(-50%);
  max-width: 600px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  z-index: 10;
}

.header-textbox h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
  font-style: italic;
}

.header-textbox h1 { font-size: var(--fs-h1); font-weight: 700; color: #fff; }
.header-textbox p  { color: rgba(255,255,255,.85); font-size: var(--fs-body-lg); }

@media (max-width: 767.98px) {
  .header-textbox {
    position: relative;
    top: auto; left: auto; transform: none;
    margin: 1rem 1rem 0;
    text-align: center;
  }
}

/* ---- Hintergrundbilder ---- */
#homepage > .page-header       { background-image: url('/images/header_start.png'); }
#project-partners > .page-header       { background-image: url('/images/header_project_partners.png'); }
#techdo-one > .page-header       { background-image: url('/images/header_techdo_one.png'); }
#techdo-one .hero-box h2 { color: rgba(255, 255, 255, .85); }
#brandvideos > .page-header      { background-image: url('/images/header_techdo_one.png'); }
#brandvideos .hero-box h2 { color: rgba(255, 255, 255, .85); }
#flyer > .page-header            { background-image: url('/images/header_start.png'); }
#flyer .hero-box h2 { color: rgba(255, 255, 255, .85); }
.hero-legal {
  background: linear-gradient(135deg, rgba(17,24,39,.75), rgba(30,41,59,.7), rgba(15,23,42,.75)),
              url('/images/futuristische bilder/Konzept der elektronischen Signatur, Geschäft in der Ferne, Bild eines Hologramms eines Vertrags und eines Stiftes zur Signat.jpg')
              center / cover no-repeat;
}

/* Header-Box auf /rechtliches transparenter — der dunkle Hero-Gradient sichert Lesbarkeit */
.hero-legal .header-textbox {
  background: rgba(0,0,0,.35);
}

.header-logo-png { height: 5vh; width: auto; }


/* -----------------------------------------------------------------
   5. SEITENINHALT-KOMPONENTEN
   ----------------------------------------------------------------- */

/* ---- Sektion-Abstände ---- */
.section        { padding: 5rem 0; }
.section-sm     { padding: 3rem 0; }

/* ---- Helle Sektion (Standard) ---- */
.section-light      { background: var(--bg-body); }
.section-surface    { background: var(--bg-surface); }

/* ---- Dunkle Sektion ---- */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-dark-primary);
}
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5 { color: #fff; }
.section-dark p, .section-dark li { color: var(--text-dark-secondary); }

/* ---- Statistik-Leiste ---- */
.stats-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.stat-item { text-align: center; padding: 1rem; }

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--td-red);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: .25rem;
}

/* Zertifikat-Logos in Stats-Bar (4. Spalte) */
.stat-certs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  min-height: clamp(2.4rem, 4vw, 3rem); /* an .stat-number-Höhe angeglichen */
}

.stat-certs img {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  transition: transform .25s ease-out, filter .25s ease-out;
  transform-origin: center center;
}

.stat-certs img:hover,
.stat-certs img:focus-visible {
  transform: scale(3);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25));
  z-index: 100;
  outline: none;
}

@media (max-width: 575.98px) {
  .stat-certs { gap: .5rem; }
  .stat-certs img { height: 38px; }
}

/* ---- Pillar Cards (Zwei-Säulen Engineering/Software) ---- */
.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}

.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pillar-card h3 { margin-bottom: 1rem; }
.pillar-card p  { line-height: 1.8; }

.pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.pillar-card ul li {
  display: flex;
  align-items: baseline;
  padding: .35rem 0;
  font-size: var(--fs-body);
  color: var(--text-secondary);
}

.pillar-card ul li i {
  color: var(--td-red);
  margin-right: .5rem;
  width: 1.1rem;
  flex-shrink: 0;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--td-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon i { font-size: 1.3rem; color: var(--td-red); }

/* ---- USP Cards ---- */
.usp-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.usp-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.usp-card i { font-size: 2.25rem; color: var(--td-red); margin-bottom: 1rem; display: block; }
.usp-card h5 { margin-bottom: .5rem; }

@media (max-width: 575.98px) {
  .usp-card { padding: 1.25rem 1rem; }
  .usp-card i { font-size: 1.75rem; margin-bottom: .75rem; }
}

/* ---- Feature Row (Text + Bild nebeneinander) ---- */
.feature-row { align-items: center; }

.feature-text h3 { margin-bottom: .75rem; }

.feature-text p {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.feature-img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-md);
}

/* ---- Process Steps ---- */
.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--td-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--td-red);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { color: #fff; }
.cta-section p  { color: rgba(255,255,255,.9); font-size: var(--fs-body-lg); }

.cta-section .btn-light {
  color: var(--td-red);
  font-weight: 600;
  border: none;
}

.cta-section .btn-light:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

/* ---- Intro Text ---- */
.page-intro {
  background: var(--bg-body);
  text-align: center;
}

.page-intro h2 { margin-bottom: 1rem; }
.page-intro p  { max-width: 800px; margin-left: auto; margin-right: auto; }


/* -----------------------------------------------------------------
   6. CARDS & TILES
   ----------------------------------------------------------------- */

.card {
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.card:hover {
  border-color: var(--td-red) !important;
  box-shadow: 0 6px 20px var(--td-red-glow);
  transform: translateY(-3px);
}

.card h5 { text-align: start; }
.card p  { text-align: start; font-size: var(--fs-small); color: var(--text-secondary); }

.section-dark .card {
  background: var(--bg-dark-surface) !important;
  border-color: var(--border-dark) !important;
  color: var(--text-dark-primary) !important;
}
.section-dark .card h5 { color: #fff; }
.section-dark .card p  { color: var(--text-dark-secondary); }

/* ---- Module Tile ---- */
.module-tile {
  display: block;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.module-tile:hover {
  color: var(--td-red);
  border-color: var(--td-red);
  transform: scale(1.03);
  box-shadow: 0 6px 20px var(--td-red-glow);
  text-decoration: none;
}

/* ---- Module Card (Software-Tabs) ---- */
.module-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}

.module-card:hover {
  border-color: var(--td-red);
  box-shadow: 0 6px 20px var(--td-red-glow);
  transform: translateY(-3px);
}

.module-card i { font-size: 2rem; color: var(--td-red); margin-bottom: 1rem; display: block; }
.module-card h5 { margin-bottom: .5rem; }
.module-card p  { font-size: var(--fs-small); margin: 0; }

.section-dark .module-card {
  background: var(--bg-dark-surface);
  border-color: var(--border-dark);
}
.section-dark .module-card h5 { color: #fff; }
.section-dark .module-card p  { color: var(--text-dark-secondary); }

/* ---- Gallery Cards ---- */
.gallery-card {
  position: relative;
  overflow: hidden;
  padding-bottom: 5rem;
  min-height: 46rem;
  max-height: 50rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.gallery-card:hover { border-color: var(--td-red); }

.gallery-img {
  object-fit: cover;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}

.gallery-caption-box {
  position: absolute;
  margin-top: -80px;
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  text-align: start;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.gallery-caption-box h3 { color: var(--td-red); font-size: var(--fs-h5); }
.gallery-caption-box p  { font-size: var(--fs-small); }

.gc-sm { min-height: 18rem; }
.gc-lg { min-height: 25rem; }

/* ---- Related Module Box ---- */
.related-module-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}

.related-module-box:hover {
  border-color: var(--td-red);
  box-shadow: 0 6px 20px var(--td-red-glow);
  color: var(--td-red);
}

.related-module-box i { color: var(--td-red); font-size: 1.5rem; }
.related-module-box h5 { margin-top: .75rem; font-weight: 600; }
.related-module-box p  { font-size: var(--fs-small); color: var(--text-muted); }


/* -----------------------------------------------------------------
   7. AKKORDEON & TABS
   ----------------------------------------------------------------- */

/* Tabs */
.nav-tabs-dark {
  border-bottom: 1px solid var(--border-dark);
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-tabs-dark .nav-link {
  background: var(--bg-dark-surface);
  color: var(--text-dark-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .75rem 1.5rem;
  font-weight: 500;
  transition: all .3s;
}

.nav-tabs-dark .nav-link:hover {
  color: #fff;
  background: var(--bg-dark-hover);
}

.nav-tabs-dark .nav-link.active {
  background: var(--td-red);
  color: #fff;
  border-color: var(--td-red);
}

/* Tabs – Light-Variante (für helle Hintergründe) */
.nav-tabs-light {
  border-bottom: 1px solid var(--border-subtle);
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-tabs-light .nav-link {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .75rem 1.5rem;
  font-weight: 500;
  transition: all .3s;
}

.nav-tabs-light .nav-link:hover {
  color: var(--td-red);
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.nav-tabs-light .nav-link.active {
  background: var(--td-red);
  color: #fff;
  border-color: var(--td-red);
}

.tab-content { padding-top: 2rem; }

/* Akkordeon */
.accordion-dark .accordion-item {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  margin-bottom: .5rem;
  scroll-margin-top: 80px;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.accordion-dark .accordion-button {
  background: var(--bg-dark-surface);
  color: var(--text-dark-primary);
  font-weight: 500;
  font-size: var(--fs-h5);
  box-shadow: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
}
.accordion-dark .accordion-button > i { width: 1.5em; text-align: center; }

.accordion-dark .accordion-button:not(.collapsed) {
  background: var(--td-red);
  color: #fff;
}

.accordion-dark .accordion-button::after { filter: brightness(0) invert(1); }
.accordion-dark .accordion-button.collapsed::after { filter: brightness(0) invert(.6); }

.accordion-dark .accordion-button:focus {
  box-shadow: 0 0 0 .15rem var(--td-red-glow);
}

.accordion-dark .accordion-collapse {
  background: rgba(255,255,255,.02);
}

.accordion-dark .accordion-body {
  color: var(--text-dark-secondary);
  padding: 1.5rem;
  font-size: var(--fs-body);
  line-height: 1.8;
}


/* -----------------------------------------------------------------
   8. BUTTONS (Bootstrap Overrides)
   ----------------------------------------------------------------- */

.btn-danger {
  background-color: var(--td-red) !important;
  border-color: var(--td-red) !important;
  color: #fff !important;
}
.btn-danger:hover {
  xcolor: #1a1a2e !important; 
  background-color: var(--td-red-hover) !important;
  border-color: var(--td-red-hover) !important;
}

.btn-outline-light:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
}

.btn-outline-dark {
  color: #fff;
  border-color: #1a1a2e;
  background: #1a1a2e;
  transition: all .3s;
}
.btn-outline-dark:hover {
  color: #1a1a2e;
  background: rgba(255,255,255,.15);
  border-color: #2d2d44;
}


.bg-danger { background-color: var(--td-red) !important; }
.text-danger { color: var(--td-red) !important; }


/* -----------------------------------------------------------------
   9. KONTAKT & RECHTLICHES
   ----------------------------------------------------------------- */

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.contact-info-card i {
  color: var(--td-red);
  font-size: 1.25rem;
  margin-top: .25rem;
  flex-shrink: 0;
}

.contact-info-card h5 { font-size: 1rem; margin-bottom: .25rem; }
.contact-info-card a { color: var(--text-secondary); transition: color .2s; }
.contact-info-card a:hover { color: var(--td-red); }

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  width: 100%;
  transition: border-color .3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--td-red);
  outline: none;
  box-shadow: 0 0 0 3px var(--td-red-glow);
}

/* Honeypot — visuell verstecken, aber für Bots im DOM lesbar */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Status-Meldung unter dem Kontaktformular */
.contact-form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  white-space: pre-line;
  line-height: 1.5;
}

.contact-form-status--ok {
  background: #e6f5ec;
  color: #11643a;
  border: 1px solid #6cc596;
}

.contact-form-status--error {
  background: #fdecee;
  color: #842029;
  border: 1px solid #ef9aa2;
}

/* Google Maps – Click-to-Load (DSGVO) */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  height: 400px;
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.map-consent i.fa-map-marked-alt {
  font-size: 3rem;
  color: var(--td-red);
  opacity: .8;
}

.map-consent p {
  color: rgba(255,255,255,.7);
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}

.map-external-link {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s;
}

.map-external-link:hover { color: #fff; }

.map-iframe iframe {
  display: block;
  border-radius: var(--radius-md);
}

.legal-content h1, .legal-content h2, .legal-content h3, .legal-content h4 { color: var(--text-primary); }
.legal-content p, .legal-content li, .legal-content td { color: var(--text-secondary); }
.legal-content a { color: var(--td-red); }
.legal-content a:hover { color: var(--td-red-hover); }

.ref-logo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: border-color .3s, box-shadow .3s;
}

.ref-logo-card:hover {
  border-color: var(--td-red);
  box-shadow: 0 6px 20px var(--td-red-glow);
}

.ref-logo-card img {
  max-height: 50px;
  max-width: 100%;
  filter: grayscale(100%) opacity(.5);
  transition: filter .3s;
}

.ref-logo-card:hover img { filter: grayscale(0%) opacity(1); }


/* -----------------------------------------------------------------
   10. FOOTER (dunkel)
   ----------------------------------------------------------------- */

footer {
  background: var(--bg-dark);
  color: var(--text-dark-secondary);
  padding: 2.5rem 0 1.5rem;
}

footer a { text-decoration: none !important; color: var(--text-dark-secondary); transition: color .3s; }
footer a:hover { color: #fff; }
footer b a { color: var(--text-dark-primary); }

.social-icon { padding: 0; margin: 0; display: flex; gap: 8px; list-style: none; }
.social-icon li { display: flex; }

.social-icon li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #706F6C;
  border: 1px solid #706F6C;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  width: 44px;
  height: 44px;
  transition: all .3s;
}

.social-icon li a:hover {
  background: var(--td-red);
  border-color: var(--td-red);
  color: #fff;
}

.sym-ariba {
  display: block;
  width: 20px;
  height: 20px;
  background: url("/images/sym/ariba-24-gray.png") no-repeat center / contain;
}

.social-icon li a:hover .sym-ariba {
  background-image: url("/images/sym/ariba-24-white.png");
}


/* -----------------------------------------------------------------
   11. SYSTEMÜBERSICHT (Interaktive Tile-Ansicht)
   ----------------------------------------------------------------- */

/* Tile-Buttons */
.sys-tile {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: .85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-small);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}

.sys-tile:hover {
  border-color: var(--td-red);
  color: var(--td-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--td-red-glow);
}

.sys-tile i {
  font-size: 1.15rem;
  color: var(--td-red);
  width: 1.3rem;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
}

.sys-tile span {
  flex: 1 1 auto;
  min-width: 0;            /* verhindert Flex-Overflow */
  hyphens: auto;           /* deutsche Silbentrennung dank lang="de" */
  overflow-wrap: anywhere; /* Backup für Wörter ohne Wörterbucheintrag */
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .sys-tile {
    padding: .7rem .75rem;
    gap: .5rem;
  }
  .sys-tile i {
    font-size: 1rem;
    width: 1.15rem;
  }
}

/* Inhaltsbereich (Slide-Down) */
.sys-content-area {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height .5s ease, opacity .4s ease;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.sys-content-area.show {
  opacity: 1;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* Dynamisch geladene Inhalte – Überschrift */
.sys-content-area .ueberschrift h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .75rem;
}

/* Dynamisch geladene Inhalte – Vorschautext */
.sys-content-area .preview-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Thumbnail (Seite 1) */
.sys-content-area .img-thumb {
  max-width: 25%;
  height: auto;
  margin-left: 1rem;
  margin-bottom: .75rem;
  margin-right: .5rem;
  padding: 3px;
  border-bottom: 3px solid var(--border-hover);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s;
}

.sys-content-area .img-thumb:hover {
  border-color: var(--td-red);
  box-shadow: 0 4px 12px var(--td-red-glow);
}

.sys-content-area .img-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

.sys-content-area .img-thumb p {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sys-content-area .img-thumb p:hover {
  color: var(--td-red);
}

.sys-content-area .img-thumb.no-click img { cursor: default; }

/* Carousel (Seite 2) */
.sys-content-area .carousel-inner {
  margin-bottom: 3px;
}

.sys-content-area .carousel-item img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Carousel-Pfeile (deutlich sichtbar) */
.sys-content-area .carousel-control-prev,
.sys-content-area .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(0, 0, 0, .55);
  border-radius: 50%;
  opacity: 1;
  transition: background .25s;
}

.sys-content-area .carousel-control-prev { left: .75rem; }
.sys-content-area .carousel-control-next { right: .75rem; }

.sys-content-area .carousel-control-prev:hover,
.sys-content-area .carousel-control-next:hover {
  background: var(--td-red);
}

.sys-content-area .carousel-control-prev-icon,
.sys-content-area .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: none;
}

/* Indikatoren (Punkte) */
.sys-content-area .carousel-indicators {
  bottom: .5rem;
  margin-bottom: 0;
}

.sys-content-area .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(0, 0, 0, .3);
  opacity: 1;
  margin: 0 4px;
  transition: background-color .3s, transform .2s;
}

.sys-content-area .carousel-indicators .active {
  background-color: var(--td-red);
  transform: scale(1.2);
}

/* Bildzähler */
.sys-content-area .carousel-counter {
  position: absolute;
  top: 3rem;
  right: .75rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .75rem;
  padding: .25rem .6rem;
  border-radius: var(--radius-sm);
  z-index: 5;
  pointer-events: none;
}

/* Galerie schließen (X) */
.gallery-close-btn {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.gallery-close-btn:hover {
  background: var(--td-red);
}

/* Generische Bilder im Content (außerhalb Carousel) */
.sys-content-area > img,
.sys-content-area .thumbnails-preview > img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

@media (max-width: 767.98px) {
  .sys-content-area .img-thumb {
    max-width: 40%;
  }
  .sys-content-area .carousel-item img {
    max-height: 50vh;
  }
}


/* -----------------------------------------------------------------
   11.4 FLYER-VORSCHAU
   ----------------------------------------------------------------- */

.flyer-page-link {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}

.flyer-page-link:hover,
.flyer-page-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.flyer-page-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------
   11.5 BRANDVIDEOS
   ----------------------------------------------------------------- */

.brand-video-section { overflow: hidden; }

.brand-video-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.brand-video-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.brand-video-text { padding: 1rem 0; }

.brand-video-eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--td-red);
  margin-bottom: .75rem;
}

.brand-video-text h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.brand-video-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.brand-video-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brand-video-facts li {
  position: relative;
  padding: .35rem 0 .35rem 0;
  color: var(--text-primary);
  font-size: var(--fs-body);
}

.brand-video-facts li i {
  color: var(--td-red);
  margin-right: .6rem;
  font-size: .9em;
}

@media (max-width: 991.98px) {
  .brand-video-text { padding: 0; text-align: left; }
  .brand-video-text h2 { margin-top: 1rem; }
}

/* -----------------------------------------------------------------
   12. UTILITIES
   ----------------------------------------------------------------- */

.text-white-75 { color: rgba(255,255,255,.75) !important; }
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading p { max-width: 700px; margin: .75rem auto 0; }

.module-description { font-size: var(--fs-body); line-height: 1.7; color: var(--text-secondary); }

/* Stretch-Bilder/Videos (Unterseiten) */
.image-stretch,
.video-stretch       { width: 120%; max-width: none; height: auto; border-radius: var(--radius-md); pointer-events: none; }
.image-stretch-reverse,
.video-stretch-reverse { width: 120%; max-width: none; height: auto; border-radius: var(--radius-md); margin-left: -57px; }

/* Content Textboxes (Unterseiten) */
.content-textbox {
  position: relative;
  width: 150%;
  margin-left: -30%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  z-index: 5;
}

.content-textbox-reverse {
  position: relative;
  width: 150%;
  margin-left: 10%;
  transform: translateX(-20%);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  z-index: 5;
}

.content-textbox h4, .content-textbox-reverse h4 { color: var(--text-primary); }
.content-textbox p,  .content-textbox-reverse p  { color: var(--text-secondary); }

.section-video-mobile {
  width: 100%;
  height: 25rem;
  max-width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0,0,0,.5);
}

.module-gallery { height: 54rem; }
.module-gallery-software { height: 44rem; }

.related-modules button.btn { transition: all .3s; font-size: 1.1rem; padding: .6rem 1.4rem; }
button[aria-expanded="false"] .when-expanded { display: none; }
button[aria-expanded="true"] .when-collapsed { display: none; }


/* -----------------------------------------------------------------
   12. RESPONSIVE
   ----------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .content-textbox,
  .content-textbox-reverse {
    position: static;
    width: 100%;
    margin: 0;
    transform: none;
    box-shadow: none;
  }

  .image-stretch,
  .image-stretch-reverse,
  .video-stretch,
  .video-stretch-reverse {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
    object-fit: cover;
  }

  .section-video-mobile { height: auto; }

  .gallery-card { min-height: 40rem; }

  .gallery-caption-box {
    width: calc(100% - 24px);
    font-size: .9rem;
  }

  .module-gallery,
  .module-gallery-software {
    height: auto;
    text-align: start;
  }
}


/* Print-Logo: standardmäßig ausblenden */
.print-logo { display: none; }

/* -----------------------------------------------------------------
   PRINT
   ----------------------------------------------------------------- */

@media print {
  /* Allgemein: Hintergründe, Schatten, Animationen entfernen */
  * { box-shadow: none !important; text-shadow: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }

  /* Navigation + Footer ausblenden */
  nav, .navbar, footer, .cta-section, .btn-print { display: none !important; }

  /* Hero kompakt machen */
  .header-layout-general,
  .page-header {
    min-height: auto !important;
    height: auto !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    background: var(--bg-dark) !important;
    padding: 1.5rem 2rem !important;
    position: relative !important;
  }
  .header-layout-general .bg-video,
  .header-layout-general video { display: none !important; }
  .header-textbox {
    position: relative !important;
    top: auto !important; left: auto !important;
    transform: none !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border: none !important;
    max-width: 100% !important;
  }
  .hero-box {
    padding: 1rem 0 !important;
  }

  /* Print-Logo: nur beim Drucken sichtbar */
  .print-logo {
    display: block !important;
    margin: 1.5rem auto 1rem;
  }
  .print-logo img {
    max-width: 200px;
    height: auto;
  }

  /* Rechtliches: Hero ausblenden, Überschrift bleibt als Text */
  .hero-legal {
    background: none !important;
    padding: 1rem 2rem 0 !important;
  }
  .hero-legal .header-textbox h1 {
    color: #000 !important;
    font-size: 18pt;
    text-align: center;
  }
  .hero-legal .header-textbox p {
    display: none !important;
  }

  /* Rechtliches: Nur aktiven Tab drucken */
  #legalTabContent > .tab-pane {
    display: none !important;
  }
  #legalTabContent > .tab-pane.active.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #legalTabs { display: none !important; }

  /* Legal Content druckfreundlich */
  .legal-content h2 { font-size: 14pt; color: #000 !important; }
  .legal-content h3 { font-size: 12pt; color: #000 !important; }
  .legal-content p, .legal-content li { color: #333 !important; font-size: 10pt; }

  /* Abschnitte nicht umbrechen */
  .legal-content h3 { page-break-after: avoid; }

  /* Sektionshintergründe entfernen */
  .section-dark, .section-surface { background: transparent !important; color: #000 !important; }
  .section-dark * { color: #000 !important; }

  /* Links als URL anzeigen */
  .legal-content a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  .legal-content a { color: #000 !important; text-decoration: underline !important; }
}
