/*
 * VOMA Child Theme – footer.css
 *
 * VOMA Service Footer (Custom) und GeneratePress Site Info (GP).
 *
 * Quellen:
 *   06_Standards/CI/COMPONENTS.md  – Zielwerte Footer
 *   06_Standards/CI/COLORS.md      – Farbpalette
 *   06_Standards/DEVELOPMENT/CSS-TOKENS.md – Token-Register
 *   06_Standards/DEVELOPMENT/BREAKPOINTS.md – Mobile First
 */

/* ============================================================
   VOMA SERVICE FOOTER
   Quelle: COMPONENTS.md – Hintergrund #1f1f1f, Text rgba(255,255,255,.82)
   ============================================================ */

.voma-footer {
  position: relative;
  /* Sehr feiner Verlauf statt Flachfarbe (leichtes Licht von oben)
     plus dezente Noise-Textur (SVG-Filter, kein Bild-Asset nötig) –
     verhindert, dass die dunkle Fläche komplett flach wirkt, ohne
     einen sichtbaren Farbverlauf zu erzeugen (UX-Review 02.07.2026,
     Footer-Runde 2: "Premium, ruhig, kein Standard-WP-Footer"). */
  background-color: #1c1c1c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 900px 420px at 50% -8%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, #212121 0%, #1a1a1a 100%);
  color: rgba(255, 255, 255, .82);
  padding-block: var(--voma-space-7);
}

.voma-footer__inner {
  max-width: var(--voma-max);
  margin-inline: auto;
  padding-inline: var(--voma-space-5);
}

/* ============================================================
   GRID
   Mobile: 1 Spalte
   Desktop: 4 gleichbreite Spalten
   Quelle: COMPONENTS.md – Desktop Grid repeat(4, 1fr), Gap 32px
   ============================================================ */

.voma-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ============================================================
   SPALTE (Mobile: Accordion-Style)
   ============================================================ */

.voma-footer__col {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.voma-footer__col:last-child {
  border-bottom: none;
}

/* Spalten-Titel als Accordion-Toggle auf Mobile.
   UX-Review 02.07.2026 (Footer-Runde 2): der grüne Akzentstrich unter
   dem Titel (Runde 1) wirkte laut Felix "wie ein beliebiges Template".
   Entfernt – Hierarchie entsteht jetzt ausschließlich aus Typografie
   (Größe, Letter-Spacing, Abstand zum Inhalt) und den bereits
   vorhandenen dezenten vertikalen Spaltentrennern (Desktop), nicht aus
   einem dekorativen Element. */
.voma-footer__col-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--voma-space-4) var(--voma-space-6);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  cursor: pointer;
  /* appearance:none entfernt native Button-Chrome (manche Browser
     zeigen sonst einen eigenen Hover-/Active-Hintergrund auf <button>,
     unabhängig von unserem CSS – sichtbar als unbeabsichtigter
     "Highlight"-Block, Felix-Feedback 03.07.2026). */
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  transition: color var(--voma-transition-base);
}

/* Hover/Active nur dort sinnvoll, wo der Titel tatsächlich klickbar
   ist (Mobile-Accordion) – zeigt an "das lässt sich aufklappen".
   Auf Desktop (siehe Media Query unten) bewusst deaktiviert, da der
   Titel dort nicht interaktiv ist. */
.voma-footer__col-title:hover,
.voma-footer__col-title:focus-visible {
  color: rgba(255, 255, 255, .8);
}

/* Akkordeon-Pfeil */
.voma-footer__col-title::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, .55);
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--voma-transition-base);
}

.voma-footer__col.is-open .voma-footer__col-title::after {
  transform: rotate(-135deg);
}

/* Spalten-Inhalt: mobil versteckt, per JS geöffnet */
.voma-footer__col-content {
  display: none;
  padding-bottom: var(--voma-space-5);
}

.voma-footer__col.is-open .voma-footer__col-content {
  display: block;
}

/* ============================================================
   LINKS
   Quelle: COMPONENTS.md – Links #52b165
   ============================================================ */

.voma-footer__links {
  list-style: none;
  margin: 0 0 var(--voma-space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-3);
}

.voma-footer__links:last-child {
  margin-bottom: 0;
}

/* :link/:visited explizit gleich gesetzt (Felix-Feedback: Links dürfen
   nach dem Anklicken nicht verblassen/Farbe wechseln – keine
   Browser-Standard-Besucht-Farbe, keine Unterscheidung zu :link).
   Ausschließlich :hover/:focus-visible weichen ab. */
.voma-footer__links a:link,
.voma-footer__links a:visited {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--voma-space-2);
  width: fit-content;
  color: var(--voma-green);
  font-size: 15px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--voma-transition-base), transform var(--voma-transition-base);
}

/* Elegante Unterstreichung, die von links einblendet, statt eines
   abrupten Farbwechsels – zusätzlich ein minimaler Vorwärts-Versatz,
   dieselbe Bewegungssprache wie die Pfeil-Icons auf Kacheln/Karten
   (translateX bei Hover). Nur auf reinen Text-Links – bei den
   Icon-Zeilen (Spalte 1) würde die Linie unpassend auch unter dem
   Icon durchlaufen, dort genügt Farbe + Versatz als Hover-Signal. */
.voma-footer__links:not(.voma-footer__links--icon) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--voma-transition-base);
}

.voma-footer__links a:hover,
.voma-footer__links a:focus-visible {
  color: var(--voma-green-dark);
  transform: translateX(2px);
}

