/* ============================================================
   Footer (User-Vorgabe 19.07., ueberarbeitet 19.07.)
   Orientiert am Entwurf der alten Live-Site (FireShot Figma 161:9),
   angepasst ans neue Design.
   Anpassungen 19.07. (2. Runde):
   - dunklerer Blauton (#061926, aus Screenshot gemessen)
   - Logo +130% (40 -> 92px), keine Trennlinie darunter
   - gesamter Footer 12px
   - Newsletter: Feld einzeilig, Button nur als Icon
   - Datenschutz-Hinweis deutlich kleiner
   - Zusammenarbeit: CTAs mit Kategorie-Ueberschrift, direkt zu den Pop-ups

   Ausgelagert aus components.css (29.07.), damit Website- und Projekt-
   Footer (includes/website/footer.php, includes/project/footer.php)
   dieselbe Quelle nutzen, ohne dass Projektseiten den Rest von
   components.css/base.css mitladen muessen. Haengt nur von den
   Variablen aus tokens.css ab, sonst von nichts.

   .sr-only ist hier zusaetzlich definiert (sonst nur in base.css), damit
   der Footer auch auf Projektseiten funktioniert, die base.css nicht laden.
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.footer {
  background: var(--hng-blau);
  color: var(--beige);
  padding-block: 102px 0; /* +30px Abstand ueber dem Logo (User-Vorgabe 19.07.) */
  font-size: 12px; /* gesamter Footer 12px (User-Vorgabe 19.07.) */
}
.footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}
.footer__marke {
  display: flex;
  justify-content: center;
  padding-bottom: 78px; /* +30px Abstand unter dem Logo (User-Vorgabe 19.07.) */
  /* keine Trennlinie unter dem Logo (User-Vorgabe 19.07.) */
}
.footer__marke img { height: 92px; width: auto; } /* 40px +130% = 92px (User-Vorgabe 19.07.) */

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 0.9fr;
  gap: 56px;
  padding-block: 40px 86px; /* +30px Abstand ueber dem Strich der unteren Leiste (User-Vorgabe 19.07.) */
}
.footer__spalte-titel {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 13px; /* -40% (war 22px, User-Vorgabe 19.07.) */
}
.footer__spalte p,
.footer__spalte address {
  font-style: normal;
  font-size: 12px;
  line-height: 1.7;
  color: var(--beige);
}
.footer__spalte a { color: var(--beige); text-decoration: none; }
.footer__spalte a:hover { color: var(--weiss); text-decoration: underline; }

/* Kontakt-Spalte */
.footer__kontakt-zeile { margin-bottom: 14px; }
.footer__kontakt-zeile:last-child { margin-bottom: 0; }

/* Newsletter-Spalte (nutzt die freigegebene .feld-Input-Sprache) */
.footer__newsletter-copy {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
  color: var(--beige);
}
/* Feld + Icon-Button in EINER Zeile (User-Vorgabe 19.07.) */
.footer__newsletter-form {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 340px;
}
.footer__newsletter-form .feld { flex: 1; }
.footer__newsletter-form .feld__fehler { margin-top: 6px; }

/* .feld ist die site-weite Formularfeld-Sprache aus components.css (Kontakt-,
   Newsletter-Formulare etc.). Hier dupliziert, weil Projektseiten nur footer.css
   laden, nicht das komplette components.css (~3500 Zeilen fachfremde Sektionen).
   Bei Aenderungen an .feld in components.css auch hier nachziehen. */
.feld input[type="text"],
.feld input[type="email"] {
  width: 100%;
  height: 34px;
  padding: 4px 15px;
  background: rgb(255 255 255 / 0.10);
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  color: var(--weiss);
  transition: border-color var(--dur-schnell) var(--ease),
              background-color var(--dur-schnell) var(--ease);
}
.feld input::placeholder { color: var(--weiss); opacity: 1; font-size: var(--fs-nav); }
.feld input:focus {
  outline: none;
  border-color: var(--weiss);
  background: rgb(255 255 255 / 0.16);
}
.feld input[aria-invalid="true"] { border-color: var(--orange); }

