/* Local font fallbacks (no external font requests) */
@font-face {
  font-family: 'DM Sans Local';
  src: local('DM Sans'), local('DMSans-Regular');
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: 'Rajdhani Local';
  src: local('Rajdhani'), local('Rajdhani-SemiBold');
  font-style: normal;
  font-weight: 500 700;
}

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

:root {
  --red:        #9a1212;
  --red-dark:   #7d0e0e;
  --red-dim:    rgba(154,18,18,0.08);
  --red-border: rgba(154,18,18,0.18);
  --black:      #111111;
  --black-text: #1f2937;
  --muted:      #6b7280;
  --muted-light:#9ca3af;
  --border:     #e5e7eb;
  --bg:         #ffffff;
  --bg-soft:    #f8fafc;
  --body-font:  'DM Sans Local', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --head-font:  'Rajdhani Local', 'Trebuchet MS', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--black-text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}

.topbar {
  background: #111827;
  font-size: 0.8rem;
  padding: 10px 0;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.topbar span {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.9);
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-icon { display: none; }

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
nav {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 124px; height: 42px; flex-shrink: 0;
  object-fit: contain;
}
.logo-text { display: none; }
.logo-name {
  font-family: var(--head-font);
  font-size: 1.22rem; font-weight: 700;
  color: var(--black); letter-spacing: 0.2px;
}
.logo-sub {
  font-size: 0.72rem; font-weight: 400;
  color: var(--muted); letter-spacing: 0.3px;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--black-text);
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 22px; border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: 0.3s;
}

.hero {
  background:
    linear-gradient(100deg, rgba(17, 24, 39, 0.72) 0%, rgba(17, 24, 39, 0.48) 42%, rgba(17, 24, 39, 0.28) 100%),
    url('../images/services/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; overflow: hidden;
  padding: 88px 32px 56px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero::after {
  display: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-content {
  max-width: 640px;
  padding: 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}
.hero-label {
  font-size: 0.8rem; font-weight: 600;
  color: #e5e7eb; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hero-content h1 {
  font-family: var(--head-font);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700; color: #ffffff;
  line-height: 1.1; margin-bottom: 6px;
}
.hero-content .hero-motto {
  font-size: 0.95rem; color: #f3f4f6;
  margin-bottom: 28px; max-width: 420px; line-height: 1.7;
}
.hero-content .hero-motto strong { font-weight: 700; color: #ffffff; }

.hero-checks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 32px; margin-bottom: 32px; list-style: none;
}
.hero-checks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 500; color: #ffffff;
}
.check-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--red); color: #fff;
  padding: 11px 22px; border-radius: 4px;
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-hero-secondary {
  background: #555; color: #fff;
  padding: 11px 22px; border-radius: 4px;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.btn-hero-secondary:hover { background: #333; }

.hero-image {
  display: none;
}
.hero-image-placeholder {
  width: 100%; max-width: 500px;
  aspect-ratio: 4/3;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}
.hero-family {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.services-section {
  padding: 88px 32px 32px;
  background: var(--bg);
}
.services-section .section-header {
  text-align: center; margin-bottom: 52px;
}
.section-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.section-title {
  font-family: var(--head-font);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--black);
  margin-bottom: 14px; line-height: 1.15;
}
.section-sub {
  font-size: 0.92rem; color: var(--muted);
  max-width: 560px; margin: 0 auto; line-height: 1.75;
}

.services-band {
  position: relative;
  margin-top: 28px;
}
.services-band-bg {
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: transparent;
}

.services-cards {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; position: relative; z-index: 1;
  padding-bottom: 60px;
}
.service-card {
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14); }
.service-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.service-card:hover .service-card-media img {
  transform: scale(1.04);
}
.service-card-body {
  padding: 22px 18px;
  border-top: 4px solid var(--red);
  min-height: 132px;
}
.service-card-body h3 {
  font-family: var(--head-font);
  font-size: 1.1rem; font-weight: 700;
  color: var(--black); margin-bottom: 6px;
}
.service-card-body p {
  font-size: 0.8rem; color: var(--muted); line-height: 1.55;
}

.ratenkredit-section {
  padding: 96px 32px;
  background: var(--bg);
}
.two-col {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.info-img {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}
.info-img.ratenkredit-img {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.info-img.leasing-img {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}
.info-img::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--red);
}
.section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
}

.info-content .section-label { margin-bottom: 8px; }
.info-content h2 {
  font-family: var(--head-font);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--black);
  margin-bottom: 16px; line-height: 1.15;
}
.info-content p {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.75; margin-bottom: 14px;
}
.info-content p:last-of-type { margin-bottom: 24px; }

