/* ==========================================================================
   Couturier - kreative Techniken | Pixelnaher Nachbau
   ========================================================================== */

/* --- Custom Properties ------------------------------------------------- */
:root {
  --color-primary: #d81a1a;        /* Couturier-Rot (Logo, Headings, Telefon) */
  --color-primary-dark: #b51616;
  --color-text: #333333;
  --color-text-muted: #6b6b6b;
  --color-heading: #d81a1a;
  --color-bg: #ffffff;
  --color-bg-alt: #ececec;          /* Hellgrauer Section-Hintergrund */
  --color-bg-alt-2: #e8e8e8;
  --color-nav-bg: #565656;          /* Dunkelgrau Navigation */
  --color-nav-bg-active: #8a8a8a;   /* Heller Hintergrund Aktiver Menüpunkt */
  --color-nav-bg-hover: #6e6e6e;
  --color-footer-bg: #535353;
  --color-border: #d0d0d0;
  --color-white: #ffffff;
  --header-top-gradient: linear-gradient(180deg, #cfcfcf 0%, #ffffff 45%, #ffffff 100%);

  --font-base: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

  --container-max: 1100px;

  --transition: all .25s ease;
}

/* --- Reset / Base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.2; }

p { margin: 0 0 1em; }

ul { padding-left: 1.25rem; margin: 0 0 1em; }

/* Skip-Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

body.no-scroll { overflow: hidden; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: relative; z-index: 100; }

.header-top {
  background: var(--header-top-gradient);
  border-bottom: 1px solid #e3e3e3;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 96px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  max-height: 80px;
  width: auto;
}

.header-contact {
  text-align: right;
  line-height: 1.2;
}

.contact-label {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-phone {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.contact-phone a {
  color: var(--color-primary);
  text-decoration: none;
}

/* Burger nur Mobile */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-nav-bg);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- Navigation -------------------------------------------------------- */
.main-nav {
  background: var(--color-nav-bg);
}

.nav-inner { padding: 0 24px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 400;
  transition: background .2s ease;
  white-space: nowrap;
}

.nav-list > li > a:hover {
  background: var(--color-nav-bg-hover);
  color: #fff;
}

.nav-list > li > a.is-active {
  background: var(--color-nav-bg-active);
  color: #fff;
}

/* Dropdown */
.has-dropdown > a i { font-size: 11px; margin-left: 4px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-nav-bg);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 230px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 50;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.dropdown li a:hover { background: var(--color-nav-bg-hover); }

/* ============================================================
   PAGE TITLE / HERO
   ============================================================ */
.page-title {
  background: var(--color-bg-alt);
  padding: 48px 0 32px;
  text-align: center;
}

.page-title h1 {
  font-size: 38px;
  color: var(--color-primary);
  margin: 0 0 .25em;
  font-weight: 700;
  letter-spacing: .2px;
}

.page-subtitle {
  margin: 0;
  font-size: 24px;
  color: #7a7a7a;
  font-weight: 400;
}

/* Linksbündige Variante (Unterseiten wie Unser Betrieb) */
.page-title-left { text-align: left; padding: 36px 0 20px; }
.page-title-left h1 { font-size: 36px; margin: 0; }

/* ============================================================
   REFERENZEN – Galerien aus manifest.json
   ============================================================ */
.section-referenzen { padding: 0 0 64px; background: var(--color-bg-alt); }

.gallery-block { margin-bottom: 48px; }
.gallery-block:last-child { margin-bottom: 0; }

.gallery-heading {
  font-size: 28px;
  font-weight: 400;
  color: #8a8a8a;
  margin: 0 0 24px;
  letter-spacing: .2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #ddd;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .3s ease;
}

.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-empty {
  color: #888;
  font-style: italic;
  padding: 8px 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  display: block;
  border: 4px solid #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 0;
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.28); }
.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  color: #ddd;
  font-size: 14px;
  padding: 0 24px;
}

/* ============================================================
   KONTAKT-SEITE (Text + Bild, große Icon-Buttons)
   ============================================================ */
.section-kontakt { padding: 0 0 64px; background: var(--color-bg-alt); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.kontakt-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #3f3f3f;
  margin: 0 0 18px;
}
.kontakt-text p.kontakt-emphasis { font-weight: 700; color: #222; }

.kontakt-image img {
  width: 100%;
  display: block;
}

.kontakt-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
}

.kontakt-icon-item {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 18px;
  transition: var(--transition);
}
.kontakt-icon-item:hover { color: var(--color-primary); }

.kontakt-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 22px;
  transition: var(--transition);
}
.kontakt-icon-item:hover .kontakt-icon-box {
  background: var(--color-primary);
}

/* ============================================================
   LEISTUNGS-UNTERSEITEN
   ============================================================ */
.section-leistung { padding: 0 0 64px; background: var(--color-bg-alt); }

.leistung-intro {
  max-width: 100%;
  margin: 0 0 40px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #3f3f3f;
}

.leistung-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 0 0 40px;
}