.feld__fehler {
  display: none;
  font-size: var(--fs-nav);
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
}
.feld.hat-fehler .feld__fehler { display: block; }
/* Button nur als Icon (quadratisch, orange, wie Vorlage) */
.footer__newsletter-btn {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-m);
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--weiss);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-schnell) var(--ease),
              color var(--dur-schnell) var(--ease),
              transform var(--dur-schnell) var(--ease);
}
.footer__newsletter-btn:hover { background: var(--weiss); color: var(--orange); transform: translateY(-1px); }
.footer__newsletter-btn svg { width: 16px; height: 16px; }
/* Datenschutz-Hinweis viel kleiner (User-Vorgabe 19.07.) */
.footer__newsletter-hinweis {
  margin-top: 10px;
  font-size: 8px;
  line-height: 1.4;
  color: rgb(245 240 232 / 0.55);
}
.footer__newsletter-hinweis a { color: rgb(245 240 232 / 0.55); }

/* Zusammenarbeit-Spalte: CTA-Gruppen mit Kategorie-Ueberschrift */
.footer__cta-liste { display: grid; gap: 20px; }
.footer__cta-gruppe { display: grid; gap: 5px; }
.footer__cta-kat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--beige);
  text-decoration: none;
  transition: gap var(--dur-schnell) var(--ease), color var(--dur-schnell) var(--ease);
}
.footer__cta svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--orange);
  transition: transform var(--dur-schnell) var(--ease);
}
.footer__cta:hover { color: var(--weiss); text-decoration: none; }
.footer__cta:hover svg { transform: translateX(3px); }

/* Social-Spalte */
.footer__social { display: flex; gap: 12px; }
/* Untere Ausrichtung: Alle Grid-Spalten sind gleich hoch (grid stretch).
   In der Zusammenarbeit-Spalte wird die CTA-Liste ans Spaltenende geschoben,
   in der Social-Spalte der "Folgen Sie uns"-Block. Dadurch liegt die
   Icons-Unterkante exakt auf der Unterkante von "Jetzt Beratung vereinbaren"
   (User-Vorgabe 19.07.). */
.footer__spalte { display: flex; flex-direction: column; }
/* Spalte 3 (Zusammenarbeit): CTA-Liste, aber KEINE Social-Icons */
.footer__spalte:has(.footer__cta-liste):not(:has(.footer__social)) .footer__cta-liste { margin-top: auto; }
/* Spalte 4 (mit Social): Social-Titel + Icons als Einheit nach unten */
.footer__social-titel { margin-top: auto; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-m);
  background: rgb(255 255 255 / 0.08);
  color: var(--beige);
  transition: background-color var(--dur-schnell) var(--ease), color var(--dur-schnell) var(--ease);
}
.footer__social a:hover { background: var(--orange); color: var(--weiss); }
.footer__social svg { width: 18px; height: 18px; }
.footer__social a i { font-size: 18px; line-height: 1; }

/* Untere Leiste: Copyright + Rechtslinks */
.footer__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 12px;
  color: rgb(245 240 232 / 0.7);
}
.footer__rechtslinks { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__rechtslinks a { color: rgb(245 240 232 / 0.7); text-decoration: none; }
.footer__rechtslinks a:hover { color: var(--weiss); text-decoration: underline; }

@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__newsletter-form { max-width: none; }
  .footer__leiste { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer { padding-block: 64px 0; }
  .footer__grid { gap: 32px; }
  /* Untere Ausrichtung nur im mehrspaltigen Desktop-Footer sinnvoll; mobil
     stapeln die Spalten normal (auto-Margins ohne Wirkung, hier neutralisiert). */
  .footer__spalte:has(.footer__cta-liste):not(:has(.footer__social)) .footer__cta-liste { margin-top: 0; }
  .footer__social-titel { margin-top: 24px; padding-top: 0; }
}
