/* Gemeinsame Grundlage aller Entwürfe. Gestaltung steht in der stil.css des jeweiligen Entwurfs. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}
/* nur das große ẞ aus der Latin-ext-Datei (16.10.2026), für Überschriften in Großbuchstaben */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+1E9E;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; min-height: 100dvh; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }

/* Zum Inhalt springen */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; background: #fff; color: #1D2073;
  font-weight: 700; text-decoration: none; border-radius: 4px;
  transition: top .2s ease;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--fokus, #30338A); outline-offset: 3px; }
::selection { background: var(--auswahl, #C5C7F0); color: var(--auswahl-text, #1D2073); }
html { scrollbar-color: var(--leiste, #9A9BB8) var(--leiste-grund, transparent); }

/* Honigtopf gegen Spam: für Menschen unsichtbar */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Formular: Grundverhalten, Farben kommen aus dem Entwurf */
.formular { display: grid; gap: 1.25rem; }
.formular .zeile { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .formular .zeile { grid-template-columns: 1fr 1fr; } }
.feld { display: grid; gap: .4rem; }
.feld label { font-weight: 600; font-size: 1rem; }
.feld .pflicht { color: var(--pflicht, currentColor); }
.feld input, .feld textarea {
  width: 100%; min-height: 3rem; padding: .75rem .9rem; font-size: 1rem;
  border: 1px solid var(--feld-rand, #6E6F86); border-radius: var(--feld-radius, 4px);
  background: var(--feld-grund, #fff); color: var(--feld-text, #1B1B2A);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--fokus, #30338A); outline-offset: 1px; }
.feld input:user-invalid, .feld textarea:user-invalid { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.feld .fehler { display: none; font-size: .9375rem; color: var(--fehler, #B3261E); }
.feld input:user-invalid ~ .fehler, .feld textarea:user-invalid ~ .fehler { display: block; }
.formular .hinweis { font-size: .9375rem; }

/* WhatsApp-Knopf, schwebend */
.whatsapp {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3.25rem; padding: .7rem 1.1rem .7rem .9rem;
  background: #0F7A5C; color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  border-radius: 999px; box-shadow: 0 6px 20px rgb(0 0 0 / .22);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp:hover { background: #0B6249; transform: translateY(-2px); }
.whatsapp svg { width: 1.5rem; height: 1.5rem; flex: none; }
@media (max-width: 639px) {
  .whatsapp { padding: .85rem; }
  .whatsapp span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Mobiles Menü (Knopf nur unter 960px) */
.menue-knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem .9rem; border: 1px solid currentColor;
  border-radius: 4px; background: transparent; cursor: pointer; font-weight: 600;
}
.menue-knopf .striche { display: grid; gap: 4px; }
.menue-knopf .striche i { display: block; width: 18px; height: 2px; background: currentColor; }
@media (min-width: 960px) { .menue-knopf { display: none; } }

/* Erscheinen beim Scrollen: nur mit JavaScript, sonst bleibt alles sichtbar */
.js [data-erscheinen] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--verzoegerung, 0s);
}
.js [data-erscheinen="links"] { transform: translateX(-24px); }
.js [data-erscheinen="rechts"] { transform: translateX(24px); }
.js [data-erscheinen="gross"] { transform: scale(.96); }
.js [data-erscheinen].sichtbar { opacity: 1; transform: none; }

/* Bildzoom bei Berührung, in allen Entwürfen gleich */
.zoom { overflow: hidden; }
.zoom img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.zoom:hover img, .zoom:focus-within img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-erscheinen] { opacity: 1; transform: none; }
  .zoom:hover img, .zoom:focus-within img { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Handy-Grundlagen für alle Entwürfe (16.10.2026): kein grauer Tipp-Blitz, kein Tipp-Verzug, keine Textauswahl auf
   Bedienelementen; Hover-Verschiebungen auf Touch-Geräten zurückgesetzt, weil der Hover sonst nach dem Tippen hängt */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"] { touch-action: manipulation; }
button, summary, .menue a, .menue-knopf { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: none) {
  a:hover .pfeil, .knopf:hover .pfeil, .karte:hover, .whatsapp:hover, .zoom:hover img { transform: none; }
  .karte:hover { box-shadow: none; }
}

/* Abschluss am Handy (19.10.2026, Wunsch der Agentur): Anrufen, WhatsApp und „Anfrage stellen“ stehen in allen Entwürfen
   nebeneinander als drei gleich breite Kacheln, Symbol über dem Wort; „Anfrage stellen“ bekommt ein Briefsymbol statt des Pfeils.
   Gilt für A und C (.cta-wege), die Startseite B (.ak-cta-wege) und die Unterseiten B (.cta-b2-leiste). */
@media (max-width: 639px) {
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; width: 100%; max-width: none; margin-left: 0; justify-items: stretch; }
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) > a {
    box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
    width: 100%; height: auto; min-height: 4.75rem; margin: 0; padding: .75rem .3rem; border-radius: 0;
    font-size: .8125rem; line-height: 1.2; letter-spacing: .02em; text-align: center; white-space: normal; overflow-wrap: break-word; }
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) > a svg { width: 1.25rem; height: 1.25rem; flex: none; margin: 0; border: 0; padding: 0; }
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) > a .pfeil { display: none; }
  html body:is(.seite-start, .seite-unter) :is(.cta-wege .knopf-cta, .ak-cta-wege .ak-knopf, .cta-b2-anfrage)::before {
    content: ""; order: -1; width: 1.25rem; height: 1.25rem; flex: none; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; }
  html body:is(.seite-start, .seite-unter) .cta-b2-telefon span { font-size: .75rem; letter-spacing: 0; }
  /* gleich hoch, gleicher Rahmen, überall dieselbe Reihenfolge: Anrufen, WhatsApp, Anfrage */
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) { align-items: stretch; }
  html body:is(.seite-start, .seite-unter) :is(.cta-wege, .ak-cta-wege, .cta-b2-leiste) > a { align-self: stretch; border-width: 1px; border-style: solid; }
  html body:is(.seite-start, .seite-unter) .cta-b2-telefon { order: 1; }
  html body:is(.seite-start, .seite-unter) .cta-b2-wa { order: 2; }
  html body:is(.seite-start, .seite-unter) .cta-b2-anfrage { order: 3; }
}

/* Einsatzgebiet im Fuß (19.10.2026, Wunsch der Agentur): Orte für die lokale Suche, leise unter dem Fuß-Satz */
.fuss-einsatz { margin: .75rem 0 0; max-width: 26rem; font-size: .875rem !important; line-height: 1.55 !important; opacity: .8; }
.fuss-einsatz strong { display: block; margin-bottom: .2rem; font-weight: 600; opacity: 1; }

/* Entwurfsleiste (19.10.2026, Wunsch der Agentur, nach Block Ladenbau): fest unten in jedem Entwurf, gehört zur Vorschau.
   Dunkles Anthrazit mit weißem Rahmen, damit sie sich auf hellen und dunklen Entwürfen abhebt, ohne eine fremde Farbe mitzubringen.
   Ab 768 px eine Zeile mit allen Entwürfen, darunter oben die Pfeile mit dem aktuellen Entwurf, unten „Zurück zur Übersicht“. */
.el-platz { height: 9rem; }
@media (min-width: 768px) { .el-platz { height: 6rem; } }
.entwurfsleiste {
  position: fixed; z-index: 90; bottom: max(.75rem, env(safe-area-inset-bottom)); left: .75rem; right: .75rem;
  padding: .25rem; border-radius: .75rem; background: #1b1d1f; color: #fff; border: 2px solid #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .45);
  font: 600 .9375rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none;
}
@media (min-width: 768px) { .entwurfsleiste { left: 50%; right: auto; transform: translateX(-50%); } }
.entwurfsleiste ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.entwurfsleiste a, .el-aktuell {
  display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 3rem; min-width: 3rem;
  margin: 0; padding: 0 .75rem; border-radius: .5rem; color: rgba(255, 255, 255, .85); text-decoration: none; white-space: nowrap;
  transition: background-color .16s, color .16s, transform .16s;
}
.entwurfsleiste svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.entwurfsleiste a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.entwurfsleiste a:active { background: #fff; color: #1b1d1f; transform: scale(.97); }
.entwurfsleiste a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.entwurfsleiste a[aria-current="page"], .el-aktuell { background: #fff; color: #1b1d1f; }
.entwurfsleiste a[aria-current="page"]:focus-visible { outline-color: #1b1d1f; }
.entwurfsleiste .el-zurueck { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.entwurfsleiste .el-zurueck:hover { background: rgba(255, 255, 255, .2); }
.entwurfsleiste .el-pfeil { padding: 0; }
.el-handy { display: flex; flex-direction: column; gap: .25rem; }
.el-reihe { display: flex; align-items: stretch; gap: .25rem; }
.el-aktuell { flex: 1; text-align: center; }
.el-breit { display: none; align-items: stretch; gap: .25rem; }
.el-trenner { width: 1px; margin: .5rem 0; background: rgba(255, 255, 255, .2); }
@media (min-width: 768px) { .el-handy { display: none; } .el-breit { display: flex; } }
@media (prefers-reduced-motion: reduce) { .entwurfsleiste a { transition: none; } .entwurfsleiste a:active { transform: none; } }
@media print { .entwurfsleiste, .el-platz { display: none; } }
/* Entwurf A setzt alle Ecken eckig (!important); die Leiste gehört zur Vorschau und sieht überall gleich aus */
html body .entwurfsleiste { border-radius: .75rem !important; border: 2px solid #fff; }
html body .entwurfsleiste :is(a, .el-aktuell) { border-radius: .5rem !important; }

/* Karrierebilder (23.11.2026), Ausschnitt für alle Rahmen: der waagrechte Wert greift nur in Hochformat-Rahmen,
   der senkrechte nur in breiten Rahmen (bis 3:1). Hochbau: Hände, Stein, Mörtelbett und Hammer bleiben im Bild.
   Tiefbau: Warnband oben und Rohrverbindung mit den Händen unten bleiben im Bild. */
img[src*="karriere-hochbau-kalksandstein"] { object-position: 58% 30% !important; }
img[src*="karriere-tiefbau-warnband-gruen"] { object-position: 42% 37% !important; }
/* Stellenanzeigen der Karriereseite (23.11.2026): breite Fassungen (16:9, 16:10) zeigen den unteren Teil, damit Füße und Rohr ganz im Bild sind */
.fx-anzeige-bild img[src*="karriere-tiefbau-warnband-gruen"] { object-position: 42% 92% !important; }
.fx-anzeige-bild img[src*="karriere-hochbau-kalksandstein"] { object-position: 34% 75% !important; }
