/* ============================================================
   modern.css — HOFFUTEC Modernisierung
   - Original CI (Rot/Grau, Handwerk-Optik) bleibt 100% erhalten
   - Layout flow & Typografie aktualisiert auf 2026-Standard
   - Mobile-first Drawer, Desktop crisp & smooth
   ============================================================ */

/* ---------- Design Tokens ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-variable.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;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-variable.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-primary: #963a3a;
  --color-primary-dark: #7a2828;
  --color-primary-light: #b54545;
  --color-text: #2a2a2a;
  --color-text-soft: #555;
  --color-border: #e5e5e5;
  --color-bg-soft: #f8f8f8;
  --color-sidebar-1: #4a4a4a;
  --color-sidebar-2: #2f2f2f;
  --font-sans: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Polish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--color-text);
}

/* Justify-Align der alten HTML rausnehmen — modern ist links-bündig */
[align="justify"], div[align="justify"] {
  text-align: left !important;
}

/* Outdated <font> Tags neutralisieren */
font[face], font[color] {
  font-family: inherit !important;
  color: inherit !important;
}

/* Smoother base typography across all content classes */
.intro_weiss,
.Stil9, .Stil10, .Stil11, .Stil12, .Stil16,
.Stil19, .Stil20, .Stil21, .Stil24, .Stil26, .Stil30, .Stil31, .Stil32,
#copyright, #text_home, #text1a, #referenzen,
[id^="Layer"] {
  font-family: var(--font-sans) !important;
  letter-spacing: 0.005em;
  color: var(--color-text);
}

.intro_weiss, #text_home, #text1a, #referenzen,
[id^="Layer"] {
  line-height: 1.6;
}

.intro_weiss strong,
[id^="Layer"] strong {
  color: #111;
  letter-spacing: 0.01em;
  font-weight: 600;
}

/* Headlines in content (the first span.Stil10/Stil12 with caps text) */
.intro_weiss > div > .Stil10:first-child,
.intro_weiss > div > .Stil12:first-child,
.intro_weiss > div > span:first-child {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 18px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
}

/* Listen schöner */
.intro_weiss ul,
[id^="Layer"] ul {
  padding-left: 22px;
  margin: 8px 0 14px;
}
.intro_weiss li,
[id^="Layer"] li {
  margin-bottom: 6px;
  position: relative;
}
.intro_weiss ul,
[id^="Layer"] ul {
  list-style: none;
  padding-left: 0;
}
.intro_weiss ul li,
[id^="Layer"] ul li {
  padding-left: 20px;
}
.intro_weiss ul li::before,
[id^="Layer"] ul li::before {
  content: "›";
  color: var(--color-primary);
  font-weight: 700;
  position: absolute;
  left: 4px;
  top: 0;
}
/* Inhalt eines Listenpunkts bleibt inline mit dem Bullet
   (verhindert, dass Text unter das ›-Zeichen rutscht) */
.intro_weiss li > div,
[id^="Layer"] li > div {
  display: inline;
}
/* Einheitliche Schriftstärke in Listenpunkten — kein Mix aus fett/normal */
.intro_weiss li,
.intro_weiss li strong,
[id^="Layer"] li,
[id^="Layer"] li strong {
  font-weight: 400;
}

/* Links im Content */
.intro_weiss a,
#text_home a, #text1a a, #referenzen a,
[id^="Layer"] a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.intro_weiss a:hover, #text_home a:hover, #text1a a:hover,
#referenzen a:hover, [id^="Layer"] a:hover {
  color: var(--color-primary-dark);
}

/* ---------- Hauptcontainer ---------- */
body {
  background: #525052;
}

/* === DESKTOP: Sauberes Grid Layout (Header / Sidebar / Content) === */
#gesamt {
  position: static !important;
  display: grid;
  grid-template-columns: 230px 1fr;
  grid-template-areas:
    "header  header"
    "sidebar content";
  width: 1000px !important;
  height: auto !important;
  min-height: 700px;
  margin: 24px auto;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
  overflow: hidden;
}

