/* ============================================================
   Gemeinsames Design für alle Bewerbungsseiten.
   Diese Datei NICHT pro Firma ändern – sie gilt für alle Seiten.
   ============================================================ */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1c2430;
  --text-soft: #55606e;
  --heading: #1B2A4A;        /* Navy – Überschriften (wie CV-Sektionsköpfe) */
  --gold: #B8924B;           /* Gold/Champagner – Akzent (wie CV) */
  --accent: #1B2A4A;         /* Navy – primäre Buttons/Aktionen */
  --accent-hover: #14203a;
  --border: #e4e7ec;         /* neutrale Umrandungen (Karte, Felder) */
  --shadow: 0 10px 40px rgba(20, 34, 60, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #161d27;
    --text: #eef2f7;
    --text-soft: #a6b0bd;
    --heading: #eaf0f8;
    --gold: #cdb27f;
    --accent: #3a5488;
    --accent-hover: #47639b;
    --border: #2a3442;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

@media (max-width: 560px) {
  .wrap { padding: 24px 16px 48px; }
  .card { padding: 24px; }
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 8px;
}
.eyebrow::before {
  content: "» ";
  color: var(--gold);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.45rem, 5.5vw, 1.9rem);   /* wächst fließend mit */
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--heading);
  overflow-wrap: break-word;                  /* lange Wörter brechen sauber */
}
h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 14px;
  background: var(--gold);
  border-radius: 2px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0 0 28px;
}

.intro p { font-size: 1.05rem; margin: 0 0 16px; }

.video {
  position: relative;
  width: 100%;
  margin: 28px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.video video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;      /* nichts wird abgeschnitten */
}
/* Hinweis: Das Bewerbungsvideo laeuft bewusst ueber die volle Breite – auch im
   Hochformat. Die Verkleinerung von Hochformat-Videos gilt nur fuer die
   kleinen Clips auf den Einblicke-Seiten (siehe .video-grid weiter unten). */

.cta {
  margin-top: 8px;
  text-align: center;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #dcd2b4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: inherit;
  padding: 15px 32px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.25);
}
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 75, 0.55);
}

/* "Nachricht senden" (Kontaktformulare) – gold gefüllt */
form[action*="web3forms"] button[type="submit"] {
  background: var(--gold);
  color: #1B2A4A;
}
form[action*="web3forms"] button[type="submit"]:hover:not(:disabled) {
  background: #a67f3d;
  color: #1B2A4A;
  box-shadow: 0 8px 20px rgba(184, 146, 75, 0.30);
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Abschnitts-Überschrift (Login / Kontakt) ---- */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 4px;
}
.section-title::before {
  content: "» ";
  color: var(--gold);
}
.section-lead {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

/* ---- Eingabefelder ---- */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- Fake-Login-Fehlermeldung ---- */
.login-error[hidden] { display: none; }
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 50, 50, 0.10);
  color: #c0392b;
  border: 1px solid rgba(200, 50, 50, 0.30);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) {
  .login-error { color: #ef8f8f; background: rgba(220, 80, 80, 0.14); }
}
.login-forgot {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
}
.login-forgot:hover { color: var(--gold); }

/* Passwort-Optik ohne echtes Passwortfeld (verhindert Passwort-Manager-Popup) */
.pw-mask {
  -webkit-text-security: disc;
  text-security: disc;
}

/* ---- Button-Reihe auf der Startseite ---- */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-row .btn { flex: 1; text-align: center; }
@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
}

/* Zweiter, dezenter Button-Stil (Outline) */
.btn-outline {
  background: transparent;
  color: var(--heading);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gold);
  color: #1B2A4A;
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 8px 20px rgba(184, 146, 75, 0.30);
}

/* ---- Zurück-Link auf Unterseiten ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--gold); }

/* ---- "Weitere Unterlagen" – aufklappbarer Download-Bereich ---- */
.more-docs { margin-top: 16px; }
.downloads summary {
  display: block;
  width: 100%;
  text-align: center;
  list-style: none;
}
.downloads summary::-webkit-details-marker { display: none; }
.downloads summary::marker { content: ""; }

.dl-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.dl-item:hover { border-color: var(--accent); }
.dl-icon { font-size: 1.3rem; line-height: 1; }
.dl-name { flex: 1; font-weight: 600; }
.dl-arrow { color: var(--gold); font-weight: 700; }

/* ---- LinkedIn-Link auf Bewerbungsseiten ---- */
.linkedin { text-align: center; margin: 18px 0 0; font-weight: 600; font-size: 0.95rem; }
.linkedin a { color: var(--gold); text-decoration: none; }
.linkedin a:hover { text-decoration: underline; }

/* ---- Fotogalerie (Berufliche Highlights) ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 6px;
}
.gallery-item { margin: 0; }
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.gallery-item figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.gallery-item a { cursor: zoom-in; display: block; }

/* ---- Lightbox (Foto im Vollbild) ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 27, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Sprungbutton unter dem Video ---- */
.cta-jump { text-align: center; margin: 4px 0 0; }

/* ---- Kernkompetenzen (Kachel-Raster) ---- */
.kompetenzen__head { margin-bottom: 16px; }
.kompetenzen__head h2 { color: var(--heading); margin: 2px 0 0; font-size: 1.35rem; }
/* Handy 1 Spalte · Tablet 2 · Desktop 3 nebeneinander */
/* Untereinander – über die volle Breite bleibt jede Kachel flach (2-3 Zeilen)
   und laesst sich in einer Spalte schneller erfassen als schmal nebeneinander. */
