/*
 * Ergänzungen und Korrekturen zum gebauten styles.css (der SCSS-Build ist nicht mehr lauffähig).
 * Ladereihenfolge: styles.css -> slick.css -> extras.css, diese Datei überschreibt also.
 *
 * Inhalt:
 *   1. Schrift
 *   2. Grundtypografie / Lesbarkeit
 *   3. Container-Breite
 *   4. Projektkarten (Referenzen)
 *   5. Startseite
 *   6. Formular
 *   7. Footer
 *   8. Barrierefreiheit
 *   9. Bewegung / Druck
 */

/* ============================================================
   1. Schrift (lokal gehostet, kein Google-Request)
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/montserrat/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   2. Grundtypografie / Lesbarkeit
   Vorher: 14 px im Gewicht 300 (sehr dünn) in #1a1a1a auf Hellgrau.
   ============================================================ */
html {
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #222;
  text-rendering: optimizeLegibility;
}
p {
  line-height: 1.7;
}
h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
}
@media (min-width: 780px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.7rem; }
}

/* Dünne Schnitte (300) in Menüs und Kopfbereich etwas kräftiger */
header .right,
main .navigation,
ul.main-menu-simple li a,
footer > .middle {
  font-weight: 400;
}
header .right .phone-number,
header .right a {
  font-weight: 500;
}

/* Hauptmenü unter dem Header: größeres Klickziel, deutlicher lesbar */
main .navigation {
  background: #e3e3e3;
}
ul.main-menu-simple li a {
  display: block;
  padding: .9rem .5rem;
  color: #2c2c2c;
  font-size: 1rem;
  text-decoration: none;
}
ul.main-menu-simple li a:hover,
ul.main-menu-simple li a:focus-visible {
  color: #20706f;
}
ul.main-menu-simple li a[aria-current="page"] {
  color: #20706f;
  font-weight: 600;
  box-shadow: inset 0 -3px 0 #3B9494;
}

/* Textlinks: #3B9494 auf Weiß/Hellgrau hat nur ~3.3:1, #20706f erreicht WCAG AA. Markenfarbe bleibt in Flächen. */
.content a,
#intro a,
#expertise a.read-more,
.contact-form a {
  color: #20706f;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content a:hover,
#intro a:hover,
#expertise a.read-more:hover {
  color: #134848;
}