/* Header (großes Hoffutec-Bild oben) */
#gesamt > div:first-of-type {
  grid-area: header;
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
}
#gesamt > div:first-of-type picture {
  display: block;
  width: 100%;
  line-height: 0;
}
#gesamt > div:first-of-type img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Sidebar */
.sidebar {
  grid-area: sidebar;
  background: linear-gradient(to bottom, #3a3a3a 0%, #1a1a1a 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
}
/* Marken-Banner oben in der Sidebar — Fugenspritze (per JS injiziert) */
.sidebar-brand {
  display: block;
  line-height: 0;
  background: linear-gradient(to bottom, #f3f3f5 0%, #dcdce0 100%);
  border-bottom: 2px solid var(--color-primary);
  overflow: hidden;
  transition: filter 0.2s var(--ease);
}
.sidebar-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.sidebar-brand:hover {
  filter: brightness(1.05);
}

.sidebar > div:last-child {
  margin-top: auto;
  padding: 0;
  min-height: 18px;
  background: linear-gradient(to bottom, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 2px solid var(--color-primary);
  font-size: 0;
  line-height: 0;
}
.sidebar > div:last-child > * {
  display: none !important;
}
#copyright {
  display: none !important;
}

/* ---------- Global Footer ---------- */
.site-footer {
  width: 1000px;
  max-width: calc(100% - 48px);
  margin: 0 auto 34px;
  background: linear-gradient(to bottom, #2a2a2d 0%, #141416 100%);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--color-primary);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  padding: 34px 34px 28px;
}
.site-footer-group,
.site-footer-brand {
  min-width: 0;
}
.site-footer-mark {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 14px;
  color: #f5f5f5;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-primary);
}
.site-footer-mark b {
  font-weight: 800;
  color: #fff;
}
.site-footer-mark i {
  font-style: normal;
  font-weight: 700;
  color: #a6a6a8;
}
.site-footer-claim {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
  max-width: 320px;
}
.site-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer-button,
.site-footer-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.site-footer-button {
  background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 40, 40, 0.26);
}
.site-footer-phone {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.site-footer-button:hover,
.site-footer-phone:hover {
  transform: translateY(-1px);
}
.site-footer-phone:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}
.site-footer-title {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer-list li + li {
  margin-top: 9px;
}
.site-footer-list a,
.site-footer-contact-value,
.site-footer-meta a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer-list a:hover,
.site-footer-contact-value:hover,
.site-footer-meta a:hover {
  color: #fff;
}
.site-footer-list a {
  display: inline-block;
  line-height: 1.5;
}
.site-footer-contact-row + .site-footer-contact-row {
  margin-top: 13px;
}
.site-footer-address {
  margin-bottom: 17px;
}
.site-footer-address .site-footer-contact-value {
  color: rgba(255, 255, 255, 0.74);
}
.site-footer-contact-company {
  display: block;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 400;
  letter-spacing: 0;
}
.site-footer-contact-person {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}
.site-footer-contact-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer-contact-value {
  display: inline-block;
  line-height: 1.6;
  word-break: break-word;
}
.site-footer-contact-phone {
  display: block;
  margin-top: 2px;
}
.site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 34px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}
.site-footer-meta-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.6;
}
.site-footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Content Area — normal block flow (kein Flex, sonst stacken inline-block thumbs) */
.content-area {
  grid-area: content;
  padding: 0 0 40px;
  background: #fff;
  display: block;
}

@media (min-width: 1021px) {
  .content-area {
    height: 800px;
    min-height: 800px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  #gesamt:has(.nav-item.active[data-label="Impressum"]) .content-area,
  #gesamt:has(.nav-item.active[data-label="Datenschutz"]) .content-area {
    height: auto;
    min-height: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  #gesamt:has(.nav-item.active[data-label="Kontakt"]) .content-area {
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }
}

/* Thumbnail-Galerie: einheitliche Reihe unter dem Content (flex, robust) */
.content-area .thumbs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 6px 40px 34px;
  margin: 0;
}
.content-area .thumbs-row > * {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  z-index: auto !important;
  visibility: visible !important;
}
.content-area .thumbs-row a {
  display: block;
  line-height: 0;
}
.content-area .thumbs-row img {
  display: block;
  height: 82px !important;
  width: auto !important;
  max-width: none;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.content-area .thumbs-row a:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Einheitlicher Seitentitel — gilt für ALLE Seitentypen */
.content-area .page-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 20px;
  padding-bottom: 6px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-primary);
}

