/* Rainer Müller Gebäudereinigung GmbH - Styles v=9 */

:root {
  --blue: #00A0DC;
  --blue-dark: #0084B8;
  --blue-darker: #00A0DC;
  --blue-deep: #0084B8;
  --accent: #00A0DC;
  --text: #1a2332;
  --text-muted: #54627a;
  --text-light: rgba(255,255,255,0.95);
  --border: #e3e8ef;
  --border-dark: #d4dae3;
  --bg: #ffffff;
  --bg-soft: #f0f9fd;
  --bg-dark: #00A0DC;
  --shadow: 0 2px 8px rgba(0,160,220,0.08);
  --shadow-lg: 0 10px 30px rgba(0,160,220,0.15);
  --radius: 8px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-darker); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--blue-darker);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 32px 0 16px; }
h3 { font-size: clamp(18px, 2vw, 22px); margin: 24px 0 12px; }

p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }

/* ======= INFO-TOPBAR ======= */
.info-topbar {
  background: var(--blue-darker);
  color: var(--text-light);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.info-topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.info-checks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.info-checks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.info-checks span::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
}
.info-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.info-contact a {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.info-contact a:hover { color: #fff; text-decoration: none; }
.info-contact .icon {
  opacity: 0.85;
}

/* ======= HEADER ======= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link { flex-shrink: 0; }
.logo-link img { height: 120px; width: auto; }

/* ======= NAVIGATION ======= */
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li {
  position: relative;
  list-style: none;
}
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover {
  background: var(--bg-soft);
  color: var(--blue-darker);
  text-decoration: none;
}
.main-nav > ul > li > a.active {
  background: var(--blue-darker);
  color: #fff;
}

/* CTA-Button in der Nav */
.nav-cta { margin-left: 8px; }
.nav-cta > a {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: all 0.15s !important;
}
.nav-cta > a:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Dropdown-Indikator */
.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 4px;
}

/* Dropdown-Container (modern Card-Look) */
.main-nav ul.dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  padding: 12px;
  z-index: 100;
  list-style: none;
  margin: 8px 0 0 0;
  flex-direction: column;
  gap: 0;
  flex-wrap: nowrap;
}
.main-nav ul.dropdown li { width: 100%; list-style: none; }
.main-nav ul.dropdown a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95em;
  border-radius: 6px;
  color: var(--text);
  transition: all 0.12s;
  line-height: 1.3;
  white-space: nowrap;
}
.main-nav ul.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--blue-darker);
  text-decoration: none;
}
.main-nav ul.dropdown a .subtitle {
  display: block;
  font-weight: 400;
  font-size: 0.82em;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: normal;
}
.has-dropdown:hover > ul.dropdown,
.has-dropdown:focus-within > ul.dropdown {
  display: flex !important;
}
.dropdown-heading {
  font-weight: 700;
  padding: 10px 14px 6px;
  color: var(--blue);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  list-style: none;
}
.dropdown-heading:first-child { border-top: none; margin-top: 0; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text);
  padding: 4px 8px;
}

/* ======= HERO ======= */
.hero {
  position: relative;
  color: #fff;
  padding: 80px 20px 100px;
  background-image:
    linear-gradient(135deg, rgba(0,132,184,0.85) 0%, rgba(0,160,220,0.78) 100%),
    url('/images/hero/hero-glasfassade.svg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero .hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.95);
  max-width: 780px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.hero .hero-claim {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.85);
  margin: 0 auto 36px;
  max-width: 680px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn-hero-primary,
.btn-hero-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-hero-primary {
  background: #fff;
  color: var(--blue-darker);
}
.btn-hero-primary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}
.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-hero-secondary:hover {
  background: #fff;
  color: var(--blue-darker);
  text-decoration: none;
}

/* ======= PAGE-HEADER (Unterseiten: blauer Hero wie Startseite) ======= */
.page-header {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(0,132,184,0.85) 0%, rgba(0,160,220,0.78) 100%),
    url('/images/hero/hero-glasfassade.svg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 20px 48px;
  border-bottom: none;
}
.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  margin-bottom: 0;
}
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.breadcrumb span {
  color: #fff;
  font-weight: 500;
}

/* ======= CONTENT ======= */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.content-main { min-width: 0; }
.content-main h2 { margin-top: 36px; }
.content-main h2:first-child { margin-top: 0; }

/* Lead-Absatz auf Übersichtsseiten */
.content > .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  max-width: 820px;
  margin: 0 0 40px 0;
}

/* Leistungen-Card-Grid */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.leistung-card {
  display: block;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s;
}
.leistung-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.leistung-card h3 {
  margin: 0 0 10px 0;
  color: var(--blue);
}
.leistung-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.leistung-card .card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

/* Sidebar */
.sidebar {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 150px;
}
.sidebar h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-top: 0;
  margin-bottom: 16px;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar li { margin-bottom: 4px; }
.sidebar a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s;
}
.sidebar a:hover,
.sidebar a.active {
  background: var(--blue-darker);
  color: #fff;
  text-decoration: none;
}