/* Fließtext: angenehme Zeilenlänge (~85 Zeichen), nur für reinen Text, nicht für Karten/Bilder */
.content.mainpage > .wrapper > p,
.content.mainpage .left > p,
#intro .right p {
  max-width: 85ch;
}
/* Seiten mit Foto (z. B. Kontakt): Text und Bild als zwei ausgewogene Spalten, Foto mit Rahmen */
@media (min-width: 780px) {
  .content.mainpage > .wrapper:has(> .left):has(> .right) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 3rem;
    align-items: start;
  }
  .content.mainpage > .wrapper > .left,
  .content.mainpage > .wrapper > .right {
    float: none;
    width: auto;
    margin: 0;
  }
  .content.mainpage > .wrapper > .right {
    text-align: left;
  }
}
.content.mainpage > .wrapper > .right img {
  display: block;
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 10px 28px rgba(0, 0, 0, .12);
}
@media (max-width: 779px) {
  .content.mainpage > .wrapper > .right img {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Reine Textseiten (Impressum): Inhalt linksbündig in guter Lesebreite, Gliederung durch Abstände statt leerer Fläche.
   Das alte Raster reservierte hier 65 % Breite für eine Bildspalte, die es gar nicht gibt. */
.content.textpage > .wrapper > .left {
  float: none;
  width: auto;
  max-width: 78ch;
  margin: 0;
}
.content.textpage h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #d5d5d5;
}
.content.textpage h1 + h2 {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}
.content.textpage h3 {
  margin-top: 1.75rem;
  margin-bottom: .5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #20706f;
}
.content.textpage table td {
  padding: .15rem 1.5rem .15rem 0;
  vertical-align: top;
}
.content.textpage ul {
  margin: 0 0 1rem 1.25rem;
}

/* Referenzen-Seite: Teaser ist Fließtext, kein Fettdruck; Abstand zu den Karten angemessen */
.content.projects > .wrapper > p.teaser {
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 85ch;
}
.content.projects > .bottom.wrapper {
  margin-top: 2.5rem;
}

/* Einleitung der Unterseiten etwas größer als der Karten-Text, damit sie als Intro erkennbar ist */
.content.mainpage > .wrapper:first-child > p {
  font-size: 1.1rem;
  line-height: 1.75;
}

/*
 * Weißer Text auf dem Markengrün (#3B9494) erreicht nur 3.59:1, für normalen Text sind 4.5:1 gefordert.
 * Betroffen sind Header, das Kontakt-Band im Footer und der Senden-Button. Die Fläche wird dort leicht
 * abgedunkelt (#2f7f7f = 5.0:1), der Gesamteindruck bleibt grün.
 */
header,
footer > .top,
form.contact button {
  background-color: #2f7f7f;
}
form.contact button:hover {
  background-color: #256868;
}

/* ============================================================
   3. Container-Breite
   Header, Navigation und Inhalt teilen sich dieselbe Breite.
   ============================================================ */
.wrapper,
header .inner {
  max-width: 1120px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .wrapper,
  header .inner {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ============================================================
   4. Projektkarten (Referenzen)
   Bisher: schmales Float-Raster (39 % Bildbreite), Bilder quadratisch beschnitten.
   Jetzt: CSS-Grid, Bild und Text im Wechsel, Bild im 4:3-Rahmen.
   ============================================================ */
ul.mainpage-projects {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
ul.mainpage-projects > li {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 3rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .06);
}
ul.mainpage-projects > li::after {
  display: none;
}
@media (min-width: 780px) {
  ul.mainpage-projects > li {
    grid-template-columns: 55% 45%;
    align-items: stretch;
  }
  /* Im Wechsel: gerade Karten drehen die Reihenfolge um */
  ul.mainpage-projects > li:nth-child(even) .imagelist {
    order: 2;
  }
  ul.mainpage-projects > li:nth-child(even) {
    grid-template-columns: 45% 55%;
  }
}

/* Das alte Raster setzt Breiten/Floats an diesen Elementen, hier zurücksetzen */
ul.mainpage-projects > li .imagelist,
ul.mainpage-projects > li .project-content,
ul.mainpage-projects > li:nth-child(odd) .imagelist,
ul.mainpage-projects > li:nth-child(even) .imagelist,
ul.mainpage-projects > li:nth-child(odd) .project-content,
ul.mainpage-projects > li:nth-child(even) .project-content {
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
}

/*
 * Bildbereich: immer ein 4:3-Fenster. Hochformat-Fotos (600x800) würden die Karte sonst auf 800 px
 * strecken; mit object-fit: cover füllen sie das Fenster, ohne zu verzerren.
 * Vor dem Start von Slick (ohne JS) wird nur das erste Bild gezeigt.
 */
ul.mainpage-projects .imagelist {
  position: relative;
  background: #1a1a1a;
  min-width: 0;
}
ul.mainpage-projects .project-images {
  margin: 0;
  padding: 0;
  list-style: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
ul.mainpage-projects .project-images:not(.slick-initialized) img:not(:first-child) {
  display: none;
}
/*
 * Desktop: Die Bildspalte hat feste Breite. Das Bild ist mindestens 4:3 hoch; ist der Text länger,
 * wird die Karte höher und das Bild füllt die Fläche per cover. Das Seitenverhältnis darf die Breite
 * nicht beeinflussen (sonst frisst das Bild die Textspalte), daher absolute Positionierung.
 */
@media (min-width: 780px) {
  ul.mainpage-projects .imagelist {
    aspect-ratio: auto;
    min-height: 0;
  }
  ul.mainpage-projects .project-images {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  /* Platzhalter, der die Mindesthöhe (4:3 der Bildspalte) vorgibt */
  ul.mainpage-projects .imagelist::before {
    content: "";
    display: block;
    padding-top: 75%;
  }
}
ul.mainpage-projects .slick-list,
ul.mainpage-projects .slick-track {
  height: 100%;
}
ul.mainpage-projects .slick-slide {
  height: 100%;
}
ul.mainpage-projects .project-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Textbereich */
ul.mainpage-projects > li .project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 1rem;
  line-height: 1.7;
}
@media (min-width: 780px) {
  ul.mainpage-projects > li .project-content,
  ul.mainpage-projects > li:nth-child(odd) .project-content,
  ul.mainpage-projects > li:nth-child(even) .project-content {
    padding: 2.5rem 3rem;
  }
}
ul.mainpage-projects > li .project-content h2 {
  margin-bottom: .75rem;
  font-size: 1.4rem;
}
ul.mainpage-projects > li .project-content p {
  margin-bottom: .9rem;
}
ul.mainpage-projects > li .project-content p:last-child {
  margin-bottom: 0;
}

/* Projektdauer / Objekttyp als dezente Angaben mit Icon. Die Alt-Regeln (.project-content .duration, #b3b3b3, 2.1:1)
   haben höhere Spezifität, daher hier ebenfalls mit .project-content. */
ul.mainpage-projects .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
ul.mainpage-projects > li .project-content .project-meta li,
ul.mainpage-projects > li .project-content .project-meta .duration,
ul.mainpage-projects > li .project-content .project-meta .location {
  display: list-item;
  list-style: none;
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #2f2f2f;
}
ul.mainpage-projects > li .project-content .project-meta li::before {
  margin-right: .5rem;
  font-family: "FontAwesome";
  color: #20706f;
}
ul.mainpage-projects > li .project-content .project-meta .duration::before { content: "\f253"; }
ul.mainpage-projects > li .project-content .project-meta .location::before { content: "\f015"; }

/* Slick-Pfeile und -Punkte auf dem Bild: besser erkennbar */
ul.mainpage-projects button.slick-arrow {
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
}
ul.mainpage-projects button.slick-arrow:hover {
  background: rgba(0, 0, 0, .6);
}
ul.mainpage-projects button.slick-arrow::before {
  /* Symbol exakt in der Mitte des Kreises (vorher feste Pixelwerte, dadurch nach oben rechts verschoben) */
  top: 50%;
  right: auto;
  left: 50%;
  width: 1em;
  height: 1em;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  line-height: 1;
}
ul.mainpage-projects button.slick-prev { left: .75rem; }
ul.mainpage-projects button.slick-next { right: .75rem; }
ul.mainpage-projects .slick-dots {
  bottom: .75rem;
}
ul.mainpage-projects .slick-dots li button {
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
ul.mainpage-projects .slick-dots li.slick-active button {
  background: #3B9494;
  box-shadow: 0 0 0 2px #fff;
}

/* Abstand der Referenzen-Überschrift auf Unterseiten */
.content.mainpage .bottom.wrapper > h2,
.content.projects + .bottom.wrapper {
  margin-top: 2rem;
}

/* ============================================================
   5. Startseite
   ============================================================ */

/* Leistungs-Kacheln: Text auf dem Bild besser lesbar */
ul.main-menu-image li a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(20, 70, 70, .55), rgba(20, 70, 70, .78));
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
ul.main-menu-image li a:hover {
  background: linear-gradient(180deg, rgba(20, 70, 70, .3), rgba(20, 70, 70, .6));
}
@media (min-width: 780px) {
  ul.main-menu-image li {
    height: 220px;
  }
}
ul.main-menu-image li {
  background-size: cover;
  background-position: center;
}

/* Intro: Das Original ist nur 553 px breit und wird nicht größer gezogen (sonst unscharf).
   Statt es klein neben dem Text zu lassen, bekommt es einen Rahmen mit Schatten. */
#intro .left img {
  display: block;
  width: 100%;
  max-width: 553px;
  height: auto;
  border: 5px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 10px 28px rgba(0, 0, 0, .12);
}
#intro .right p {
  font-size: 1.05rem;
}
@media (min-width: 780px) {
  #intro .right h1 {
    margin-top: 0;
  }
}

/* Kompetenzen: auf dem Handy einspaltig (das alte 2-Spalten-Raster wirkte unausgewogen) */
@media (max-width: 599px) {
  main #expertise ul li,
  main #expertise ul li:nth-child(2n + 1),
  main #expertise ul li:nth-child(2n + 2) {
    float: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    clear: none;
  }
  main #expertise ul li img {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }
}
#expertise ul li p {
  font-size: .95rem;
  line-height: 1.65;
}
#expertise ul li h3 {
  font-size: .95rem;
}

