/* Gemeinsamer Aufbau für Unterseiten, Kopfleiste, Aufruf und Fuß aller Entwürfe.
   Farben und Schriften kommen aus den Variablen der jeweiligen stil.css:
   --grund, --grund-leise, --flaeche, --text, --text-leise, --linie,
   --akzent, --akzent-tief, --akzent-hell, --auf-akzent, --radius,
   --schrift-titel, --schrift-text, --rahmen, --rand, --abschnitt */

body { font-family: var(--schrift-text); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--grund); }
.rahmen { width: min(100% - 2 * var(--rand), var(--rahmen)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--schrift-titel); }


/* Pfeile in Links und Knöpfen */
.pfeil { display: inline-block; vertical-align: -0.15em; width: 1.1em; height: 1.1em; flex: none; transition: transform .25s ease; }
a:hover .pfeil, .knopf:hover .pfeil { transform: translateX(4px); }
.textlink { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--akzent); text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: .25em; }

.knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem;
  padding: .75rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.knopf:active { transform: translateY(1px); }
.knopf-voll { background: var(--akzent); color: var(--auf-akzent); }
.knopf-voll:hover { background: var(--akzent-tief); }
.fliesstext .knopf, .zwei-spalten .knopf { margin-top: 1.75rem; }
@media (max-width: 639px) { .knoepfe .knopf { flex: 1 1 100%; } }

.kopfzeile { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); align-items: end; }
.kopfzeile > p, .kopfzeile .textlink { color: var(--text-leise); max-width: 34rem; margin: 0; }
.kopfzeile .textlink { color: var(--akzent); justify-self: start; }
@media (min-width: 900px) { .kopfzeile { grid-template-columns: 1.1fr 1fr; } .kopfzeile .textlink { justify-self: end; } }