/* Alle Content-Elemente: Position static, normale Flow */
.content-area > *,
.content-area > div {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  visibility: visible !important;
  z-index: auto !important;
  margin: 0;
}

/* Decoration-Divs ausblenden */
#verlauf_oben, #schatten_oben {
  display: none !important;
}

/* ============================================================
   DESKTOP NAVIGATION — CSS-Buttons crisp & smooth
   ============================================================ */
.nav-item {
  position: relative;
  display: block;
  width: 230px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-sidebar-1) 0%, var(--color-sidebar-2) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
/* Home = einheitlicher Text-Button wie alle anderen (kein Spezial-Styling) */
.nav-item.active {
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-top-color: var(--color-primary-light);
}


.nav-item > a,
.nav-item > a > img,
.nav-item > img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.nav-item > a {
  visibility: visible;
  cursor: pointer;
  z-index: 2;
}

/* Text-Label */
.nav-item::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 22px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: padding-left 0.2s var(--ease);
}

.nav-item.active::before { font-weight: 600; }

/* Referenzen und Legal-Seiten bleiben erhalten, aber nicht in der Hauptnavigation. */
.nav-item[data-label="Referenzen"],
.nav-item[data-label="Impressum"],
.nav-item[data-label="Datenschutz"] {
  display: none;
}

.nav-item[data-label="Startseite"]::before { content: "Willkommen"; }
.nav-item[data-label="Silikonfugen"]::before { content: "Silikonfugen"; }
.nav-item[data-label="Bodenfugen"]::before { content: "Bodenfugen"; }
.nav-item[data-label="Hochbau"]::before { content: "Hochbau"; }
.nav-item[data-label="Tankanlagen"]::before { content: "Tank- und LAU-Anlagen"; }
.nav-item[data-label="Sanierung"]::before { content: "Sanierung"; }
.nav-item[data-label="Referenzen"]::before { content: "Referenzen"; }
.nav-item[data-label="Kontakt"]::before { content: "Kontakt"; }
.nav-item[data-label="Impressum"]::before { content: "Impressum"; }
.nav-item[data-label="Datenschutz"]::before { content: "Datenschutz"; }

/* Subtiler Akzentstrich links bei Hover */
.nav-item:not(.active)::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s var(--ease);
}
.nav-item:not(.active):hover::after {
  width: 3px;
}
.nav-item:not(.active):hover {
  background: linear-gradient(to bottom, #5a5a5a 0%, #3a3a3a 100%);
}
.nav-item:not(.active):hover::before {
  padding-left: 28px;
}
.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #fff;
}

/* ============================================================
   CONTENT BEREICH (Desktop)
   Original-Layout nutzt position:absolute. Wir lassen das wo es funktioniert,
   fixen aber Overflow-Bugs und sorgen für sauberen Flow.
   ============================================================ */

/* Text-Container */
.content-area > #text_home,
.content-area > #text1a,
.content-area > #referenzen {
  padding: 32px 40px 24px !important;
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.65;
}

/* Hero-Bilder als sauberer Banner */
.content-area > #boden,
.content-area > #bad,
.content-area > #sanierung,
.content-area > #sanierungsilikon,
.content-area > #iss,
.content-area > #tank,
.content-area > #treppe {
  overflow: hidden !important;
  width: 100% !important;
  max-height: 340px;
  background: #f0f0f0;
  border-bottom: 1px solid var(--color-border);
}
.content-area > #boden img,
.content-area > #bad img,
.content-area > #sanierung img,
.content-area > #sanierungsilikon img,
.content-area > #iss img,
.content-area > #tank img,
.content-area > #treppe img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Layer-Divs (Impressum, Datenschutz, Kontakt) */
.content-area > [id^="Layer"],
.content-area > [id*="Main Text"] {
  padding: 0 40px !important;
  max-width: 760px;
}
.content-area > [id^="Layer"][id$="11"],
.content-area > [id*="Main Text"] {
  padding-top: 24px !important;
}

