/* ==========================================================================
   Hausverwaltung Blum — Design System: Premium Classic (Navy + Gold)
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  --navy:            #003050;
  --navy-dark:       #0a1628;
  --gold:            #C9A96E;
  --gold-hover:      #d4b87a;
  --white:           #ffffff;
  --light-bg:        #f8fafc;
  --text-dark:       #0f172a;
  --text-muted:      #64748b;
  --border-light:    rgba(255, 255, 255, 0.1);
  --border-dark:     #e2e8f0;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --section-padding: clamp(3rem, 2rem + 4vw, 5rem);
  --container-max:   1200px;
  --card-padding:    clamp(1.25rem, 0.8rem + 2vw, 2rem);
  --gap:             clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --transition:      all 0.3s ease;

  --fs-h1:   clamp(1.75rem, 1rem + 3vw, 3rem);
  --fs-h2:   clamp(1.5rem, 0.8rem + 2.5vw, 2.25rem);
  --fs-h3:   clamp(1.125rem, 0.9rem + 1vw, 1.375rem);
  --fs-body: clamp(0.938rem, 0.875rem + 0.25vw, 1rem);
}

/* ==========================================================================
   2. Reset / Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-dark);
}

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

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 1.2;
  font-weight: 400;
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 400;
}

h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  margin-bottom: 16px;
}

.overline {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

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

.section-dark {
  background: var(--navy);
  color: white;
  padding: var(--section-padding) 0;
}

.section-light {
  background: var(--white);
  color: var(--text-dark);
  padding: var(--section-padding) 0;
}

.section-gray {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: var(--section-padding) 0;
}

.section-gradient {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   5. Header (sticky)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.3s ease;
  will-change: transform;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-mark {
  height: 40px !important;
  width: auto !important;
  flex-shrink: 0;
  display: block !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: transparent !important;
}

.footer-brand .logo-mark {
  height: 36px !important;
  object-fit: contain;
}
.footer-brand {
  margin-bottom: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.logo-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: white;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.nav-phone:hover {
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
  display: block;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-overline {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: white;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-secondary:hover {
  border-color: white;
}

.btn-secondary-dark {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-secondary-dark:hover {
  background: var(--navy);
  color: white;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

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

.card {
  background: white;
  border-radius: 8px;
  padding: var(--card-padding);
  border: 1px solid var(--border-dark);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
  color: white;
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.6);
}

.card-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: 16px;
  display: inline-block;
}

.card-link:hover {
  text-decoration: underline;
}

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

.feature-card {
  text-align: center;
  padding: 32px 24px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--gold);
}

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

/* ==========================================================================
   9. Split Layout
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

/* ==========================================================================
   10. Testimonials
   ========================================================================== */

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

.testimonial-card {
  padding: 28px;
  border-left: 3px solid var(--gold);
  background: var(--light-bg);
  border-radius: 0 8px 8px 0;
}

.testimonial-quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
}

.testimonial-detail {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 12px;
}

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-dark);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  font-size: 20px;
  transition: var(--transition);
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   12. Forms
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox,
.form-group.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"],
.form-group.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-group.form-checkbox label {
  display: inline;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-success {
  background: #dcfce7;
  color: #166534;
  padding: 16px;
  border-radius: 4px;
  margin-top: 16px;
}

.form-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 16px;
  border-radius: 4px;
  margin-top: 16px;
}

/* ==========================================================================
   13. Contact Split
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding: 32px;
  background: var(--light-bg);
  border-radius: 8px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item-icon {
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-text {
  font-size: 15px;
}

.contact-item-text strong {
  display: block;
  margin-bottom: 2px;
}

.map-container {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ==========================================================================
   14. Page Header (Unterseiten)
   ========================================================================== */

.page-header {
  background: var(--navy);
  color: white;
  padding: 120px 24px 48px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   15. Legal Content (Impressum, Datenschutz)
   ========================================================================== */

.legal-content {
  padding: 48px 0;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--gold);
  text-decoration: underline;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: white;
  padding: 48px 0 32px;
}

/* Footer CTA (integriert) */
.footer-cta {
  text-align: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 48px;
}

.footer-cta h2 {
  color: white;
  margin-bottom: 12px;
  font-size: 32px;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  margin-bottom: 24px;
}