.leistung-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #fff;
}

.leistung-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.leistung-content p { color: #3f3f3f; line-height: 1.6; }
.leistung-content ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 18px;
  color: #3f3f3f;
}
.leistung-content ul li { margin-bottom: 4px; }
.leistung-content ul li::marker { color: #6b6b6b; }

.subheading {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 22px 0 10px;
}
.leistung-content > div > .subheading:first-child { margin-top: 0; }

/* Info-Box (graue Box mit roter Heading) */
.info-box {
  background: #dcdcdc;
  padding: 26px 28px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
}
.info-box h3 {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
}
.info-box p {
  font-size: 15px;
  color: #3f3f3f;
  margin: 0 0 10px;
  line-height: 1.55;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box a { color: var(--color-primary); }

/* Nav-Trigger (Leistungen ist kein eigener Link, nur Dropdown-Header) */
.nav-list > li > a.nav-trigger { cursor: default; }
.nav-list > li > a.nav-trigger:hover { background: var(--color-nav-bg-hover); }

/* ============================================================
   UNSER BETRIEB - Hero, Info-Grid, Weiterbildungen
   ============================================================ */
.section-betrieb { padding: 0 0 56px; background: var(--color-bg-alt); }

.betrieb-hero {
  margin: 0 0 48px;
}
.betrieb-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
  margin-bottom: 56px;
}

.info-block h2 {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 18px;
}

.info-block p {
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0 0 14px;
}

.weiterbildungen-heading {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
}

.weiterbildungen-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 24px;
  align-items: start;
}

.weiterbildungen-grid img {
  width: auto;
  max-height: 320px;
  height: auto;
  display: block;
  box-shadow: var(--shadow-card);
  background: #fff;
}

/* ============================================================
   SECTIONS - allgemein
   ============================================================ */
.section {
  padding: 56px 0;
  background: var(--color-bg-alt);
}

.section + .section { /* zweite Section nahtlos */
  padding-top: 56px;
}