.kachel-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kachel {
  position: relative;            /* Basis fuer die flaechendeckende Verlinkung */
  cursor: pointer;
  display: flex;                 /* damit das Badge unten bündig sitzt */
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kachel .badge { margin-top: auto; align-self: flex-start; }

/* Ganze Kachel klickbar: der Link legt eine unsichtbare Flaeche ueber die
   Kachel. Bleibt ein einziger echter Link – gut fuer Screenreader. */
.kachel .badge::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.kachel:hover .badge { background: var(--gold); color: #fff; }
.kachel:focus-within { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }
.kachel:hover { border-color: var(--gold); box-shadow: 0 8px 22px rgba(27, 42, 74, 0.07); }
.kachel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kachel__head svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
.kachel__head h3 { font-size: 0.92rem; margin: 0; color: var(--heading); line-height: 1.3; }
.kachel p { font-size: 0.85rem; line-height: 1.5; color: var(--text-soft); margin: 0 0 10px; }
/* Ergebnisse – stehen auf den Einblicke-Unterseiten, nicht in den Kacheln */
.ergebnisse {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0 28px;   /* Abstand zur Collage/zum Highlight darunter */
  padding: 0;
}
.ergebnisse li {
  border-left: 2px solid var(--gold);
  padding: 2px 0 2px 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.ergebnisse b {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--heading);
  margin-bottom: 2px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; text-decoration: none;
  background: rgba(184, 146, 75, 0.15); color: #8a6a24;
  transition: background 0.15s ease, color 0.15s ease;
}
.badge:hover { background: var(--gold); color: #fff; }

/* ---- Einblicke-Seiten: Video-Grid + Foto-Collage ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;            /* kein Strecken bei gemischten Formaten */
}
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }
.video-grid video {
  width: 100%;
  height: auto;                  /* behält das Seitenverhältnis */
  max-height: 70vh;              /* wird nicht endlos hoch */
  object-fit: contain;           /* nichts wird abgeschnitten */
  background: #000;
  border-radius: 8px;
  display: block;
}
/* Hochformat (Handyvideos): kompakt halten statt riesig darstellen */
.video-grid video.portrait {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
/* Mosaik: festes 3-Spalten-Raster, aber breite Fotos duerfen ueber 2 Spalten
   gehen (Klasse "span2", von PHP anhand des Seitenverhaeltnisses vergeben).
   Jedes Bild bekommt sein exaktes Seitenverhaeltnis per CSS aspect-ratio mit
   – die Zelle passt sich dem Bild an, nicht umgekehrt. Es wird NICHTS
   beschnitten. align-items: start verhindert, dass Bilder in derselben Reihe
   auf die Hoehe des Nachbarn gestreckt werden; dadurch koennen kleine Luecken
   neben kuerzeren Bildern entstehen – das ist hier bewusst in Kauf genommen. */
.foto-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  align-items: start;
  gap: 10px;
}
.foto-collage img,
.foto-collage video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.foto-collage .span2 { grid-column: span 2; }
.foto-collage video { background: #000; }
@media (max-width: 560px) {
  .foto-collage { grid-template-columns: repeat(2, 1fr); }
}

/* Feinpackung durch /assets/mosaic.js: sobald jede Kachel ihre echte Breite
   UND Hoehe in Raster-Einheiten kennt, wird auf ein feines Zeilenraster
   umgeschaltet – dadurch schliessen sich die meisten Luecken, auch zwischen
   Fotos und Videos. Ohne JavaScript bleibt die Zeile darueber aktiv (align-
   items: start, ohne Feinraster) – nichts ueberlappt, nichts bricht. */
.foto-collage.fein {
  align-items: stretch;
  grid-auto-rows: 4px;
}
.foto-collage.fein > img,
.foto-collage.fein > video {
  height: 100%;
  object-fit: cover;    /* Zelle trifft die Bildhoehe fast exakt – Rest < 4px */
}
.foto-collage.fein > .highlight {
  align-self: start;      /* Sicherheitsnetz, falls die berechnete Zeilenspanne knapp ist */
  object-fit: contain;
}

/* Highlight: laeuft oben ueber die volle Breite aller Spalten.
   max-height ist die Sicherung fuer Hochformat – ohne sie wuerde ein
   Hochkant-Video ueber 1000 px hoch und den Bildschirm sprengen.
   object-fit: contain heisst dabei: lieber Rand als Beschnitt. */
.foto-collage .highlight {
  grid-column: 1 / -1;          /* bricht aus dem Raster heraus, volle Breite */
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
  margin-bottom: 0;
}

/* ---- Alle Buttons unter dem Video auf volle (= Video-)Breite ---- */
.cta .btn { display: block; width: 100%; }

/* ---- Kontaktformular hinter dem "Kontakt aufnehmen"-Button ---- */
.contact-reveal summary {
  display: block;
  width: 100%;
  text-align: center;
  list-style: none;
}
.contact-reveal summary::-webkit-details-marker { display: none; }
.contact-reveal summary::marker { content: ""; }
.reveal-form {
  margin-top: 16px;
  text-align: left;
}

/* ---- Footer-Links (Impressum / Datenschutz) ---- */
.footer a { color: var(--text-soft); text-decoration: underline; }
.footer a:hover { color: var(--gold); }

/* ---- Rechtstexte (Impressum / Datenschutz) ---- */
.legal { text-align: left; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 0.95rem; line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--accent); }
.platzhalter {
  background: rgba(255, 196, 0, 0.35);
  font-weight: 600;
  padding: 0 4px;
  border-radius: 3px;
}

.cta-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cta-note a { color: var(--accent); }

hr.divider {
  border: none;
  border-top: 1px solid var(--gold);
  margin: 32px 0;
}

.footer {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 32px;
}