.footer-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Pre-Footer (Link-Grid above minimal footer) */
.pre-footer {
  background: var(--navy-dark);
  color: white;
  padding: 64px 0 48px;
}

.pre-footer .footer-grid {
  margin-bottom: 0;
}

/* Minimal Footer (bottom bar) */
.site-footer-minimal {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.5);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-minimal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-minimal-inner .copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-legal {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: white;
}

/* ── Mobile Nav Backdrop ── */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .footer-minimal-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   17. CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  font-size: 18px;
}

/* ==========================================================================
   17b. Home-Style Grids (Service Cards, Trust Grid, Stadtteil Pills)
   ========================================================================== */

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.home-service-card {
  background: white;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 36px 28px 28px;
  text-align: center;
  transition: var(--transition);
}
.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.home-service-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}
.home-service-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.home-trust-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: var(--transition);
}
.home-trust-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.home-trust-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.home-trust-item p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin-bottom: 0;
}

.section-light .home-trust-item h3 {
  color: var(--navy);
}
.section-light .home-trust-item p,
.section-gray .home-trust-item p {
  color: var(--text-muted);
}

.home-stadtteil-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0;
}
.home-stadtteil-pill {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.section-light .home-stadtteil-pill,
.section-gray .home-stadtteil-pill {
  color: var(--navy);
  border-color: var(--border-dark);
}
.home-stadtteil-pill:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.home-stadtteil-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.home-stadtteil-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-rechner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.home-rechner h2 {
  margin-bottom: 12px;
}
.home-rechner p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .home-service-grid,
  .home-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .home-service-card {
    padding: 16px 8px 12px !important;
    text-align: center;
  }
  .home-service-card p {
    display: none;
  }
  .home-service-card .card-link {
    font-size: 11px;
    margin-top: 2px;
  }
  .home-service-card h3 {
    font-size: 13px !important;
    margin-bottom: 2px;
    line-height: 1.3;
  }
  .home-service-card .icon-circle {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 6px;
  }
  .home-service-card .icon-circle svg {
    width: 18px;
    height: 18px;
  }
  .home-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .home-trust-item {
    padding: 16px 12px !important;
  }
  .home-trust-item h3 {
    font-size: 14px !important;
    margin-bottom: 2px;
  }
  .home-trust-item p {
    font-size: 12px !important;
  }
  .home-trust-icon {
    font-size: 24px !important;
    margin-bottom: 6px;
  }

  /* Portal Section mobile: zentrierter Header, iPhone kompakt */
  .home-portal-text {
    text-align: center;
  }
  .home-portal-text .overline,
  .home-portal-text h2 {
    text-align: center;
  }
  .home-portal-features {
    text-align: left;
  }
  .home-portal-text .btn {
    display: inline-block;
  }
  .home-portal-image {
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .home-portal-image img {
    max-width: 200px !important;
    max-height: 50vh;
    object-fit: contain;
    object-position: top;
  }

  /* Footer 2er Grid statt 1-Spalte */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 16px !important;
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
  .home-stadtteil-stats {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .home-service-card {
    padding: 28px 20px 22px !important;
  }
  .home-trust-item {
    padding: 24px 16px !important;
  }
}

/* ==========================================================================
   18. Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.text-gold {
  color: var(--gold);
}

.mb-0 {
  margin-bottom: 0;
}

/* ==========================================================================
   18b. Icon System (Lucide SVG)
   ========================================================================== */

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: var(--transition);
}

.card:hover .icon-circle,
.feature-card:hover .icon-circle {
  background: var(--gold);
  border-color: var(--gold);
}

.card:hover .icon-circle svg,
.feature-card:hover .icon-circle svg {
  stroke: var(--navy);
}

/* Dark section variant */
.section-dark .icon-circle {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.12);
}

.section-dark .card-dark:hover .icon-circle {
  background: var(--gold);
  border-color: var(--gold);
}

.section-dark .card-dark:hover .icon-circle svg {
  stroke: var(--navy);
}

/* Icon circle sizes */
.icon-circle-sm {
  width: 44px;
  height: 44px;
}

.icon-circle-sm svg {
  width: 20px;
  height: 20px;
}

.icon-circle-lg {
  width: 72px;
  height: 72px;
}

.icon-circle-lg svg {
  width: 32px;
  height: 32px;
}