/* Referenz-Slider auf der Startseite: 3 größere Kacheln im 4:3-Format statt 4 kleiner quadratischer */
.frontpage-projects li.project-images > div img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.frontpage-projects li.project-images > div span {
  padding: .7rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  background: rgba(30, 100, 100, .9);
  color: #fff;
}
/* Die ganze Kachel ist ein Link; Bild und Titel verhalten sich wie vorher */
.frontpage-projects li.project-images > div a.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.frontpage-projects li.project-images > div a.project-link:focus-visible {
  outline: 3px solid #1d5f5f;
  outline-offset: 3px;
}
.frontpage-projects li.project-images > div a.project-link span::after {
  content: " \203A";
}
/* Beim Sprung auf ein Projekt soll der Titel nicht unter dem Seitenkopf verschwinden */
ul.mainpage-projects > li[id^="projekt-"] {
  scroll-margin-top: 1.5rem;
}

/* Pfeile des Startseiten-Sliders: Kreis, gut erkennbar, am Rand statt auf dem Bild */
.frontpage-projects button.slick-arrow {
  top: 40%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: #3B9494;
}
.frontpage-projects button.slick-arrow:hover {
  background: #20706f;
}
.frontpage-projects button.slick-arrow::before {
  top: 50%;
  right: auto;
  left: 50%;
  width: 1em;
  height: 1em;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  line-height: 1;
}
/* Pfeile liegen auf den Kacheln, damit sie nie aus dem Bildschirm ragen */
.frontpage-projects button.slick-prev { left: .75rem; }
.frontpage-projects button.slick-next { right: .75rem; }
.frontpage-projects button.slick-arrow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Karten: sanfte Hover-Anhebung */
.main-menu-image li,
.frontpage-projects li.project-images > div,
ul.mainpage-projects > li {
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
@media (hover: hover) {
  .main-menu-image li:hover,
  .frontpage-projects li.project-images > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  }
}