.section-alt { background: #f5f5f5; }

.section-narrow .container { max-width: 820px; }

.section-heading {
  color: var(--color-primary);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 24px;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 40px;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   SERVICES (Section 1 - Bullet-Liste + Foto)
   ============================================================ */
.section-services { background: var(--color-bg-alt); }

.services-list {
  list-style: disc;
  padding-left: 22px;
  margin: 0;
  font-size: 16px;
  color: #4a4a4a;
}
.services-list li {
  margin-bottom: 6px;
  line-height: 1.5;
}
.services-list li::marker { color: #6b6b6b; }

.services-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SPEZIALGEBIET (3 Bilder mit Caption)
   ============================================================ */
.section-spezialgebiet { background: var(--color-bg-alt); }

.spezial-grid { gap: 28px; }

.spezial-card {
  margin: 0;
  background: transparent;
  transition: var(--transition);
}

.spezial-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.spezial-card:hover img { transform: scale(1.02); }

.spezial-card figcaption {
  text-align: center;
  padding: 14px 8px 4px;
  color: #4a4a4a;
  font-size: 16px;
}

/* ============================================================
   PLANUNG (Haus-Zeichnung + Text)
   ============================================================ */
.section-planung { background: var(--color-bg-alt); }

.grid-2-planung { grid-template-columns: 1fr 1.2fr; }

.planung-image img {
  max-width: 360px;
  margin: 0 auto;
}

.planung-text p {
  font-size: 16px;
  color: #4a4a4a;
  max-width: 520px;
}

/* ============================================================
   FORMS / BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.contact-form { display: grid; gap: 14px; }

.form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #444;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.form-row-consent input { width: auto; margin-top: 4px; }
.form-row-consent label { font-weight: 400; margin: 0; }

.field-error { color: var(--color-primary); font-size: 13px; margin: 4px 0 0; }
.form-success { background: #f0f8ee; border: 1px solid #b6dca8; padding: 24px; border-radius: var(--radius-md); text-align: center; }
.form-success h3 { color: #2e6f1d; margin-top: 0; }

.contact-address i { color: var(--color-primary); margin-right: 6px; }

/* ============================================================
   LEGAL / 404
   ============================================================ */
.legal-text { color: #444; line-height: 1.7; }
.legal-text .section-heading { font-size: 20px; margin-top: 28px; }
.legal-address { font-style: normal; line-height: 1.6; margin: 0 0 1em; }
.legal-note { font-style: italic; color: #888; margin-top: 32px; font-size: 14px; }

.error-page { text-align: center; padding: 24px 0; }
.error-code { font-size: 120px; font-weight: 700; color: var(--color-primary); margin: 0; line-height: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-footer-bg); color: #d9d9d9; font-size: 14.5px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-heading {
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #6c6c6c;
}

.footer-address { font-style: normal; line-height: 1.7; color: #d9d9d9; }
.footer-address a { color: #d9d9d9; }
.footer-address a:hover { color: #fff; }

/* Google Maps Container - wird per JS mit iframe befüllt */
.footer-map,
.gmap-container {
  width: 100%;
  height: 200px;
  background: #6b6b6b;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.footer-map iframe,
.gmap-container iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(.15) contrast(.95);
}

.footer-bar { text-align: center; padding: 18px 16px 24px; border-top: 1px solid #6c6c6c; font-size: 13px; color: #c2c2c2; }
.footer-meta-links { margin: 0 0 6px; }
.footer-meta-links a { color: #d9d9d9; margin: 0 4px; }
.footer-meta-links a:hover { color: #fff; }
.footer-copy { margin: 0; color: #b8b8b8; }

/* Branding-Zeile – ehemals Inline-Style, hier als Klasse */
.agency-branding {
  border-top: 1px solid #6c6c6c;
  color: #b8b8b8;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.agency-branding p { margin: 0; }
.agency-branding a { color: #e8a3a3; }
.agency-branding a:hover { color: #fff; }
.agency-branding .heart-icon { color: red; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(40, 40, 40, 0.96);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  z-index: 9000;
  max-width: 900px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 280px; }
.cookie-banner a { color: #ffb3b3; text-decoration: underline; }
.cookie-banner .cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: 0;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.cookie-banner .cookie-accept:hover { background: var(--color-primary-dark); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1023px) {
  .burger { display: flex; }
  .header-top-inner { min-height: 80px; }
  .logo img { max-height: 64px; }
  .contact-label { font-size: 12px; }
  .contact-phone { font-size: 18px; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-nav-bg);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 70px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.25);
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-list > li > a { display: block; padding: 14px 24px; border-bottom: 1px solid #6e6e6e; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #4a4a4a;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .has-dropdown.is-open > .dropdown { max-height: 600px; }
  .dropdown li a { padding-left: 38px; }
}

@media (max-width: 767px) {
  .header-contact { display: none; }
  .container { padding: 0 18px; }

  .page-title { padding: 36px 0 28px; }
  .page-title h1 { font-size: 26px; }
  .page-subtitle { font-size: 17px; }

  .section { padding: 40px 0; }
  .section-heading { font-size: 22px; }

  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }

  .grid-2-planung { grid-template-columns: 1fr; }
  .planung-image img { max-width: 240px; }

  .info-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
  .weiterbildungen-grid { grid-template-columns: 1fr; }
  .weiterbildungen-grid img { max-height: none; width: 100%; }
  .betrieb-hero { margin-bottom: 32px; }
  .page-title-left h1 { font-size: 28px; }

  .leistung-images { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .leistung-content { grid-template-columns: 1fr; gap: 28px; }

  .kontakt-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .kontakt-icons { grid-template-columns: 1fr; gap: 18px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-heading { font-size: 22px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
  .error-code { font-size: 80px; }
}

@media (max-width: 479px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .nav-list > li > a { padding: 12px 18px; font-size: 14px; }
  .page-title h1 { font-size: 22px; }
  .page-subtitle { font-size: 15px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 32px; }
}

/* ============================================================
   JOOMLA-OVERRIDES
   Diese Regeln korrigieren das Standard-Verhalten vieler Joomla-Templates,
   wenn die Couturier-Sektionen in einem schmalen Beitrags-Container liegen.
   ============================================================ */

/* (1) Weißer Balken über dem Header entfernen: Joomla-Templates haben oft
   einen leeren "top-bar"/"top-modules"-Bereich oder body-padding/margin. */
html, body { margin: 0 !important; padding: 0 !important; }
body { overflow-x: hidden; }

/* Falls das Template einen leeren oberen Modul-Wrapper hat, ohne Inhalt
   kollabieren lassen. Häufige Wrapper-IDs/Klassen in Joomla-Templates: */
#sp-top-bar:empty,
#sp-top:empty,
#g-top:empty,
.t3-top:empty,
.top-bar:empty,
.header-top:empty { display: none; }

/* Couturier-Header direkt an die Oberkante ziehen */
.site-header { margin-top: 0; }
.site-header > .header-top { margin-top: 0; padding-top: 12px; }

/* (2) Full-Width-Trick: Couturier-Sektionen sollen den Hintergrund über die
   gesamte Browserbreite ausspielen, auch wenn sie in einem Joomla-Container
   mit fester max-width liegen. */
.page-title,
.section,
.section-services,
.section-spezialgebiet,
.section-planung,
.section-betrieb,
.section-leistung,
.section-kontakt,
.section-referenzen,
.site-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Innere .container behalten ihre Lesbreite */
.page-title > .container,
.section > .container,
.section-services > .container,
.section-spezialgebiet > .container,
.section-planung > .container,
.section-betrieb > .container,
.section-leistung > .container,
.section-kontakt > .container,
.section-referenzen > .container,
.site-footer > .container,
.site-footer .footer-bar,
.site-footer .agency-branding {
  max-width: var(--container-max, 1100px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Auch Header voll-breit (falls der Joomla-Container ihn beschneidet) */
.site-header {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
