/* Vorlage "Tresen" - nach dem Geschmacksmuster MainTuerkis.
 *
 * Kräftige Flächen statt Rahmen: der Hero trägt die Markenfarbe in voller
 * Breite, darunter ein dunkles Zahlenband. Der Lohn steht in der Trefferzeile
 * ganz vorn - das ist der Punkt, an dem sich diese Vorlage von den anderen
 * unterscheidet.
 */

/* Die Farben stehen NICHT hier, sondern kommen als Variablen aus
 * config/mandanten.php. jobsuche.biz trägt dieselbe Struktur in Rot,
 * jobwechsel.net in Tuerkis - eine zweite Kopie dieses Stylesheets wäre
 * die sicherste Art, die beiden auseinanderlaufen zu lassen.
 *
 * Die Werte unten sind nur der Rückfall, falls ein Mandant nichts setzt.
 */
:root {
  --tuerkis:   #14B8A6;   /* Leitfarbe: Hero, Kanten, Hervorhebungen */
  --dunkel:    #0C2A2E;   /* dunkle Bänder und Fuß */
  --dunkel-2:  #04413D;
  --violett:   #5B21B6;   /* die rufende Farbe: Suchknopf, Bewerben */
  --mint:      #5EEAD4;   /* Zahlen auf dunklem Grund */
  --grund:     #F5FAFA;
  --weiss:     #FFFFFF;
  --linie:     #D6E6E5;
  --chip:      #E7F2F1;
  --kachel:    #D5F5F0;
  --leise:     #5A6E6D;
  --leise-2:   #8CA1A0;
  --auf-dunkel:#A8C3C1;
  --hero-text: #0C2A2E;   /* auf Tuerkis dunkel, auf Rot weiss */
  --hero-text-2: #04413D;
  --violett-tief: #4c1d95;
  --breite:    1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--dunkel); background: var(--grund);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  margin: 0; letter-spacing: -.025em; font-weight: 800; line-height: 1.05;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--dunkel); text-decoration: none; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 2rem; }
.eng  { max-width: 860px; }

/* ------------------------------------------------------------ Servicezeile */
.service {
  background: var(--dunkel); color: var(--auf-dunkel); font-size: .82rem;
}
.service .wrap { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 1rem; }
.service .aktion { color: var(--mint); font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }

/* -------------------------------------------------------------------- Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1.5rem; }
.marke { display: flex; align-items: center; gap: .7rem; }
.marke .zeichen {
  width: 38px; height: 38px; border-radius: 10px; background: var(--tuerkis);
  display: grid; place-items: center; flex: none;
  font-family: Archivo, sans-serif; font-weight: 800; color: var(--dunkel);
}
.marke b { font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.035em; white-space: nowrap; }
.kopf nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; font-weight: 600; }
.kopf nav a { color: var(--leise); padding-bottom: 5px; border-bottom: 3px solid transparent; }
.kopf nav a.an { color: var(--dunkel); border-bottom-color: var(--tuerkis); }
.kopf nav a:hover { color: var(--dunkel); }
.kopf .knopf-dunkel {
  background: var(--dunkel); color: var(--weiss);
  padding: .85rem 1.5rem; border-radius: 10px; font-size: .95rem; font-weight: 700;
}

/* -------------------------------------------------------------------- Hero */
.hero {
  padding: 4.25rem 0 3.75rem; position: relative; overflow: hidden;
  /* Aufhellung nach rechts oben statt einer glatten Fläche. Ein großes
     angeschnittenes Zeichen im Rücken stand hier zuerst - es las sich als
     versehentlicher Kasten, nicht als Zierde. */
  background: radial-gradient(80% 120% at 88% -10%, var(--tuerkis-hell, #2ED3C0) 0%, transparent 62%), var(--tuerkis);
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 4.9vw, 4.3rem); line-height: 1; max-width: 21ch; color: var(--hero-text); }
.hero .unter { font-size: 1.3rem; line-height: 1.5; color: var(--hero-text-2); max-width: 42ch; font-weight: 500; margin-top: 1.75rem; }

/* --------------------------------------------------------------- Suchleiste */
/* Feldbeschriftung über dem Wert, nicht als Platzhalter darin: der
   Platzhalter verschwindet beim Tippen, die Beschriftung bleibt. */
.tresen {
  background: var(--weiss); border-radius: 14px; padding: 10px;
  display: flex; align-items: stretch; gap: 8px;
  box-shadow: 0 14px 34px rgba(12,42,46,.15);
  max-width: 900px; margin-top: 1.9rem;
}
.tresen .feld { flex: 1; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; min-width: 0; }
.tresen .feld + .feld { border-left: 1px solid var(--linie); }
.tresen .feld svg { flex: none; }
.tresen .feld > div { min-width: 0; flex: 1; padding: .5rem 0; }
.tresen label {
  display: block; font-size: .72rem; font-weight: 700; color: var(--leise);
  letter-spacing: .06em; text-transform: uppercase;
}
.tresen input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--dunkel); padding: 0;
}
.tresen input::placeholder { color: var(--leise-2); font-weight: 500; }
.tresen button {
  flex: none; border: 0; cursor: pointer;
  background: var(--violett); color: var(--weiss);
  font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700;
  padding: 0 2.25rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: .6rem;
}
.tresen button:hover { background: var(--violett-tief); }