/* Lightbox-Thumbnails container */
.content-area > div[id^="Boden_"],
.content-area > div[id="Halle"],
.content-area > div[id="Drehtuere"],
.content-area > div[id^="Glasfront"],
.content-area > div[id="Wintergarten"],
.content-area > div[id="Glasdach"],
.content-area > div[id="Hochhaus"],
.content-area > div[id="Fenster"],
.content-area > div[id="Waschbecken"],
.content-area > div[id="Flur"],
.content-area > div[id="Kueche"],
.content-area > div[id="Bad_Sanierung"],
.content-area > div[id="Boden_Spuren"],
.content-area > div[id="Boden_Kreuz"],
.content-area > div[id="Boden_Stufe"] {
  display: inline-block !important;
  margin: 4px !important;
  padding: 0 !important;
  vertical-align: top;
}

/* Lightbox-Galerie Wrapper (alle thumbs nach Text bekommen padding-left) */
.content-area > #text_home + div[id^="Boden_"],
.content-area > #text_home + div[id="Halle"],
.content-area > #text_home + div[id="Drehtuere"],
.content-area > #text_home + div[id^="Glasfront"],
.content-area > #text_home + div[id="Wintergarten"],
.content-area > #text_home + div[id="Glasdach"],
.content-area > #text_home + div[id="Hochhaus"],
.content-area > #text_home + div[id="Fenster"],
.content-area > #text_home + div[id="Waschbecken"],
.content-area > #text_home + div[id="Flur"],
.content-area > #text_home + div[id="Kueche"],
.content-area > #text_home + div[id="Bad_Sanierung"],
.content-area > #text_home + div[id="Boden_Spuren"] {
  margin-left: 40px !important;
}

/* Tabellen im Content responsive klemmen */
#text_home table, #text1a table, [id^="Layer"] table {
  max-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
}
#text_home td, #text1a td, [id^="Layer"] td {
  padding: 4px 8px 4px 0;
  vertical-align: top;
}

/* Sanierung Comparison Table */
#text_home td[align="center"] {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  padding: 14px 6px 10px;
  border-bottom: 2px solid var(--color-border);
  text-align: center;
}

/* Sanierung Sub-Cards (Bilder mit Link) */
#text_home td a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#text_home td a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
#text_home td a img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 155px;
  border-radius: 3px;
}

/* Slideshow auf Referenzen */
#slideshow {
  max-width: 670px;
  width: 100% !important;
  height: auto !important;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