/* Kopfleiste: über dem Bild auf der Startseite, fest auf Unterseiten */
.kopf { z-index: 30; color: #fff; }
.kopf-ueber-bild { position: fixed; inset: 0 0 auto; transition: background-color .3s ease, box-shadow .3s ease; }
.kopf-ueber-bild.kopf-fest, .seite-unter .kopf-fest { background: var(--akzent-tief); box-shadow: 0 8px 30px rgb(0 0 0 / .18); }
.seite-unter .kopf-fest { position: sticky; top: 0; }
.kopf-innen {
  width: min(100% - 2 * var(--rand), 90rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem;
}
.marke img { width: clamp(12rem, 26vw, 17rem); }
.menue ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.menue a {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .8rem;
  text-decoration: none; font-weight: 500; border-radius: var(--radius);
}
.menue a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.menue a:hover::after, .menue a[aria-current]::after { transform: scaleX(1); }
.menue .menue-anfrage { background: #fff; color: var(--akzent-tief); font-weight: 600; margin-left: .5rem; }
.menue .menue-anfrage::after { display: none; }
.menue .menue-anfrage:hover { background: var(--akzent-hell); }
@media (max-width: 959px) {
  .marke img { width: 11.5rem; }
  .menue {
    display: none; position: absolute; top: 100%; left: var(--rand); right: var(--rand);
    background: var(--akzent-tief); border-radius: var(--radius); padding: .75rem;
    box-shadow: 0 16px 40px rgb(0 0 0 / .3);
  }
  .menue[data-offen] { display: block; animation: aufklappen .25s ease both; }
  .menue ul { flex-direction: column; align-items: stretch; }
  .menue a { width: 100%; padding: .75rem 1rem; }
  .menue a::after { display: none; }
  .menue a[aria-current] { background: rgb(255 255 255 / .12); }
  .menue .menue-anfrage { margin: .5rem 0 0; justify-content: center; }
}
@keyframes aufklappen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Seitenkopf der Unterseiten */
.seitenkopf { background: var(--akzent-tief); color: #fff; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); }
.seitenkopf-innen { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 1024px) { .seitenkopf-mit-bild .seitenkopf-innen { grid-template-columns: 1.1fr .9fr; } }
.seitenkopf h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.einleitung { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); max-width: 36rem; color: rgb(255 255 255 / .86); }
.seitenkopf-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1024px) { .seitenkopf-mit-bild { padding-bottom: 0; } .seitenkopf-bild { align-self: end; margin-bottom: calc(-1 * clamp(2rem, 4vw, 3.5rem)); } .seitenkopf-bild img { aspect-ratio: 5 / 4; } }

/* Blöcke */
.block { padding-block: var(--abschnitt); }
.block-leise { background: var(--grund-leise); }
.block-bild { padding-block: 0 var(--abschnitt); }
.seitenkopf-mit-bild + .block { padding-top: calc(var(--abschnitt) + 2rem); }
.block h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.block h3 { font-size: 1.25rem; line-height: 1.3; }
.zwei-spalten { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1024px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } .zwei-spalten-text { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.zwei-spalten > .zoom { border-radius: var(--radius); }
.zwei-spalten > .zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zwei-spalten h2 { margin-bottom: 1.25rem; }
.zwei-spalten p + p { margin-top: 1rem; }
.zwei-spalten p { color: var(--text-leise); max-width: 38rem; }
.fliesstext .gross { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); line-height: 1.5; color: var(--text); }
.seite-neben { display: grid; gap: 1.25rem; align-content: start; }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.kasten h3 { margin-bottom: 1rem; }
.kasten-betont { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
.kasten-betont .textlink { color: var(--auf-akzent); }
.liste-haken { display: grid; gap: .6rem; }
.liste-haken li { position: relative; padding-left: 1.75rem; }
.liste-haken li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .55rem; height: .3rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.kasten:not(.kasten-betont) .liste-haken li::before { border-color: var(--akzent); }
.ref-liste-klein li { padding: .5rem 0; border-top: 1px solid var(--linie); color: var(--text-leise); }
.ref-liste-klein li:first-child { border-top: 0; padding-top: 0; }
.bild-breit { border-radius: var(--radius); }
.bild-breit img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 639px) { .bild-breit img { aspect-ratio: 4 / 3; } }

/* Leistungskacheln (Startseite A, Leistungsseite überall) */
.kacheln { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .kacheln { grid-template-columns: repeat(4, 1fr); } .kacheln > li:first-child, .kacheln > li:last-child { grid-column: span 2; } .kacheln-gross { grid-template-columns: repeat(3, 1fr); } .kacheln-gross > li:first-child, .kacheln-gross > li:last-child { grid-column: span 1; } }
.karte { display: grid; height: 100%; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(0 0 0 / .12); border-color: var(--akzent); }
.karte-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kacheln > li:first-child .karte-bild img { aspect-ratio: 16 / 9; }
.karte-text { padding: 1.5rem; display: grid; align-content: start; gap: .5rem; }
.karte-text h3, .karte-text h2 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; }
.karte-text p { color: var(--text-leise); font-size: 1.0625rem; }
.karte-mehr { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; font-weight: 600; color: var(--akzent); }
.leistungs-liste { display: grid; gap: 0 3rem; }
@media (min-width: 768px) { .leistungs-liste { grid-template-columns: 1fr 1fr; } }
.leistungs-liste a { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--linie); text-decoration: none; font-weight: 600; color: var(--text); }
.leistungs-liste a .pfeil { margin-left: auto; color: var(--akzent); }
.leistungs-liste a:hover span { text-decoration: underline; text-underline-offset: .25em; }