/* ======= BUTTONS (allgemein) ======= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blue);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid var(--blue);
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn-light {
  background: #fff;
  color: var(--blue-darker) !important;
  border: 2px solid #fff;
}
.btn-light:hover {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
}

/* ======= CTA-BANNER (mitten/unten auf Seiten) ======= */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 56px 20px;
  margin-top: 48px;
}
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  margin-bottom: 24px;
}

/* ======= STARTSEITE: SECTIONS ======= */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 12px; }
.section-title p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--blue-darker);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 19px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.service-card a {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue-darker);
}
.service-card a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* USP-Bar */
.usps {
  background: var(--bg-soft);
  padding: 48px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.usps-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.usp { text-align: center; }
.usp-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-darker);
  margin-bottom: 4px;
  display: block;
}
.usp-label {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======= FOOTER ======= */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.85);
  padding: 48px 20px 20px;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--blue);
  text-decoration: none;
}
.footer-col p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ======= FORMULARE ======= */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-darker);
  box-shadow: 0 0 0 3px rgba(0,160,220,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .honeypot { display: none; }

/* Contact-Wrap */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
.contact-info h3 { margin-top: 0; }

/* ======= DIVERSES ======= */
strong { color: var(--blue-darker); font-weight: 600; }
blockquote {
  border-left: 4px solid var(--blue);
  padding: 12px 20px;
  background: var(--bg-soft);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .info-topbar-inner { justify-content: center; text-align: center; gap: 10px; }
  .info-checks { display: none; }
  .info-contact { gap: 14px; }

  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s;
  }
  .main-nav.open { max-height: 85vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; padding: 12px; gap: 2px; align-items: stretch; }
  .main-nav > ul > li > a { padding: 12px 16px; border-radius: 0; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta > a { text-align: center; }

  /* Mobile-Dropdown als Accordion */
  .main-nav ul.dropdown {
    display: none !important;
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 8px 16px;
    min-width: 0;
    background: var(--bg-soft);
    border-radius: 0;
    margin: 2px 0 6px 0;
  }
  .has-dropdown.mobile-open > ul.dropdown { display: flex !important; }
  .has-dropdown:hover > ul.dropdown { display: none !important; }
  .has-dropdown.mobile-open:hover > ul.dropdown { display: flex !important; }
  .main-nav ul.dropdown a { padding: 8px 12px; font-size: 0.95em; }

  .hero { padding: 56px 20px 72px; }

  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .logo-link img { height: 60px; }
  .header-inner { padding: 10px 16px; }
}

/* Print */
@media print {
  .site-header, .info-topbar, .sidebar, .cta-banner, .site-footer, .hero-buttons { display: none; }
  .hero { color: #000; background: none; padding: 0; }
  .hero h1 { color: #000; }
}


/* === BRANCHEN-Grid (v15) === */
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 16px 0 32px;
}
.branche-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
a.branche-card:hover {
  border-color: var(--brand, #2196d4);
  box-shadow: 0 4px 14px rgba(33,150,212,0.12);
  transform: translateY(-2px);
}
.branche-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.branche-card span {
  display: block;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.4;
}
.branche-card-soon {
  background: #f7f8fa;
  cursor: default;
}
.branche-card-soon em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.78rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* === BRANCHEN-Dropdown – mit Scroll bei vielen Items === */
.main-nav li.has-dropdown:nth-child(2) > .dropdown,
.main-nav li.has-dropdown:has(> a[href="/branchen"]) > .dropdown {
  max-height: 70vh;
  overflow-y: auto;
  min-width: 280px;
}


/* === Einzugsgebiet-Grid (v17) === */
.einzugsgebiet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin: 24px 0 36px;
}
.einzugsgebiet-spalte h3 {
  border-bottom: 2px solid var(--brand, #2196d4);
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: var(--brand, #2196d4);
  font-size: 1.05rem;
}
.einzugsgebiet-spalte ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.einzugsgebiet-spalte li {
  padding: 4px 0;
}
.einzugsgebiet-spalte a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.einzugsgebiet-spalte a:hover {
  color: var(--brand, #2196d4);
  text-decoration: underline;
}


/* === BRANCHEN-Sektion auf Startseite (v19) === */
.branchen-section {
  background: #f5f6f8;
  padding: 64px 0;
  margin: 32px 0;
}
.branchen-section .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.branchen-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.branchen-section-header .overline {
  color: var(--brand, #2196d4);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.branchen-section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.branchen-section-header .lead {
  color: #6b7280;
  font-size: 17px;
}
.branchen-startseite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.branche-startseite-card {
  background: white;
  border: 1.5px solid #e8eaed;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
}
.branche-startseite-card:hover {
  border-color: var(--brand, #2196d4);
  box-shadow: 0 8px 24px rgba(33, 150, 212, 0.12);
  transform: translateY(-2px);
}
.branche-startseite-card .branche-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.branche-startseite-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.branche-startseite-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}
.branche-startseite-card .card-link {
  color: var(--brand, #2196d4);
  font-size: 14px;
  font-weight: 600;
}
.branchen-section-footer {
  text-align: center;
  margin-top: 32px;
}