#slideshow img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Lightbox-Thumbnails */
a[rel^="lightbox"] {
  display: inline-block;
}
a[rel^="lightbox"] img {
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a[rel^="lightbox"]:hover img {
  transform: scale(1.06) translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Layer-divs (Impressum, Datenschutz, Kontakt) — Position bleibt, aber Text breiter */
[id^="Layer"] {
  font-size: 14px;
}
[id^="Layer"][id$="11"], /* Layer11 — Hauptcontent */
[id^="Layer"][id$="12"] {
  width: 670px !important;
  max-width: 670px;
  height: auto !important;
  overflow: visible !important;
}

/* Copyright dezent */
#copyright {
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 10px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0 0;
}

/* Broken Sub-Menu Buttons (Sanierung-Subpages) → CSS-Buttons */
img[src*="/button/bodenfugen_g.png"],
img[src*="/button/bodenfugen_s.png"],
img[src*="/button/fenster_g.png"],
img[src*="/button/fenster_s.png"],
img[src*="/button/fertigteilfugen_g.png"],
img[src*="/button/fertigteilfugen_s.png"],
img[src*="/button/silikonfugen_g.png"],
img[src*="/button/silikonfugen_s.png"] {
  width: 230px !important;
  height: 38px !important;
  background: linear-gradient(to bottom, var(--color-sidebar-1) 0%, var(--color-sidebar-2) 100%);
  color: transparent;
  border-radius: 3px;
  transition: background 0.2s var(--ease);
}
a:has(> img[src*="/button/bodenfugen"]),
a:has(> img[src*="/button/fenster_"]),
a:has(> img[src*="/button/fertigteilfugen"]),
a:has(> img[src*="/button/silikonfugen_"]) {
  position: relative;
  display: inline-block;
  margin-bottom: 2px;
}
a:has(> img[src*="/button/bodenfugen"])::after { content: "Bodenfugen"; }
a:has(> img[src*="/button/fenster_"])::after { content: "Fensterfugen"; }
a:has(> img[src*="/button/fertigteilfugen"])::after { content: "Fertigteilfugen"; }
a:has(> img[src*="/button/silikonfugen_"])::after { content: "Silikonfugen"; }
a:has(> img[src*="/button/bodenfugen"])::after,
a:has(> img[src*="/button/fenster_"])::after,
a:has(> img[src*="/button/fertigteilfugen"])::after,
a:has(> img[src*="/button/silikonfugen_"])::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 20px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  letter-spacing: 0.03em;
}
a:hover > img[src*="/button/bodenfugen_g.png"],
a:hover > img[src*="/button/fenster_g.png"],
a:hover > img[src*="/button/fertigteilfugen_g.png"],
a:hover > img[src*="/button/silikonfugen_g.png"] {
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* ============================================================
   MOBILE — Komplettes Redesign
   ============================================================ */

/* Standard ausgeblendet */
.mobile-nav-toggle,
.mobile-drawer {
  display: none;
}

@media (max-width: 1020px) {
  html, body { overflow-x: hidden; }
  body {
    background: #f4f4f4;
    margin: 0;
    padding: 56px 0 0 0;
  }

  /* Sticky Top Bar */
  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #1f1f1f 0%, #2c2c2c 100%);
    color: #fff;
    padding: 0 22px;
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--color-primary);
    font-family: var(--font-sans);
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    height: 56px;
  }
  .mobile-nav-toggle > span:first-child {
    display: inline-flex;
    align-items: baseline;
    color: #f5f5f5;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-primary);
  }
  .mobile-nav-toggle > span:first-child b {
    font-weight: 800;
    color: #fff;
  }
  .mobile-nav-toggle > span:first-child i {
    font-style: normal;
    font-weight: 700;
    color: #9a9a9a;
  }
  .mobile-nav-toggle .burger {
    width: 28px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
  }
  .mobile-nav-toggle .burger::before,
  .mobile-nav-toggle .burger::after,
  .mobile-nav-toggle .burger > span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.28s var(--ease), opacity 0.2s ease, top 0.28s var(--ease), bottom 0.28s var(--ease);
  }
  .mobile-nav-toggle .burger::before { top: 0; }
  .mobile-nav-toggle .burger > span { top: 9px; display: block; }
  .mobile-nav-toggle .burger::after { bottom: 0; }

  body.nav-open .mobile-nav-toggle .burger::before { top: 9px; transform: rotate(45deg); }
  body.nav-open .mobile-nav-toggle .burger::after { bottom: 9px; transform: rotate(-45deg); }
  body.nav-open .mobile-nav-toggle .burger > span { opacity: 0; }

  /* Container full width, weiße Karte */
  #gesamt {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 56px);
    margin: 0 !important;
    position: relative !important;
    box-shadow: none;
    background: #fff;
    border-radius: 0;
    grid-template-columns: 1fr !important;
    grid-template-areas: "header" "content" !important;
  }
  /* Desktop-Sidebar ausblenden (mobile nutzt Drawer) */
  .sidebar { display: none !important; }
  .content-area { grid-area: content; width: 100%; }

  /* Header-Bild responsive */
  #gesamt > div:first-of-type {
    width: 100%;
  }
  #gesamt > div:first-of-type picture {
    display: block;
    width: 100%;
  }
  #gesamt > div:first-of-type img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
  }
  .site-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px 22px;
  }
  .site-footer-claim {
    max-width: none;
  }
  .site-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .site-footer-button,
  .site-footer-phone {
    width: 100%;
  }
  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 22px 22px;
  }
  .site-footer-meta-links {
    gap: 14px;
  }

  /* Desktop Nav komplett ausblenden */
  .nav-item,
  #gesamt > div:has(> img[src*="unten_280"]),
  #gesamt #copyright {
    display: none !important;
  }

  /* Drawer Backdrop */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99;
    animation: fadeIn 0.22s var(--ease);
  }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #1f1f1f;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.32s var(--ease);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    flex-direction: column;
  }
  body.nav-open .mobile-drawer {
    transform: translateX(0);
  }
  .mobile-drawer > a {
    display: block;
    padding: 17px 26px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, padding-left 0.18s var(--ease), border-left-color 0.18s ease;
    border-left: 3px solid transparent;
  }
  .mobile-drawer > a:hover,
  .mobile-drawer > a:focus {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 32px;
    border-left-color: var(--color-primary);
    outline: none;
  }
  .mobile-drawer > a.active {
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    border-left-color: #fff;
    font-weight: 600;
  }
  .mobile-drawer > a.active:hover {
    padding-left: 26px;
  }
  .mobile-drawer > a:first-child {
    background: #0a0a0a;
    padding: 24px 26px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-primary);
  }
  .mobile-drawer > a:first-child.active {
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary));
  }
  .mobile-drawer-direct {
    margin: 24px 26px 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }
  .mobile-drawer-direct-title {
    margin: 0 0 11px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-drawer-direct-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mobile-drawer-direct-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s var(--ease), filter 0.18s var(--ease), background 0.18s var(--ease);
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-drawer-direct-link svg {
    display: block;
    width: 19px;
    height: 19px;
  }
  .mobile-drawer-direct-tel {
    background: rgba(209, 32, 39, 0.9);
  }
  .mobile-drawer-direct-mail {
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-drawer-direct-whatsapp {
    background: rgba(37, 211, 102, 0.82);
  }
  .mobile-drawer-direct-link:hover,
  .mobile-drawer-direct-link:focus {
    filter: brightness(1.08);
    outline: none;
    transform: translateY(-1px);
  }
  .mobile-drawer-footer {
    margin-top: auto;
    padding: 26px 26px 32px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.55;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.16));
  }
  .mobile-drawer-footer-company {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .mobile-drawer-footer-address {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
  }
  .mobile-drawer-footer-address span {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
  }
  .mobile-drawer-footer-contact + .mobile-drawer-footer-contact {
    margin-top: 14px;
  }
  .mobile-drawer-footer-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-drawer-footer-value {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }
  .mobile-drawer-footer a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    border: 0;
    font-size: inherit;
    display: inline-block;
    background: transparent;
  }
  .mobile-drawer-footer a:hover {
    background: transparent;
    padding-left: 0;
    border-left-color: transparent;
    text-decoration: underline;
  }

  /* === Content Bereich === */
  #verlauf_oben, #schatten_oben { display: none; }

  /* Hero-Bilder als Banner */
  #boden, #bad, #sanierung, #sanierungsilikon, #iss, #tank, #treppe {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-height: 240px !important;
    overflow: hidden !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #boden img, #bad img, #sanierung img, #sanierungsilikon img,
  #iss img, #tank img, #treppe img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }

  /* Text Containers */
  #text_home, #text1a, #referenzen {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0;
    padding: 24px 22px 40px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.65;
  }
  #text_home > div, #text1a > div {
    text-align: left !important;
  }

  /* Layer-divs (Impressum, Datenschutz, Kontakt) */
  [id^="Layer"],
  div[id*="Main Text"] {
    position: static !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
    padding: 4px 22px;
    margin: 0;
    box-sizing: border-box;
    font-size: 15px !important;
    z-index: auto !important;
  }
  [id^="Layer"] table,
  div[id*="Main Text"] table {
    width: 100% !important;
    max-width: 100%;
  }
  [id^="Layer"] table td {
    display: block;
    width: 100% !important;
    padding: 4px 0 !important;
    font-size: 15px !important;
  }
  /* Aber Kontakt-Tabelle bleibt zwei-spaltig (Label : Wert) */
  #Layer11 table tr td:first-child {
    font-weight: 600;
    color: var(--color-primary);
    padding-top: 12px !important;
  }

  /* Lightbox Thumbnails — grid */
  div[id^="Boden_"],
  div[id="Halle"],
  div[id="Drehtuere"],
  div[id^="Glasfront"],
  div[id="Wintergarten"],
  div[id="Glasdach"],
  div[id="Hochhaus"],
  div[id="Fenster"],
  div[id="Waschbecken"],
  div[id="Flur"],
  div[id="Kueche"],
  div[id="Bad_Sanierung"],
  div[id*="Lightbox"] {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    margin: 4px !important;
  }
  div[id^="Boden_"] img,
  div[id="Halle"] img, div[id="Drehtuere"] img,
  div[id^="Glasfront"] img, div[id="Wintergarten"] img,
  div[id="Glasdach"] img, div[id="Hochhaus"] img,
  div[id="Fenster"] img, div[id="Waschbecken"] img,
  div[id="Flur"] img, div[id="Kueche"] img,
  div[id="Bad_Sanierung"] img,
  div[id*="Lightbox"] img {
    max-width: 92px;
    height: auto;
    border-radius: 4px;
  }

  /* Sanierung Comparison Table → Stack auf mobile */
  #text_home table {
    display: block;
    width: 100% !important;
    overflow: visible;
  }
  #text_home table tbody { display: block; }
  #text_home table tr {
    display: block;
    margin-bottom: 16px;
  }
  #text_home table td {
    display: block;
    width: 100% !important;
    padding: 8px 0 !important;
  }
  #text_home td[align="center"] {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0 8px !important;
  }
  #text_home td a img {
    max-width: 240px !important;
    margin: 0 auto;
  }

  /* Slideshow responsive */
  #slideshow {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 65 / 45;
  }
  #slideshow img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 65 / 45;
    object-fit: cover;
  }

  /* Headlines kleiner auf mobile */
  .intro_weiss > div > .Stil10:first-child,
  .intro_weiss > div > .Stil12:first-child,
  .intro_weiss > div > span:first-child,
  .content-area .page-title {
    font-size: 19px;
    margin-bottom: 14px;
  }

  /* Thumbnail-Reihe auf mobile */
  .content-area .thumbs-row {
    padding: 4px 22px 28px;
    gap: 10px;
  }
  .content-area .thumbs-row img {
    height: 76px !important;
  }
}