/* Über uns, Referenzen, Karriere auf Unterseiten */
.person p { margin: 0; color: inherit; max-width: none; }
.person-name { font-family: var(--schrift-titel); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.person-rolle { opacity: .85; margin-top: .25rem !important; }
.person-wege { display: grid; gap: .4rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .25); }
.person-wege a { color: inherit; font-weight: 600; text-underline-offset: .2em; }
.orte { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.orte li { padding: .35rem .8rem; border: 1px solid var(--linie); border-radius: 999px; font-size: .9375rem; color: var(--text-leise); background: var(--flaeche); }
.drei-karten { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .drei-karten { grid-template-columns: repeat(3, 1fr); } }
.drei-karten li { padding: 1.75rem; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); }
.drei-karten h3 { margin-bottom: .6rem; }
.drei-karten p { color: var(--text-leise); }
.galerie { display: grid; gap: 1rem; }
@media (min-width: 640px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .galerie { grid-template-columns: repeat(3, 1fr); } .galerie-gross { grid-column: span 2; grid-row: span 2; } }
.galerie figure { position: relative; border-radius: var(--radius); }
.galerie img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-gross img { aspect-ratio: 3 / 2; }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-size: .9375rem; background: linear-gradient(0deg, rgb(10 10 30 / .85), rgb(10 10 30 / 0)); }
.galerie figcaption strong { display: block; font-size: 1.0625rem; }
.ref-karten-liste { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .ref-karten-liste { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ref-karten-liste { grid-template-columns: repeat(3, 1fr); } }
.ref-karten-liste li { padding: 1.5rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.ref-karten-liste h3 { font-size: 1.1875rem; margin-bottom: .3rem; }
.ref-karten-liste p { color: var(--text-leise); }

/* Kontakt */
.kontakt-raster { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 1024px) { .kontakt-raster { grid-template-columns: .9fr 1.1fr; } }
.kontakt-raster > .zoom { border-radius: var(--radius); }
.kontakt-raster > .zoom img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kontakt-raster h2 { margin-bottom: 1rem; }
.kontakt-raster > div > p { color: var(--text-leise); max-width: 30rem; margin-bottom: 2rem; }
.kontaktdaten { display: grid; gap: 1rem; }
.kontaktdaten div { display: grid; gap: .1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linie); }
.kontaktdaten dt { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-leise); }
.kontaktdaten dd { font-size: 1.1875rem; }
.kontaktdaten a { color: var(--akzent); font-weight: 600; text-underline-offset: .2em; }
.hinweis-klein { margin-top: 1.5rem; font-size: 1rem; color: var(--text-leise); }
.formular { background: var(--flaeche); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); border: 1px solid var(--linie); }
.formular .hinweis { color: var(--text-leise); }
.formular .hinweis a { color: var(--akzent); }
.formular .knopf { justify-self: start; }