/* Header-Links */
header .right a {
  color: inherit;
  text-decoration: none;
}
header .right a:hover,
header .right a:focus-visible {
  text-decoration: underline;
}

/* ============================================================
   6. Formular
   ============================================================ */
form input,
form select,
form textarea {
  font-size: 1rem;
  font-weight: 400;
  color: #222;
}
form input::placeholder,
form textarea::placeholder {
  color: #6b6b6b;
  opacity: 1;
}
.alert-text.error {
  color: #b32424;
}
.contact-form .alert-box {
  margin-bottom: 1.5rem;
}
form.contact button {
  font-weight: 600;
}

/* Intro-Text des Formulars */
.contact-form .form-intro {
  max-width: 62ch;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
}

/*
 * Das alte Formular-CSS formatiert jedes <input> in .row als Textfeld (volle Breite, Rahmen).
 * Checkbox und Datei-Auswahl brauchen ihr eigenes Aussehen.
 */
form.contact .row input[type="checkbox"],
form.contact .row input[type="file"] {
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

/* Foto-Upload */
form.contact .photo-upload {
  padding: 1.25rem;
  background: #fff;
  border: 2px dashed #9bc4c4;
  border-radius: 4px;
}
form.contact .photo-label {
  display: block;
  margin-bottom: .75rem;
}
form.contact .photo-title {
  display: block;
  font-weight: 600;
  color: #1d5f5f;
  font-size: 1.05rem;
}
form.contact .photo-title small {
  font-weight: 400;
  color: #4a4a4a;
}
form.contact .photo-hint,
form.contact .photo-note {
  display: block;
  margin: .25rem 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: #4a4a4a;
}
/* Echtes Datei-Feld nur visuell verbergen (bleibt per Tastatur und Screenreader bedienbar);
   sichtbar ist stattdessen ein deutscher Button. */
form.contact .photo-upload input.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
form.contact .photo-upload .photo-button {
  display: inline-block;
  margin: .5rem 0;
  padding: .75rem 1.4rem;
  border-radius: 3px;
  background: #2f7f7f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease-out;
}
form.contact .photo-upload .photo-button::before {
  content: "\f030";
  margin-right: .6rem;
  font-family: "FontAwesome";
}
form.contact .photo-upload .photo-button:hover {
  background: #256868;
}
form.contact .photo-upload input.photo-input:focus-visible + .photo-button {
  outline: 3px solid #ffcf66;
  outline-offset: 2px;
}
form.contact .photo-upload {
  position: relative;
}
form.contact .photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}
form.contact .photo-list:empty {
  display: none;
}
form.contact .photo-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .6rem .4rem .4rem;
  background: #f2f2f2;
  border-radius: 3px;
  font-size: .8rem;
  list-style: none;
}
form.contact .photo-list img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
}
form.contact .photo-list button {
  padding: .25rem .5rem;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: .75rem;
  cursor: pointer;
}
form.contact .photo-list button:hover {
  background: #eee;
}
.photo-error:empty {
  display: none;
}