@media (max-width: 600px) {
  body { padding-top: 56px; }
  #text_home, #text1a, #referenzen {
    padding: 18px 18px 32px;
    font-size: 15px;
  }
  [id^="Layer"] { padding: 4px 18px; }
  .site-footer-inner {
    padding: 24px 18px 20px;
  }
  .site-footer-mark {
    font-size: 24px;
  }
  .mobile-drawer > a {
    padding: 15px 22px;
    font-size: 15px;
  }
  .mobile-drawer > a:first-child {
    padding: 20px 22px;
    font-size: 17px;
  }
  .mobile-drawer-direct {
    margin: 22px 22px 0;
  }
  .mobile-drawer-footer {
    padding: 24px 22px 30px;
  }
  .site-footer-meta {
    padding: 14px 18px 18px;
  }
}

/* ============================================================
   PRINT — Saubere Druckansicht (Bonus, kostet nix)
   ============================================================ */
/* ============================================================
   EINHEITLICHE INHALTSSEITEN (Kontakt / Impressum / Datenschutz)
   Gleiche Designsprache wie die übrigen Seiten.
   ============================================================ */
.content-page {
  padding: 32px 40px 44px !important;
  max-width: 720px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text);
}
.content-page .page-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 22px;
  padding-bottom: 6px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--color-primary);
}
.content-page p { margin: 0 0 14px; }
.content-page strong { color: #111; font-weight: 600; }
.content-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.content-page a:hover { color: var(--color-primary-dark); }
.content-page h2.sec {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 28px 0 10px;
}
.content-page .lead { font-size: 16px; margin-bottom: 22px; }
.content-page .kontakt-liste {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 8px 18px;
  margin: 0 0 18px;
}
.content-page .kontakt-liste dt { font-weight: 600; color: var(--color-text-soft); }
.content-page .kontakt-liste dd { margin: 0; }
.content-page .credits { font-size: 12px; color: var(--color-text-soft); line-height: 1.75; }

.contact-page {
  max-width: 760px;
  box-sizing: border-box;
}
.contact-page > .lead,
.contact-page > .kontakt-liste {
  display: none;
}
.contact-hero {
  display: block;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.contact-eyebrow {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-intro {
  margin: 0;
  max-width: 660px;
  color: #3d3d3f;
  font-size: 15px;
  line-height: 1.62;
}
.contact-hero-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none !important;
  white-space: nowrap;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
  align-items: start;
}
.contact-direct {
  display: grid;
  gap: 9px;
}
.contact-card {
  display: block;
  min-height: 60px;
  padding: 12px 13px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fafafa;
  color: var(--color-text) !important;
  text-decoration: none !important;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}
.contact-card:hover,
.contact-card:focus {
  border-color: rgba(209, 32, 39, 0.42);
  background: #fff;
  transform: translateY(-1px);
}
.contact-card-static:hover {
  transform: none;
}
.contact-card-label {
  display: block;
  margin: 0 0 4px;
  color: var(--color-text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-card-value {
  display: block;
  color: #2d2d30;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.contact-form-row {
  display: grid;
  gap: 6px;
}
.contact-form-wide,
.contact-privacy,
.contact-submit,
.contact-form-note,
.contact-form-status {
  grid-column: 1 / -1;
}
.contact-form label,
.contact-privacy {
  color: var(--color-text-soft);
  font-size: 12px;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8d8dc;
  border-radius: 8px;
  background: #f7f7f8;
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  min-height: 42px;
  padding: 9px 10px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.contact-form textarea {
  min-height: 88px;
  resize: vertical;
}
.contact-form select {
  font-size: 13.5px;
  padding-right: 30px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(209, 32, 39, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(209, 32, 39, 0.11);
}
.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 2px;
  line-height: 1.4;
}
.contact-privacy input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.contact-submit {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.contact-submit:hover,
.contact-submit:focus {
  filter: brightness(1.04);
}
.contact-form-note,
.contact-form-status {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 11.5px;
  line-height: 1.45;
}
.contact-form-status.is-error {
  color: var(--color-primary-dark);
  font-weight: 700;
}
.contact-form-status.is-ok {
  color: #1f7a3d;
  font-weight: 700;
}
.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* DSGVO: lockerer Zeilenfluss, §-Überschriften kräftig */
.content-page.dsgvo { line-height: 1.7; }
.content-page.dsgvo strong { color: #111; }

@media (max-width: 1020px) {
  .content-page { padding: 24px 22px 40px !important; font-size: 16px; max-width: 100%; }
  .content-page .kontakt-liste { grid-template-columns: 92px 1fr; }
  .contact-hero,
  .contact-layout,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-hero {
    padding: 0;
  }
  .contact-hero-phone {
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form {
    padding: 16px;
  }
}

/* ============================================================
   STARTSEITE — Treppe als ECHTER Hintergrund (liegt unter allem Text).
   Bild-Layer + darüber eine Weiß-Blende (alles im background-stack,
   damit nichts den Text überdeckt). Text bleibt voll lesbar.
   ============================================================ */
.content-area.home {
  position: relative;
  min-height: 600px;
  background-image:
    linear-gradient(to right, #ffffff 0%, #ffffff 30%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.4) 100%),
    url(fotos/2014/treppe_neu.png);
  background-repeat: no-repeat, no-repeat;
  background-position: left center, right bottom;
  background-size: 100% 100%, auto 100%;
}
.content-area.home #text_home {
  max-width: 540px;
  padding-bottom: 48px;
}

@media (max-width: 1020px) {
  .content-area.home {
    min-height: 0;
    background-image:
      linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.8) 44%, rgba(255, 255, 255, 0.55) 100%),
      url(fotos/2014/treppe_neu.png);
    background-position: center top, center bottom;
    background-size: 100% 100%, 150% auto;
  }
  .content-area.home #text_home {
    max-width: 100%;
    padding-bottom: 40px;
  }
}

/* ============================================================
   SANIERUNG — Karten-Grid (gleichmäßige Reihe, ersetzt alte Tabelle)
   ============================================================ */
.san-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
}
.san-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.san-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.san-card-img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}
.san-card-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.san-card:hover .san-card-img img {
  transform: none;
}
.san-card-label {
  display: block;
  padding: 11px 8px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-primary);
  line-height: 1.25;
}
@media (max-width: 1020px) {
  .san-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .san-card-label { font-size: 13px; }
}

@media print {
  body { background: #fff; padding: 0; }
  .mobile-nav-toggle, .mobile-drawer, .nav-item,
  #cookie-banner, #verlauf_oben, #schatten_oben { display: none !important; }
  #gesamt { width: 100% !important; box-shadow: none !important; }
}
