/* Malerbetrieb Güngerich – ein Stylesheet für alle Seiten. Keine Inline-Styles (CSP: style-src 'self'). */

@font-face {
  font-family: "Alfa Slab One";
  src: url("/schriften/alfa-slab-one-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --magenta: #e6007e;
  --magenta-text: #c2006b;   /* 5,9:1 auf Weiß */
  --cyan: #00b4d8;
  --gelb: #ffd800;
  --dunkel: #111828;
  --text: #3a404d;
  --hell: #f6f8fa;
  --rand: #e3e6ea;
  --breite: 1180px;
  --verlauf: linear-gradient(90deg, #d4107c 0%, #0086ad 55%, #3a973d 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Arial, Helvetica, "Liberation Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0 0 .5em; line-height: 1.2; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--magenta-text); text-underline-offset: .15em; }
a:hover { color: var(--dunkel); }
a[href^="tel:"], a[href^="mailto:"], .kurz { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.innen { width: min(100% - 40px, var(--breite)); margin-inline: auto; }

.sprung { position: absolute; left: -999em; top: 0; background: #fff; padding: 10px 16px; z-index: 10; }
.sprung:focus { left: 8px; top: 8px; }

/* Überschriften im Farbverlauf (CMY wie im Logo, für Lesbarkeit abgedunkelt) */
.bunt {
  font-family: "Alfa Slab One", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #0086ad;
  letter-spacing: .01em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .bunt {
    background: var(--verlauf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) { .bunt { background: none; color: CanvasText; } }

/* Kopf */
.leiste { font-size: .875rem; padding: 7px 0; border-bottom: 1px solid var(--rand); }
.leiste .innen { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
.leiste a, .leiste span { color: var(--magenta-text); text-decoration: none; white-space: nowrap; }
.leiste a:hover { text-decoration: underline; }

.kopf .innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-block: 12px; }
.logo { display: block; flex: none; }
.logo img { width: 200px; }
.menue { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.menue a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; color: var(--dunkel); text-decoration: none; white-space: nowrap;
}
.menue a:hover { background: var(--hell); }
.menue a[aria-current="page"] { color: var(--magenta-text); box-shadow: inset 0 -3px 0 var(--magenta); border-radius: 0; }
@media (max-width: 560px) {
  .kopf .innen { justify-content: center; }
  .logo img { width: 180px; }
}

/* Titelbereich der Startseite */
.titel {
  padding: 48px 0 64px;
  background: linear-gradient(125deg, #fff 0 58%, #e4f7fb 58% 100%);
}
.titel h1 { text-align: center; margin-bottom: 40px; }
.titel h1 .bunt { display: block; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.1; }
.titel h1 .unter { display: block; margin-top: 12px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--dunkel); font-weight: 700; }
.zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.zwei > div { display: grid; gap: 24px; }
.zwei img { width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(17, 24, 40, .14); }
.zwei p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .titel { padding: 32px 0 44px; background: linear-gradient(160deg, #fff 0 62%, #e4f7fb 62% 100%); }
  .titel h1 { margin-bottom: 28px; }
  .zwei { grid-template-columns: minmax(0, 1fr); }
}

/* Abschnitte */
.abschnitt { padding: 64px 0; }
.abschnitt > .innen > h2, .seitenkopf h1 { text-align: center; font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin-bottom: 32px; }
@media (max-width: 760px) { .abschnitt { padding: 44px 0; } }

.karten { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.karten.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.karten.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .karten.fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .karten.drei, .karten.fuenf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .karten.drei, .karten.fuenf { grid-template-columns: minmax(0, 1fr); } }

.karte {
  background: #fff; border-radius: 16px; padding: 22px 22px 20px;
  border-top: 5px solid var(--magenta);
  box-shadow: 0 8px 24px rgba(17, 24, 40, .12);
}
.karte:nth-child(3n+2) { border-top-color: var(--cyan); }
.karte:nth-child(3n) { border-top-color: var(--gelb); }
.karte h3 { font-size: 1.1rem; color: var(--dunkel); margin-bottom: .35em; hyphens: auto; }
.karte p { margin: 0; font-size: 1rem; line-height: 1.55; }
.karte svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--magenta); }
.karte:nth-child(3n+2) svg { color: #0097b8; }
.karte:nth-child(3n) svg { color: #d9a400; }

/* Leistungen: Foto im Hintergrund, dunkel überlegt, damit die Überschrift lesbar bleibt */
.leistungen {
  background-color: #7a2630;
  background-image: linear-gradient(rgba(17, 24, 40, .55), rgba(17, 24, 40, .55)), url("/bilder/fassade-rot-1600.webp");
  background-size: cover; background-position: center;
}
.leistungen > .innen > h2 { color: #fff; font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; letter-spacing: .01em; }
@media (max-width: 760px) {
  .leistungen { background-image: linear-gradient(rgba(17, 24, 40, .55), rgba(17, 24, 40, .55)), url("/bilder/fassade-rot-800.webp"); }
}
@media (min-width: 1700px) {
  .leistungen { background-image: linear-gradient(rgba(17, 24, 40, .55), rgba(17, 24, 40, .55)), url("/bilder/fassade-rot-2400.webp"); }
}

.warum { background: linear-gradient(90deg, #fde6f1, #e2f7fb); }

/* Kontakt */
.kontakt { text-align: center; }
.kontakt .einleitung { max-width: 46rem; margin: 0 auto 28px; text-wrap: balance; }
.kontakt .einleitung p { text-wrap: balance; margin-bottom: .3em; }
.knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: 0 0 40px; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--magenta-text);
  background: var(--magenta-text); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.knopf:hover { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.knopf.hell { background: #fff; color: var(--magenta-text); }
.knopf.hell:hover { background: var(--dunkel); color: #fff; }
.angaben { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; }
.angaben > div { background: var(--hell); border-radius: 16px; padding: 22px; }
.angaben h3 { font-size: 1.05rem; color: var(--dunkel); }
.angaben p { margin: 0 0 .5em; }
.angaben p:last-child { margin-bottom: 0; }
.weiter { display: block; width: fit-content; margin-top: .35em; }
@media (max-width: 760px) { .angaben { grid-template-columns: minmax(0, 1fr); } }

/* Unterseiten */
.seitenkopf { padding: 44px 0 8px; background: linear-gradient(125deg, #fff 0 58%, #e4f7fb 58% 100%); }
.seitenkopf h1 { margin-bottom: 8px; }
.seitenkopf p { text-align: center; text-wrap: balance; font-size: 1.15rem; margin: 0; padding-bottom: 28px; }
.galerie-titel { text-align: center; font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--dunkel); margin-bottom: 24px; }
.galerie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.galerie a { display: block; border-radius: 12px; overflow: hidden; background: var(--hell); }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s; }
.galerie a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } }
@media (max-width: 900px) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.gross { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.gross::backdrop { background: rgba(10, 14, 24, .93); }
.gross .rahmen { position: absolute; inset: 56px 12px 56px; }
.gross img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gross button {
  position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.gross button:hover { background: var(--magenta-text); }
.gross .zu { top: 6px; right: 12px; }
.gross .vor, .gross .zurueck { bottom: 6px; }
.gross .zurueck { left: calc(50% - 100px); }
.gross .vor { right: calc(50% - 100px); }
.gross .zaehler { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }

.text { max-width: 50rem; }
.text h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin-bottom: 24px; hyphens: manual; }
.abschnitt > .innen.text h2 { font-size: 1.35rem; color: var(--dunkel); margin: 1.8em 0 .5em; text-align: left; }
.text h3 { font-size: 1.1rem; color: var(--dunkel); margin-top: 1.4em; }
.text ul { padding-left: 1.2em; margin: 0 0 1em; }
.text address { font-style: normal; margin: 0 0 1em; }

.plakat { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.plakat img { border-radius: 10px; box-shadow: 0 8px 24px rgba(17, 24, 40, .16); }
@media (max-width: 760px) { .plakat { grid-template-columns: minmax(0, 1fr); } .plakat a.bild { max-width: 320px; } }

.fehler { text-align: center; padding: 72px 0; }
.fehler h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); }
.fehler p { text-wrap: balance; }

/* Fuß */
.fuss { background: var(--dunkel); color: #cfd4de; padding: 36px 0 28px; font-size: .95rem; }
.fuss a { color: #ff7dbf; }
.fuss a:hover { color: #fff; }
.fuss .oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 40px; }
.fuss .firma { margin: 0; }
.fuss .firma strong { color: #fff; }
.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss li { margin-bottom: 4px; }
.fuss .foerderung { display: flex; align-items: center; gap: 12px; max-width: 17rem; text-decoration: none; }
.fuss .foerderung img { width: 64px; border-radius: 4px; flex: none; }
.fuss .foerderung span { text-decoration: underline; text-underline-offset: .15em; }
.fuss .unten { margin-top: 28px; padding-top: 18px; border-top: 1px solid #2b3447; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: .875rem; }
.fuss .unten p { margin: 0; }
.credits > span { white-space: nowrap; }
@media (max-width: 600px) {
  .credits > span { display: block; }
  .credits > .trenner { display: none; }
}