/* Einwilligung */
form.contact .consent label {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}
form.contact .consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .1rem;
  accent-color: #2f7f7f;
}
form.contact .consent a {
  color: #20706f;
  text-decoration: underline;
}

/* ============================================================
   6a. Kontaktseite = Projektanfrage (Formular links, Kontaktkarte rechts)
   Das alte Formular-CSS setzt feste Breiten (65 %), Floats und negative Ränder für das
   vollbreite Formular. Hier sitzt es in einer Spalte und füllt sie.
   ============================================================ */
.contactpage-head {
  max-width: 70ch;
  margin-bottom: 2rem;
}
.contactpage-head p {
  font-size: 1.1rem;
}
.contactpage-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contactpage-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}
.contactpage-form .contact-form {
  margin: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.contactpage-form .form-intro {
  max-width: none;
  margin: 0 0 1.5rem;
  text-align: left;
  font-size: 1rem;
}
.contactpage-form form.contact,
.contactpage-form form.contact .bottom {
  float: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}
.contactpage-form form.contact .row,
.contactpage-form form.contact .row:nth-child(-n+4),
.contactpage-form form.contact .row:nth-child(-n+4):nth-child(2n + 1),
.contactpage-form form.contact .row:nth-child(-n+4):nth-child(2n + 2) {
  float: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
  clear: none;
}
/* Name/E-Mail/Telefon: zweispaltig ab Tablet, sonst einspaltig */
@media (min-width: 640px) {
  .contactpage-form form.contact .top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
  }
  .contactpage-form form.contact .top > .row:nth-child(n+5) {
    grid-column: 1 / -1;
  }
}
.contactpage-form form.contact .bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.contactpage-form form.contact .bottom .info {
  flex: 1 1 14rem;
}
.contactpage-form form.contact .bottom button {
  flex: 0 1 auto;
  min-width: 15rem;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
}
.contactpage-form form.contact .bottom::after {
  display: none;
}
.contactpage-form form.contact .consent {
  margin-top: .5rem;
}

/* Kontaktkarte */
.contactpage-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .06);
}
@media (min-width: 900px) {
  .contactpage-card {
    position: sticky;
    top: 1.5rem;
  }
}
.contactpage-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
  border-radius: 2px;
}
.contactpage-card h2 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
}
.contactpage-phone {
  margin-bottom: .5rem;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}
