/* Schriften liegen auf dem eigenen Server (assets/fonts).
   Vorher kamen sie von fonts.googleapis.com — damit ging die IP-Adresse jedes
   Besuchers an Google, ohne dass die Datenschutzerklaerung das auswies. Zudem
   musste die Inhaltsrichtlinie dafuer eine fremde Quelle zulassen.
   Nachladen: siehe scripts/schriften-holen.md */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-400-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-500-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-600-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-700-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-800-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;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-900-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-900-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;
}


:root {
  --bg: #ffffff;
  --carbon: #1c1c1c;
  --carbon-soft: #262626;
  --text: #1f1f1f;
  --text-muted: #666666;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);
  --accent: #e2382c;
  --accent-dark: #c22e23;
  --accent-soft: rgba(226, 56, 44, 0.08);
  --accent-border: rgba(226, 56, 44, 0.3);
  --border: #e9e9e9;
  --border-dark: rgba(255, 255, 255, 0.12);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Lange deutsche Komposita („Datenschutzerklärung", „Wärmedämmverbundsysteme")
   sind auf schmalen Geräten breiter als die Spalte und schieben sonst die ganze
   Seite seitlich hinaus. */
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Hintergrund und Weichzeichner liegen auf einer eigenen Ebene, NICHT auf
   .site-header selbst: ein backdrop-filter macht das Element zum Bezugsrahmen
   für position:fixed-Kinder, dann rechnet das mobile Menü sein top/bottom gegen
   die 76px hohe Kopfzeile statt gegen den Bildschirm und liegt als unsichtbarer
   Streifen über dem Menüknopf. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  /* etwas breiter als der Inhalt: sonst passen die zehn Menuepunkte nicht in eine Zeile */
  max-width: 1400px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}

.logo-text {
  min-width: 0;
}

.logo-text .name,
.logo-text .tagline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.logo-text .name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.logo-text .tagline {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 8px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* mind. 44px Antippfläche */
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  /* Lange Beschriftungen („www.caparol.de — Unser Energieberater") müssen
     umbrechen dürfen, sonst schieben sie die Seite seitlich hinaus. */
  max-width: 100%;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--carbon);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.7rem;
}

.btn-phone {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.badge-on-dark {
  background: rgba(226, 56, 44, 0.15);
}

/* Page hero (image banner) */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 780px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--carbon);
  color: #fff;
}

.section-alt {
  background: #fafafa;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Stat blocks */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-block .stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block .stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.section-dark .stat-block .stat-label {
  color: var(--text-on-dark-muted);
}

/* About / split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.split p.lead {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  aspect-ratio: 4/3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.project-card .project-label {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* Project detail sections (Projekte page) */
.project-block {
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.project-block:first-child {
  border-top: none;
}

.project-block h3 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.shot {
  position: relative;
}

.shot img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.shot .cap {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Timeline (Geschichte) */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
  border-left: 3px solid var(--accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -49px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 50%;
}

.timeline-item .year {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 96px 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.section-dark .cta-band p {
  color: var(--text-on-dark-muted);
}

/* Footer */
.site-footer {
  background: var(--carbon);
  color: #fff;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.footer-brand .name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-brand .tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--carbon);
  color: #fff;
  padding: 24px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Die Umriss-Knoepfe sind fuer helle Flaechen gedacht (Text #1f1f1f auf
   hellem Grund). Im Banner liegen sie auf --carbon (#1c1c1c) und waren
   dadurch praktisch unsichtbar -- hier also helle Schrift und ein heller
   Rahmen. */
.cookie-banner .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-banner .btn-outline:hover,
.cookie-banner .btn-outline:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.cookie-banner.hidden {
  display: none;
}

/* Legal pages */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 0;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legal-content .meta {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 0.9rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-muted);
  margin: 0 0 12px 0;
  padding-left: 0;
}

.legal-content ul li {
  margin-bottom: 6px;
}

/* Contact page */
.contact-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}

.contact-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-info .info-block {
  margin-bottom: 24px;
}

.contact-info .info-block h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info .info-block p,
.contact-info .info-block a {
  color: var(--text);
  font-size: 0.95rem;
}

.form-card {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 40px;
}

.form-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-checkbox input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--accent);
}

.field-checkbox label {
  cursor: pointer;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

.form-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  padding: 16px;
  margin-bottom: 20px;
  display: none;
  font-size: 0.9rem;
}

.form-success.visible {
  display: block;
}

/* Jubiläumsteaser auf der Startseite (auch von der Galerie genutzt) */
.jubi-years {
  display: inline-block;
  border: 2px solid var(--accent);
  background: rgba(226, 56, 44, 0.28);
  color: #fff;
  padding: 7px 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.jubi-teaser {
  position: relative;
  overflow: hidden;
}

.jubi-teaser img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.jubi-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.jubi-teaser .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-top: 96px;
  padding-bottom: 96px;
}

.jubi-teaser h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.jubi-teaser p {
  max-width: 620px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 1400px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--carbon);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    /* Geschlossen darf das Menü keine Berührungen abfangen — sonst liegt es
       unsichtbar über dem Menüknopf. */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    font-size: 0.85rem;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .grid,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 56px 0;
    gap: 40px;
  }

  .hero {
    min-height: 520px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 32px;
  }
}

@media (max-width: 560px) {
  .logo img {
    height: 34px;
    width: 34px;
  }

  /* Firmenname lieber zweizeilig als mit Auslassungspunkten abgeschnitten */
  .logo-text .name {
    font-size: 0.75rem;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
  }

  .logo-text .tagline {
    display: none;
  }

  .site-header .container {
    gap: 10px;
  }

  .nav-actions {
    gap: 4px;
  }

  .btn-phone {
    padding: 9px 11px;
    font-size: 0.68rem;
  }

  /* Ueberschriften kleiner, damit lange Woerter in eine Zeile passen */
  .page-hero h1 {
    font-size: 1.7rem;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-header h2,
  .cta-band h2 {
    font-size: 1.6rem;
  }

  .page-hero {
    min-height: 280px;
  }

  .page-hero .container {
    padding-bottom: 36px;
  }
}

/* ==========================================================================
   Bedienbarkeit auf Telefonen: Antippflächen und Textgrößen
   ========================================================================== */
@media (max-width: 860px) {
  /* Fußzeilen-Links waren nur 24px hoch und dicht gestapelt */
  .footer-col ul {
    gap: 2px;
  }

  .footer-col ul li a {
    display: inline-block;
    padding: 9px 0;
  }

  .footer-col ul li {
    line-height: 1.5;
  }

  .btn-phone {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .footer-brand .tagline {
    font-size: 0.75rem;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }
}