.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--black-text);
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0; margin-top: 6px;
}

.btn-red {
  display: inline-block; background: var(--red); color: #fff;
  padding: 12px 28px; border-radius: 4px;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline-red {
  display: inline-block; border: 2px solid var(--red); color: var(--red);
  padding: 11px 28px; border-radius: 4px;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none; margin-left: 12px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline-red:hover { background: var(--red); color: #fff; }

.baufinanzierung-section {
  padding: 96px 32px;
  background: var(--bg-soft);
}

.versicherung-section {
  padding: 96px 32px;
  background: var(--bg);
}
.info-img.versicherung-img {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.leasing-section {
  padding: 96px 32px;
  background: var(--bg-soft);
}

.contact-section {
  padding: 96px 32px;
  background: var(--bg);
}
.contact-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.office-img {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
  position: relative;
  border: 1px solid var(--border);
}
.office-img::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--red);
}

.contact-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 28px;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.contact-info-icon { display: none; }
.contact-info-item h4 {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--red); margin-bottom: 4px;
}
.contact-info-item p {
  font-size: 0.88rem; color: var(--black-text); line-height: 1.6;
}
.contact-info-item a { color: var(--black-text); text-decoration: none; }
.contact-info-item a:hover { color: var(--red); }

.form-section {
  padding: 96px 32px;
  background: var(--bg-soft);
}
.form-box {
  max-width: 780px; margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 52px 48px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.contact-form {
  display: block;
}
.form-box .section-label { margin-bottom: 6px; }
.form-box h2 {
  font-family: var(--head-font);
  font-size: 1.9rem; font-weight: 700;
  color: var(--black); margin-bottom: 32px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.5px; color: var(--muted);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 4px; padding: 11px 14px;
  font-size: 0.9rem; font-family: var(--body-font);
  color: var(--black); outline: none;
  transition: border-color 0.2s; resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0;
}
.form-checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
.form-checkbox label { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.form-checkbox a { color: var(--red); text-decoration: none; }
.btn-submit {
  background: var(--red); color: #fff;
  border: none; padding: 13px 32px; border-radius: 4px;
  font-size: 0.92rem; font-weight: 700;
  font-family: var(--body-font);
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }

.form-feedback {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}
.form-feedback.show { display: block; }
.form-feedback.success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #065f46;
}
.form-feedback.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  padding: 16px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-title {
  font-family: var(--head-font);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.cookie-text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #d1d5db;
}
.cookie-text a { color: #f9fafb; }
.cookie-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #f9fafb;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn.primary {
  background: var(--red);
  border-color: var(--red);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-family: var(--head-font);
  font-size: 1.5rem;
}
.modal-close {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--black-text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
  max-height: calc(90vh - 68px);
}
.modal-body h3 {
  font-family: var(--head-font);
  margin: 14px 0 6px;
}
.modal-body p,
.modal-body li {
  font-size: 0.92rem;
  line-height: 1.7;
}
.modal-body ul {
  margin: 8px 0 8px 20px;
}

footer {
  background: var(--red);
  padding: 20px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: rgba(255,255,255,0.75);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }

.red-divider {
  width: 44px; height: 3px; background: var(--red);
  border-radius: 2px; margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .services-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 82px 20px 42px; min-height: 100svh; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 20px 32px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px; z-index: 199;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .form-row { grid-template-columns: 1fr; }
  .form-box { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .services-cards { grid-template-columns: 1fr; padding: 0 20px 24px; }
  .topbar-inner { gap: 16px; flex-direction: column; align-items: flex-start; }
  section, .ratenkredit-section, .leasing-section,
  .baufinanzierung-section, .versicherung-section,
  .contact-section, .form-section { padding: 64px 20px; }
  .hero { padding: 74px 16px 28px; min-height: 100svh; }
  .hero-content { padding: 20px; }
  .hero-checks { grid-template-columns: 1fr; gap: 8px; }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-head h2 {
    font-size: 1.25rem;
  }
}