/* Aufruf am Seitenende */
.cta { background: var(--akzent-tief); color: #fff; padding-block: var(--abschnitt); position: relative; isolation: isolate; overflow: hidden; }
.cta-innen { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 1024px) { .cta-innen { grid-template-columns: 1.2fr .8fr; } }
.cta h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cta-text { color: rgb(255 255 255 / .84); max-width: 34rem; font-size: 1.125rem; }
.cta-wege { display: grid; gap: .75rem; justify-items: start; }
@media (min-width: 1024px) { .cta-wege { justify-items: end; text-align: right; } }
.knopf-cta { background: #fff; color: var(--akzent-tief); font-size: 1.125rem; padding: .9rem 1.6rem; }
.knopf-cta:hover { background: var(--akzent-hell); }
.cta .knopf-rand { border-color: rgb(255 255 255 / .6); color: #fff; }
.cta .knopf-rand:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.cta-whatsapp { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; color: #fff; font-weight: 600; text-decoration: none; }
.cta-whatsapp svg { width: 1.4rem; height: 1.4rem; }
.cta-whatsapp:hover { text-decoration: underline; text-underline-offset: .25em; }
.cta :focus-visible, .seitenkopf :focus-visible, .kopf :focus-visible, .fuss :focus-visible, .kasten-betont :focus-visible { outline-color: #fff; }

/* Fuß mit allen Kontaktdaten */
.fuss { background: var(--fuss-grund, #13154F); color: #CDCFE8; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: 1rem; border-top: 1px solid rgb(255 255 255 / .14); }
.fuss-raster { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 700px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .fuss-raster { grid-template-columns: 1.4fr 1fr .9fr .8fr; } }
.fuss-logo { width: 15rem; margin-bottom: 1.25rem; }
.fuss-marke p { max-width: 24rem; line-height: 1.6; }
.fuss-titel { font-family: var(--schrift-text); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.fuss address { font-style: normal; line-height: 1.6; margin-bottom: 1rem; }
.fuss a { color: #fff; text-decoration: none; text-underline-offset: .2em; }
.fuss a:hover { text-decoration: underline; }
.fuss-spalte ul { display: grid; gap: .35rem; }
.fuss-spalte li a { display: inline-flex; min-height: 1.9rem; align-items: center; }
.fuss-kontakt li { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; align-items: center; }
.fuss-kontakt span { font-size: .875rem; color: #9FA2CC; }
.fuss-klein { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .14); font-size: .875rem; color: #9FA2CC; }

/* Bewegung im Kopf der Startseite */
.seite-start .held-bild-huelle { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.seite-start .held-bild { width: 100%; height: 100%; object-fit: cover; animation: atmen 18s ease-out both; }
@keyframes atmen { from { transform: scale(1.08); } to { transform: scale(1); } }
.seite-start .held-inhalt > * { animation: auftauchen .8s cubic-bezier(.2, .7, .2, 1) both; }
.seite-start .held-inhalt > :nth-child(2) { animation-delay: .12s; }
.seite-start .held-inhalt > :nth-child(3) { animation-delay: .24s; }
.seite-start .held-inhalt > :nth-child(4) { animation-delay: .36s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .seite-start .held-bild, .seite-start .held-inhalt > * { animation: none; } }

/* Handy (16.10.2026): Kopfleiste unter der Aussparung des Bildschirms frei, Menü-Panel scrollt bei wenig Höhe selbst */
.kopf-innen { padding-top: calc(1.1rem + env(safe-area-inset-top, 0px)); }
@media (max-width: 959px) {
  .menue { max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain; }
}

/* Handy-Feinschliff (19.10.2026, Wunsch der Agentur): lange Versalwörter wie PROJEKTMANAGEMENT oder SCHLÜSSELFERTIG
   liefen am Handy über den Rand oder wurden abgeschnitten. Unter 768px richten sich Seitentitel nach der Breite
   (7,3 % der Breite, so passt das längste Wort bei 320 bis 430px in eine Zeile), und als letzte Sicherung darf ein Wort umbrechen statt die Seite zu verbreitern. Die Entwürfe schärfen das in ihren Stildateien nach. */
@media (max-width: 767px) {
  .seitenkopf h1 { font-size: clamp(1.375rem, 7.3vw, 2.5rem); overflow-wrap: break-word; }
  main :is(h1, h2, h3) { overflow-wrap: break-word; }
  .karte-text :is(h2, h3) { font-size: clamp(1.125rem, 6vw, 1.5rem); }
}
/* Tablet hochkant (768 bis 1023px, 19.10.2026): Kartentitel in zwei Spalten ebenfalls nach der Breite. */
@media (min-width: 768px) and (max-width: 1023px) {
  .karte-text :is(h2, h3) { font-size: clamp(1.125rem, 2.9vw, 1.5rem); }
}

/* Fuß mit Kontakt unter dem Logo (19.10.2026, Wunsch der Agentur): drei Spalten statt vier */
.fuss-raster-3 .fuss-marke { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.fuss-raster-3 .fuss-marke address { margin: 1.5rem 0 1rem; font-style: normal; line-height: 1.6; }
@media (min-width: 700px) { .fuss-raster.fuss-raster-3 { grid-template-columns: 1.2fr 1fr; } }
@media (min-width: 1024px) { .fuss-raster.fuss-raster-3 { grid-template-columns: 1.4fr 1fr .8fr; } }