/* ==========================================================================
   18c. Stat Counters
   ========================================================================== */

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

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   18d. Section Heading Line
   ========================================================================== */

.heading-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

.heading-line-left::after {
  margin-left: 0;
}

/* ==========================================================================
   18e. Testimonial Visual Upgrade
   ========================================================================== */

.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.12;
  position: absolute;
  top: -8px;
  left: 16px;
  line-height: 1;
  pointer-events: none;
}

/* ==========================================================================
   18f. Card Gold Top Border
   ========================================================================== */

.card-accent {
  border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px;
}

.card-accent:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   18g. Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered cards */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   18h. Navigation Enhancements
   ========================================================================== */

.nav-menu a.nav-active {
  color: white;
  position: relative;
}

.nav-menu a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  background: rgba(0, 48, 80, 0.98);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   18i. Decorative Elements
   ========================================================================== */

.section-dark {
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.04);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.section-dark::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.03);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

/* Inline feature list with icons */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   18j. Tables — Responsive
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

@media (max-width: 768px) {
  /* Horizontales Scrollen fuer Tabellen auf Mobile */
  .table-responsive,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th, td {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}

.mb-0 {
  margin-bottom: 0;
}

/* ==========================================================================
   19. Responsive — Tablet (@media max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .card-grid,
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   20. Responsive — Mobile (@media max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  /* --- Header & Nav --- */
  .header-inner {
    padding: 12px 16px;
  }

  .logo-mark {
    height: 32px !important;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  nav:has(.nav-menu) {
    position: static;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 16px 8px;
    gap: 4px;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 4px;
  }

  .nav-menu a:hover,
  .nav-menu a:active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
  }

  .nav-cta {
    display: none;
  }
  /* Verwaltungsanfrage als Button im Mobile-Menü (via JS eingefügt) */
  .nav-menu .mobile-cta-item {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    list-style: none;
  }
  .nav-menu .mobile-cta-item a {
    display: block;
    background: var(--gold);
    color: var(--navy) !important;
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    padding: 14px 16px !important;
  }
  .nav-menu .mobile-cta-item a:hover {
    background: #d4b87a !important;
  }

  /* --- Hero --- */
  .hero {
    min-height: auto;
    padding: 80px 20px 48px;
  }

  .hero h1 {
    line-height: 1.25;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-overline {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-cta .btn {
    text-align: center;
    width: 100%;
  }

  .trust-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 11px;
    margin-top: 32px;
  }

  /* --- Typography --- */
  .overline {
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* --- Sections --- */
  .section-dark,
  .section-light,
  .section-gray {
    padding: var(--section-padding) 0;
  }

  .container {
    padding: 0 16px;
  }

  /* --- Cards & Grids: 2er statt 1er auf Mobile --- */
  .card-grid,
  .feature-grid,
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card {
    padding: var(--card-padding);
  }

  .feature-card {
    padding: 18px 14px;
    text-align: center;
  }
  .feature-card p,
  .card p {
    font-size: 13px;
    line-height: 1.4;
  }
  .feature-card h3,
  .card h3 {
    font-size: 14px;
  }

  /* --- Split Layout --- */
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-reverse {
    direction: ltr;
  }

  /* --- Testimonials --- */
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  /* --- FAQ --- */
  .faq-question {
    font-size: 15px;
    padding: 16px 0;
  }

  .faq-answer-inner {
    font-size: 14px;
  }

  /* --- Forms --- */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px; /* prevents zoom on iOS */
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-info {
    padding: 24px 16px;
  }

  /* --- Page Header (Unterseiten) --- */
  .page-header {
    padding: 80px 16px 32px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  /* --- CTA Section --- */
  .cta-section {
    padding: 48px 16px;
  }

  .cta-section p {
    font-size: 15px;
  }

  /* --- Footer --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand .logo-mark {
    height: 24px !important;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* --- Buttons --- */
  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

  /* --- Legal --- */
  .legal-content {
    padding: 32px 0;
  }

  .legal-content h2 {
    font-size: 20px;
  }

  /* --- Touch targets --- */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }

  /* --- iOS Safe Area --- */
  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  /* --- Utilities --- */
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  /* --- Prevent horizontal overflow --- */
  body {
    overflow-x: hidden;
  }

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

/* ==========================================================================
   21. Responsive — Small Mobile (@media max-width: 400px)
   ========================================================================== */

@media (max-width: 400px) {

  .header-inner {
    padding: 10px 12px;
  }

  .logo-mark {
    height: 28px !important;
  }

  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .trust-bar {
    font-size: 10px;
    gap: 6px 14px;
  }
}

/* ==========================================================================
   Active Nav Link (a11y)
   ========================================================================== */

/* Mobile-CTA-Item nur auf Mobile sichtbar */
.mobile-cta-item {
  display: none;
}

.nav-menu a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
  position: relative;
}
.nav-menu a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
@media (max-width: 768px) {
  .nav-menu a[aria-current="page"]::after {
    display: none;
  }
  .nav-menu a[aria-current="page"] {
    background: rgba(201, 169, 110, 0.1);
    border-radius: 4px;
  }
}

/* ==========================================================================
   Skip-to-content Link (a11y)
   ========================================================================== */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  border-radius: 0 0 6px 0;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ==========================================================================
   22. Mobile/Tablet — Overrides für inline Grid-Styles & Home-Templates
   ========================================================================== */

/* Tablet (Portrait & kleiner) */
@media (max-width: 900px) {
  /* Hero padding verkleinern */
  .hero {
    padding: 64px 20px 40px !important;
  }

  /* Verhindere dass inline max-width: 960/880 probleme macht */
  [class*="home-"] {
    max-width: 100% !important;
  }

  /* Stat-Grids: bigger numbers auf Tablet bleiben gut lesbar */
  .home-trust-item h3[style*="font-size: 40px"],
  .home-trust-item h3[style*="font-size: 36px"] {
    font-size: 32px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero weiter anpassen */
  .hero h1 {
    font-size: 28px !important;
    line-height: 1.2;
  }
  .hero h1 br {
    display: block;
  }
  .hero h1 br::after {
    content: " ";
  }
  .hero-sub {
    font-size: 15px !important;
    padding: 0 8px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta .btn {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* Trust-Bar auf Mobile */
  .trust-bar {
    gap: 8px 16px !important;
    margin-top: 24px !important;
    padding-top: 24px !important;
  }
  .trust-bar .trust-item {
    font-size: 11px;
  }

  /* Grosse Serif-Numbers kleiner */
  .home-trust-item h3[style*="font-size: 40px"],
  .home-trust-item h3[style*="font-size: 36px"] {
    font-size: 28px !important;
  }

  /* Stadtteil Pills smaller padding */
  .home-stadtteil-pill {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Service Cards inner padding reduziert */
  .home-service-card h3 {
    font-size: 17px;
  }
  .home-service-card p {
    font-size: 13px;
  }

  /* Icon Circle kleiner */
  .icon-circle {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 16px;
  }
  .icon-circle svg {
    width: 20px;
    height: 20px;
  }

  /* Sections padding kleiner */
  .section-light,
  .section-dark,
  .section-gray,
  .section-gradient {
    padding: 48px 0 !important;
  }
  section:not(.hero) .container > h2 {
    margin-bottom: 24px !important;
  }

  /* Blockquote auf Mobile */
  blockquote {
    padding: 24px 20px !important;
    font-size: 16px !important;
  }

  /* FAQ auf Mobile besser lesbar */
  .faq-question {
    padding: 14px 0 !important;
    font-size: 14px !important;
    gap: 12px;
  }
  .faq-answer p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Hotline-Box (Notfall) auf Mobile */
  .hotline-box {
    padding: 24px 16px !important;
  }
  .hotline-number {
    font-size: 26px !important;
    word-break: break-word;
  }

  /* Emergency-Hero Button-Row */
  .emergency-hero .hero-cta {
    flex-direction: column;
  }
}

/* Kleine Smartphones (iPhone SE etc) */
@media (max-width: 420px) {
  .hero-sub {
    font-size: 14px !important;
  }
  .home-service-card {
    padding: 24px 18px 20px !important;
  }
  .home-trust-item {
    padding: 22px 14px !important;
  }
  .home-trust-item h3 {
    font-size: 16px !important;
  }
  .home-trust-item h3[style*="font-size"] {
    font-size: 26px !important;
  }
  .home-stadtteil-pills {
    gap: 8px;
  }
  .home-stadtteil-pill {
    padding: 8px 14px;
    font-size: 12px;
  }
  /* Footer grid bleibt 2er auf extra klein */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
  }
}