.contactpage-phone a {
  color: #1d5f5f;
  text-decoration: none;
}
.contactpage-phone a:hover {
  text-decoration: underline;
}
.contactpage-card address {
  margin: 1.25rem 0 1rem;
  font-style: normal;
  line-height: 1.6;
}
.contactpage-list {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid #e0e0e0;
  list-style: none;
}
.contactpage-list li {
  display: flex;
  gap: .75rem;
  margin: 0 0 .35rem;
  list-style: none;
  font-size: .95rem;
}
.contactpage-list span {
  flex: 0 0 5.5rem;
  color: #4a4a4a;
}

/* ============================================================
   6b. Anfrage / Verkauf ("Projekt anfragen")
   ============================================================ */

/* Buttons */
.button {
  display: inline-block;
  padding: .95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .15s ease-out, color .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.button.primary {
  background: #ffcf66;
  color: #1a1a1a !important;
  box-shadow: 0 3px 0 #c99a1f;
}
.button.primary:hover,
.button.primary:focus-visible {
  background: #ffd986;
  transform: translateY(-1px);
}
.button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .85);
  color: #fff !important;
}
.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, .16);
}

/* Anfrage-Band (Startseite, Seitenenden) */
.cta-box {
  padding: 3rem 0;
  background: #2f7f7f;
  color: #fff;
}
.cta-box .wrapper {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-box .wrapper {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 3rem;
  }
}
.cta-box h2 {
  margin-bottom: .75rem;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.25;
}
@media (min-width: 780px) {
  .cta-box h2 { font-size: 2rem; }
}
.cta-box p {
  max-width: 56ch;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
}
.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cta-points li {
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
  font-size: .95rem;
  font-weight: 600;
}
.cta-points li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  font-family: "FontAwesome";
  color: #ffcf66;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.cta-actions .button {
  width: 100%;
}
.cta-actions .button.primary {
  padding: 1.15rem 1.75rem;
  font-size: 1.2rem;
}

/* "So einfach geht es los" */
.cta-steps {
  padding: 3rem 0 1rem;
  background: #f2f2f2;
}
.cta-steps h2 {
  margin-bottom: 2rem;
  text-align: center;
}
.cta-steps ol {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 780px) {
  .cta-steps ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
.cta-steps li {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .06);
  list-style: none;
  text-align: center;
}
.cta-steps .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #2f7f7f;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
}
.cta-steps h3 {
  margin-bottom: .5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d5f5f;
}
.cta-steps p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}

/* Einstiegs-Button direkt unter dem Seitentext der Leistungsseiten */
.intro-cta {
  margin: 1.5rem 0 0;
}

/* ============================================================
   7. Footer
   ============================================================ */
footer > .top .bottom > span {
  position: relative;
  font-weight: 600;
}
footer > .top .bottom > span > a {
  color: #fff;
  font-weight: inherit;
  text-decoration: none;
}
/* ganze Kachel klickbar, ohne das Inline-Layout (Icon links neben dem Text) zu verändern */
footer > .top .bottom > span > a::after {
  content: "";
  position: absolute;
  inset: 0;
}
footer > .top .bottom > span:hover,
footer > .top .bottom > span:focus-within {
  background: rgba(255, 255, 255, .14);
}
/* Das Maskottchen ist ein Hintergrundbild und lag auf schmalen Bildschirmen unter dem Kontakttext.
   Erst ab Tablet-Breite zeigen, wo dafür Platz ist; darunter eine ruhige zweispaltige Anordnung. */
@media (max-width: 779px) {
  footer > .middle {
    background-image: none;
    padding: 2rem 1.5rem;
  }
  footer > .middle .left,
  footer > .middle .right {
    float: none;
    width: auto;
  }
}
footer > .middle,
footer > .middle a {
  color: #dcdcdc;
  font-size: .95rem;
}
footer > .middle a:hover,
footer > .middle a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
footer > .bottom,
footer > .bottom span {
  color: #c4c4c4;
  font-size: .9rem;
}