.oftgesucht { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.oftgesucht span { font-size: .88rem; font-weight: 600; color: var(--hero-text-2); }
.oftgesucht a {
  background: var(--hero-chip, rgba(12,42,46,.09)); color: var(--hero-text);
  font-size: .88rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px;
}
.oftgesucht a:hover { background: var(--hero-chip-hover, rgba(12,42,46,.16)); }

/* --------------------------------------------------------------- Zahlenband */
.zahlenband { background: var(--dunkel); padding: 1.6rem 0; }
.zahlenband .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.9rem; }
.zahlenband b { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.75rem; color: var(--mint); line-height: 1.2; }
.zahlenband span { font-size: .85rem; color: var(--auf-dunkel); }

/* --------------------------------------------------------------- Abschnitte */
section { padding: 4.25rem 0 3.75rem; }
section.knapp { padding-top: .5rem; }
.kap { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.9rem; flex-wrap: wrap; }
.kap h2 { font-size: 2.35rem; }
.kap .unter { font-size: 1.05rem; color: var(--leise); margin-top: .6rem; }
.kap .weiter { font-size: .95rem; font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; }

/* ------------------------------------------------------------ Berufskacheln */
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kachel {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px;
  padding: 1.4rem; display: flex; align-items: center; gap: .95rem;
  transition: border-color .13s, transform .13s;
}
.kachel:hover { border-color: var(--tuerkis); transform: translateY(-2px); }
.kachel .bild {
  width: 46px; height: 46px; border-radius: 12px; background: var(--kachel);
  display: grid; place-items: center; flex: none;
}
.kachel b { display: block; font-size: 1rem; font-weight: 700; }
.kachel span { font-size: .85rem; color: var(--leise); }

/* ------------------------------------------------------------ Trefferzeilen */
.filterreihe { display: flex; gap: .55rem; flex-wrap: wrap; }
.filterreihe a {
  border: 1px solid var(--linie); color: var(--leise);
  font-size: .88rem; font-weight: 600; padding: .65rem 1.15rem; border-radius: 999px;
  background: var(--weiss);
}
.filterreihe a.an { background: var(--dunkel); border-color: var(--dunkel); color: var(--weiss); font-weight: 700; }
.filterreihe a:hover { border-color: var(--dunkel); }

.zeilen { display: flex; flex-direction: column; gap: .75rem; }