.voma-footer__links a:hover::after,
.voma-footer__links a:focus-visible::after {
  transform: scaleX(1);
}

/* Icon-Variante (Kontaktzeilen in Spalte 1) */
.voma-footer__links--icon a {
  gap: var(--voma-space-3);
}

.voma-footer__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .4);
  transition: color var(--voma-transition-base);
}

.voma-footer__links--icon a:hover .voma-footer__icon,
.voma-footer__links--icon a:focus-visible .voma-footer__icon {
  color: var(--voma-green-dark);
}

/* ============================================================
   FOOTER-TEXT (Fließtext, Adressen, Beschreibungen)
   ============================================================ */

.voma-footer__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  /* Vorher ungesetzt (Browser-Default-Absatzabstand, kein Token) –
     Spalte 1/4 mischen mehrere .voma-footer__text-Blöcke mit
     .voma-footer__links, jetzt einheitlicher Rhythmus über beide. */
  margin: 0 0 var(--voma-space-4);
}

.voma-footer__text:last-child {
  margin-bottom: 0;
}

.voma-footer__text a:link,
.voma-footer__text a:visited {
  color: var(--voma-green);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--voma-transition-base);
}

.voma-footer__text a:hover,
.voma-footer__text a:focus-visible {
  color: var(--voma-green-dark);
}

/* Rein informativer Text ohne eigene Handlung (Firmenname,
   Gesprächszeiten-Werte, Regionsliste) – zurückgenommen gegenüber den
   grünen, tatsächlich klickbaren Links, für klarere Hierarchie. */
.voma-footer__text--muted {
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   GESPRÄCHSZEITEN
   UX-Review 02.07.2026 (Footer-Runde 2): Karten-Hintergrund/-Rahmen
   entfernt ("weniger Dekoration, mehr Typografie und Weißraum",
   Felix) – Struktur entsteht jetzt nur noch aus Label + Zeilenabstand,
   keine eigene Fläche mehr.
   ============================================================ */

.voma-footer__hours-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin: var(--voma-space-2) 0 var(--voma-space-3);
}

.voma-footer__hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--voma-space-3);
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  padding-block: 4px;
}

.voma-footer__hours-row span:first-child {
  color: rgba(255, 255, 255, .5);
}

/* ============================================================
   USP-LEISTE
   Schmaler Streifen zwischen Spalten-Grid und Copyright-Zeile –
   vier kurze Vertrauenspunkte, textbasiert statt mit Icons, um die
   Fläche nicht zu überladen.
   ============================================================ */

.voma-footer__usp {
  list-style: none;
  margin: var(--voma-space-7) 0 0;
  padding: var(--voma-space-5) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-3);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
}

.voma-footer__usp li {
  display: flex;
  align-items: center;
  gap: var(--voma-space-2);
}

.voma-footer__usp li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--voma-green);
  flex-shrink: 0;
}

/* ============================================================
   DESKTOP BREAKPOINT (≥ 64rem / 1024px)
   Quelle: COMPONENTS.md – Desktop Grid repeat(4, 1fr), Gap 32px
   ============================================================ */

@media (min-width: 64rem) {
  /* Desktop-Spacing-Pass 02.07.2026 (Runde 2): 48px Section-Padding
     blieb bisher bei jeder Breite gleich. */
  .voma-footer {
    padding-block: 72px;
  }

  .voma-footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--voma-space-6);
  }

  /* Horizontale Mobile-Trennlinien entfallen, stattdessen sehr feine
     vertikale Trennlinien zwischen den Spalten – hochwertiger als eine
     durchgehende Linie über die volle Breite. */
  .voma-footer__col {
    border-bottom: none;
  }

  .voma-footer__col:not(:first-child) {
    border-inline-start: 1px solid rgba(255, 255, 255, .08);
    padding-inline-start: var(--voma-space-4);
  }

  .voma-footer__usp {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--voma-space-6);
  }

  /* Titel auf Desktop: kein Toggle, kein Pfeil, kein Hover-Effekt –
     die Spalte ist hier immer offen, ein Hover-Highlight auf einem
     nicht-interaktiven Element wirkt nur verwirrend (Felix-Feedback
     03.07.2026: "auf Desktop sollte nichts passieren"). */
  .voma-footer__col-title {
    cursor: default;
    padding-block: 0 var(--voma-space-6);
  }

  .voma-footer__col-title:hover,
  .voma-footer__col-title:focus-visible {
    color: rgba(255, 255, 255, .52);
  }

  .voma-footer__col-title::after {
    display: none;
  }

  /* Inhalt immer sichtbar auf Desktop */
  .voma-footer__col-content {
    display: block;
    padding-bottom: 0;
  }
}

/* ============================================================
   GENERATEPRESS SITE INFO
   GP-Klasse .site-info – immer unterhalb des VOMA-Footers.
   Quelle: COMPONENTS.md – Hintergrund #1f1f1f, Text #ffffff,
   Links #ffffff, Hover var(--voma-green), Schrift 15px
   ============================================================ */

.site-info {
  /* Eigener, minimal dunklerer Ton als .voma-footer (statt derselben
     Flachfarbe) – macht die Copyright-Zeile klar als eigenen
     Abschnitt lesbar, nicht nur über die dünne Trennlinie. */
  background: #161616;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: var(--voma-space-4);
  text-align: center;
}

.site-info a:link,
.site-info a:visited {
  color: #ffffff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--voma-transition-base);
}

.site-info a:hover,
.site-info a:focus-visible {
  color: var(--voma-green);
}