/* ============================================================
   8. Barrierefreiheit
   ============================================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .75rem 1.25rem;
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease-out;
}
.skip-link:focus {
  top: 1rem;
}
/* styles.css schaltet den Fokus global ab (:focus { outline: 0 }): für Tastaturnutzer wieder sichtbar */
:focus-visible {
  outline: 3px solid #ffcf66;
  outline-offset: 2px;
}
header :focus-visible,
footer :focus-visible,
.main-menu-image :focus-visible {
  outline-color: #fff;
}
main :focus-visible {
  outline-color: #1a6f6f;
}
form input:focus-visible,
form select:focus-visible,
form textarea:focus-visible {
  outline: 3px solid #1a6f6f;
  outline-offset: 0;
}

/* ============================================================
   9. Bewegung / Druck
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
    color: #000;
  }
  .skip-link,
  nav,
  .contact-form,
  footer > .top,
  .slick-arrow,
  .slick-dots {
    display: none !important;
  }
  header {
    background: none;
    color: #000;
    padding: 0 0 1rem;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  ul.mainpage-projects > li {
    display: block;
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  footer {
    background: none;
    color: #000;
  }
  footer > .middle,
  footer > .middle a,
  footer > .bottom,
  footer > .bottom span {
    color: #000;
  }
}

/* Rückmeldung beim Absenden: Spinner + Hinweistext, erscheint erst nach dem Klick */
form.contact .busy-note {
  flex: 1 1 100%;
  display: none;
  align-items: center;
  gap: .85rem;
  margin-top: .5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1d5f5f;
}
form.contact .busy-note.is-busy {
  display: flex;
}
form.contact .busy-note .spinner {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border: 4px solid rgba(29, 95, 95, .2);
  border-top-color: #1d5f5f;
  border-radius: 50%;
  animation: fw-spin .8s linear infinite;
}
@keyframes fw-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  /* Ohne Bewegung: ruhiger Ring, der Text trägt die Information */
  form.contact .busy-note .spinner {
    animation: none;
    border-color: #1d5f5f;
  }
}
form.contact button[aria-disabled="true"] {
  opacity: .75;
  cursor: progress;
  pointer-events: none;
}

/* ============================================================
   10. Einzelne Projektanfrage (Link aus der Benachrichtigungsmail)
   ============================================================ */
.inquiry .inquiry-meta {
  margin-bottom: 2rem;
  color: #4a4a4a;
}
.inquiry-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 780px) {
  .inquiry-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: start;
  }
}
.inquiry-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .06);
}
.inquiry-card h2,
.inquiry-photos h2,
.inquiry-actions h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.inquiry-card dl {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: .5rem 1rem;
  margin: 0;
}
.inquiry-card dt {
  color: #4a4a4a;
  font-weight: 600;
}
.inquiry-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.inquiry-message {
  margin: 0;
  /* Kundentext mit Zeilenumbruechen darstellen, ohne HTML zuzulassen */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inquiry-photos {
  margin-bottom: 2.5rem;
}
.content.inquiry .inquiry-photos ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Das alte CSS setzt .content ul li auf disc inside; hier mit hoeherer Spezifitaet zuruecknehmen */
.content.inquiry .inquiry-photos li {
  margin: 0;
  list-style: none;
  display: block;
}
.inquiry-photos a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.inquiry-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.inquiry-actions form {
  margin: 1.5rem 0 0;
}
.inquiry-note {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: #4a4a4a;
}
.button.danger {
  background: #fff;
  border-color: #b32424;
  color: #b32424 !important;
}
.button.danger:hover,
.button.danger:focus-visible {
  background: #b32424;
  color: #fff !important;
}

/* Köderfeld gegen Spam-Bots: für Menschen und Screenreader unsichtbar, ohne display:none
   (manche Bots überspringen Felder mit display:none) */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