.zeile {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 190px 165px; gap: 1.4rem;
  align-items: center;
  transition: border-color .13s, box-shadow .13s;
}
.zeile:hover { border-color: var(--tuerkis); box-shadow: 0 10px 26px -14px rgba(12,42,46,.35); }
/* Der frischeste Treffer bekommt die Kante - eine Marke, die nur einmal je
   Liste vorkommt und deshalb nicht abstumpft. */
.zeile.frisch { border-left: 5px solid var(--tuerkis); }

.zeile .wappen {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--weiss);
}
.zeile h3 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.zeile .titelzeile { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.zeile .neu {
  background: var(--violett); color: var(--weiss);
  font-size: .68rem; font-weight: 700; padding: .25rem .55rem; border-radius: 5px;
  letter-spacing: .04em;
}
.zeile .wo { font-size: .95rem; color: var(--leise); margin-top: .4rem; }
.zeile .marken { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.zeile .marken span {
  background: var(--chip); font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px;
}
.zeile .lohn b { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.45rem; }
.zeile .lohn span { font-size: .85rem; color: var(--leise); }
/* Ohne Lohn bleibt der Platz nicht leer, sondern trägt, was wir sicher
   wissen. Ein leerer Spaltenplatz lässt die Zeile kaputt aussehen. */
.zeile .lohn.ohne b { font-size: 1.15rem; color: var(--leise); }
.zeile .zum {
  background: var(--violett); color: var(--weiss);
  padding: 1rem; border-radius: 10px; text-align: center;
  font-size: .95rem; font-weight: 700;
}
.zeile .zum:hover { background: var(--violett-tief); }

/* ------------------------------------------------------------- Dunkler Block */
.dunkelblock { background: var(--dunkel); color: var(--weiss); padding: 4.5rem 0; }
.dunkelblock h2 { color: var(--weiss); font-size: 2.35rem; }
.dunkelblock .unter { color: var(--auf-dunkel); margin-top: .75rem; max-width: 60ch; }
.gruende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.6rem; }
.grund { border-top: 3px solid var(--tuerkis); padding-top: 1.15rem; }
.grund b { display: block; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
.grund p { color: var(--auf-dunkel); font-size: .95rem; }

/* ------------------------------------------------------------- Seitenkopf */
.seitenkopf { background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 2.5rem 0 2rem; }
.krumen { font-size: .88rem; color: var(--leise); margin-bottom: .8rem; }
.krumen a { color: var(--leise); }
.krumen a:hover { color: var(--tuerkis); }
.seitenkopf h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.seitenkopf .anzahl { color: var(--leise); margin-top: .6rem; }

/* -------------------------------------------------------------------- Tafel */
.tafel { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 2rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--violett); color: var(--weiss);
  padding: 1rem 1.9rem; border-radius: 10px; font-weight: 700;
}
.knopf:hover { background: var(--violett-tief); }
.hinweis { background: var(--chip); border-radius: 10px; padding: 1rem 1.2rem; color: var(--leise); font-size: .92rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------------- Fuß */
.fuss { background: var(--dunkel); color: var(--auf-dunkel); padding: 3.5rem 0 2.5rem; font-size: .9rem; }
.fuss .spalten { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.fuss b { color: var(--weiss); font-family: Archivo, sans-serif; font-weight: 800; display: block; margin-bottom: .75rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.fuss a { color: var(--auf-dunkel); }
.fuss a:hover { color: var(--weiss); }
.fuss .zeile-unten { border-top: 1px solid var(--fuss-linie, #23474a); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; color: var(--leise-2); }

/* -------------------------------------------------------------------- Klein */
@media (max-width: 1000px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zahlenband .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .zeile { grid-template-columns: 52px minmax(0, 1fr); }
  .zeile .lohn, .zeile .zum { grid-column: 2; }
  .zeile .zum { justify-self: start; padding: .8rem 1.5rem; }
  .gruende { grid-template-columns: 1fr; }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 1.15rem; }
  /* Auf 375 px passt die Servicezeile nicht in eine 42-px-Zeile. Statt sie
     umbrechen zu lassen - wobei die Hälfte unter den Rand rutscht - bleibt
     nur die Aktion stehen. Die Zahl steht ohnehin gleich darunter im
     Zahlenband. */
  .service .wrap { height: auto; padding-block: .45rem; justify-content: flex-start; }
  .service .wrap > span:first-child { display: none; }
  .service .wrap > div { gap: 1rem; }
  .service .wrap > div > span:last-child { display: none; }
  /* Der harte Umbruch der Ueberschrift ist für breite Zeilen gesetzt. Auf
     dem Telefon bricht der Satz ohnehin, und der zusätzliche Umbruch
     zerlegt ihn an der falschen Stelle. */
  .hero h1 br { display: none; }
  .kopf nav, .kopf .knopf-dunkel { display: none; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .tresen { flex-direction: column; }
  .tresen .feld + .feld { border-left: 0; border-top: 1px solid var(--linie); }
  .tresen button { padding: .95rem; justify-content: center; }
  .kacheln { grid-template-columns: 1fr; }
  .kap h2, .dunkelblock h2 { font-size: 1.75rem; }
  .fuss .spalten { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ------------------------------------------- Klassen der Grundausstattung
 * Die Seiten liste/stelle/betrieb/suche kommen aus app/Seiten/ und bringen
 * ihre eigenen Klassennamen mit. Statt jede Seite zu kopieren, nur damit sie
 * andere Klassen schreibt, bekommen die Namen der Grundausstattung hier
 * dieselbe Gestalt. Kopierte Seiten wären nach der ersten Aenderung am
 * Datenmodell drei Baustellen.
 */
.jobs { display: flex; flex-direction: column; gap: .75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  background: var(--weiss); border: 1px solid var(--linie); color: var(--dunkel);
  font-size: .9rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: 999px;
  display: inline-flex; align-items: baseline; gap: .4rem;
}
.chip:hover { border-color: var(--tuerkis); }
.chip i { font-style: normal; font-size: .8rem; color: var(--leise); }
.merkmale { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.merkmal {
  background: var(--chip); font-size: .78rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px; color: var(--dunkel);
}
.merkmal.stark { background: var(--kachel); }
.frisch { color: #0f766e; }
section.zart { background: var(--weiss); }

.suchbereich { max-width: 900px; margin-bottom: 2.25rem; }
.suchbereich .tresen { margin-top: 0; }

/* ------------------------------------------------------------ Rechtstexte */
/* Impressum und Datenschutz in zwei Spalten: man liest sie nicht von vorn
   bis hinten durch, sondern sucht einen Abschnitt - da schlägt Übersicht
   den Lesefluss. Die break-Regeln halten Überschrift und Text zusammen und
   zerreissen keinen Absatz. */
.rechtstext { padding-bottom: 3rem; column-count: 2; column-gap: 3rem; }
.rechtstext > :first-child { margin-top: 0; }
.rechtstext h2 {
  font-size: 1.15rem; margin: 1.6rem 0 .6rem;
  break-after: avoid; break-inside: avoid;
}
/* Erzwungener Spaltenwechsel: die Pflichtangaben nach DDG und MStV gehören
   zusammen in die erste Spalte, der Rest beginnt die zweite. */
.rechtstext .spaltenbruch { break-before: column; margin-top: 0; }
.rechtstext p, .rechtstext ul { break-inside: avoid; }
.rechtstext p { margin: 0 0 .9rem; }
.rechtstext ul { margin: 0 0 1rem 1.1rem; padding: 0; }
.rechtstext li { margin-bottom: .3rem; }
.rechtstext .stand { font-size: .88rem; opacity: .7; }
/* Auf schmalen Geräten ist eine Spalte richtig. */
@media (max-width: 860px) { .rechtstext { column-count: 1; } }
