/* Handschuh Immobilien und Sachverständigenbüro Michael Issinger */

:root {
  --color-navy: #1c2d4a;
  --color-navy-light: #2c4266;
  --color-gold: #b08d47;
  --color-gold-light: #d4b878;
  --color-bg: #faf8f5;
  --color-white: #ffffff;
  --color-text: #2b2b2b;
  --color-text-light: #5a5a5a;
  --color-border: #e5e1d8;
  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(28, 45, 74, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-top: 0; }

a { color: var(--color-navy); }

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

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

/* Header */
header.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 48px; width: auto; }
.logo .logo-text {
  font-family: Georgia, serif;
  font-size: 0.8rem;
  color: var(--color-navy);
  line-height: 1.3;
  border-left: 1px solid var(--color-border);
  padding-left: 12px;
  white-space: nowrap;
}
.logo .logo-text span { display: block; color: var(--color-gold); }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.nav-burger span { display: block; height: 2px; background: var(--color-navy); border-radius: 2px; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav.main-nav > ul > li { position: relative; }

nav.main-nav a {
  text-decoration: none;
  color: var(--color-navy);
  font-size: 0.96rem;
  font-weight: 500;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--color-gold); }

nav.main-nav ul.dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 240px;
  border: 1px solid var(--color-border);
}
nav.main-nav .has-dropdown:hover ul.dropdown-menu { display: flex; }
.dropdown-menu li { padding: 0; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--color-bg); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-navy); }
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline-navy:hover { background: var(--color-navy); color: var(--color-white); }

.nav-cta { margin-left: 8px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 90px 0 70px;
}
.hero h1 { color: var(--color-white); max-width: 780px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: #dfe4ee; margin-bottom: 2rem; }
.hero-small {
  padding: 60px 0 50px;
}
.hero-small h1 { font-size: 2rem; }

.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust bar */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.trust-badges img { height: 180px; width: auto; }
.trust-badges img.trust-badge-wide { height: 100px; }
.trust-bar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}
.trust-bar li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-bar li::before {
  content: "✓";
  color: var(--color-gold);
  font-weight: bold;
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--color-white); }
.section-navy { background: var(--color-navy); color: var(--color-white); }
.section-navy h2 { color: var(--color-white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.card h3 { color: var(--color-navy); }

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.region-tile {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.region-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.region-tile h3 { margin-bottom: 4px; }
.region-tile span { color: var(--color-text-light); font-size: 0.88rem; }

/* Person profile */
.person {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}
.person img.person-photo {
  border-radius: var(--radius);
  width: 220px;
  height: 220px;
  object-fit: cover;
}
.person .title {
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.person-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.person-badges img { height: 128px; width: auto; }

/* Process steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 52px;
  border-left: 2px solid var(--color-border);
  margin-left: 18px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
}
.steps h4 { margin-bottom: 4px; color: var(--color-navy); }

/* Forms */
form.lead-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.82rem; color: var(--color-text-light); margin-top: 14px; }

/* CTA banner */
.cta-banner {
  background: var(--color-gold);
  color: var(--color-white);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--color-white); }

/* Footer */
footer.site-footer {
  background: var(--color-navy);
  color: #c9d2e0;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 14px; }
footer.site-footer a { color: #c9d2e0; text-decoration: none; }
footer.site-footer a:hover { color: var(--color-gold-light); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #93a1bb;
}
.footer-bottom a { color: #93a1bb; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--color-text-light); }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 8px 0 32px;
}
.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}
.region-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 6px;
}
.image-credit {
  font-size: 0.72rem;
  color: var(--color-text-light);
  text-align: right;
  margin: 0 0 28px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person img.person-photo { width: 160px; height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  nav.main-nav ul { gap: 18px; }
  nav.main-nav a { font-size: 0.9rem; }
  .nav-cta { padding: 10px 18px; }
  .logo .logo-text { display: none; }
}

@media (max-width: 960px) {
  .nav-burger { display: flex; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 4px 24px 16px;
  }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main-nav > ul > li > a { display: block; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 1rem; }
  nav.main-nav ul.dropdown-menu {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 6px 16px;
    min-width: 0;
  }
  .dropdown-menu a { padding: 8px 0; font-size: 0.92rem; color: var(--color-text-light); }
  nav.main-nav > ul > li > a.nav-cta { margin: 14px 0 0; text-align: center; border-bottom: none; color: var(--color-white); }
}

@media (max-width: 720px) {
  h1 { font-size: 1.9rem; }
  .hero { padding: 56px 0 44px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 220px; }
  .region-hero-img { height: 220px; }
  .trust-badges { gap: 20px; }
  .trust-badges img { height: 56px; }
}

/* Angebote (OpenImmo) */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.listing-image { position: relative; aspect-ratio: 4 / 3; background: var(--color-bg); }
.listing-image img { width: 100%; height: 100%; object-fit: cover; }
.listing-noimage { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--color-text-light); }
.listing-body { padding: 18px 20px 22px; }
.listing-meta { font-size: 0.82rem; color: var(--color-text-light); margin-bottom: 6px; }
.listing-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.listing-facts { font-size: 0.88rem; color: var(--color-text-light); margin-bottom: 10px; }
.listing-price { font-family: Georgia, serif; font-size: 1.25rem; color: var(--color-navy); font-weight: bold; margin: 0; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-gold);
  color: var(--color-white);
}
.badge-verkauft { background: #8a2b2b; }
.badge-reserviert { background: var(--color-navy-light); }
.badge-inline { position: static; display: inline-block; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.detail-main { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.detail-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 24px; }
.detail-thumbs img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; }
.detail-h { margin-top: 32px; font-size: 1.4rem; }
.facts-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.facts-table th, .facts-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  vertical-align: top;
}
.facts-table th { color: var(--color-text-light); font-weight: 600; width: 45%; }
.feature-list { columns: 2; }

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .listing-grid { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
  .feature-list { columns: 1; }
}

.contact-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }


/* ===== Verbesserungen Oktober 2026: Kontrast, Telefon, Bilder, Lesbarkeit ===== */
:root { --color-gold-dark: #8a6a2c; }

/* Kontrast: weiße Schrift nur auf dunklem Gold (5:1 statt 3,1:1) */
.btn-primary { background: var(--color-gold-dark); color: var(--color-white); }
.btn-primary:hover { background: var(--color-navy); }
.cta-banner { background: var(--color-gold-dark); }
.logo .logo-text span, .person .title { color: var(--color-gold-dark); }
.btn-light { background: var(--color-white); color: var(--color-navy); }
.btn-light:hover { background: var(--color-navy); color: var(--color-white); }
.btn svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
a:focus-visible, .btn:focus-visible, .nav-burger:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }

/* Telefon im Kopfbereich */
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 22px; padding: 10px 16px; min-height: 44px;
  border: 2px solid var(--color-navy); border-radius: var(--radius);
  color: var(--color-navy); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; flex: none; }
.header-phone:hover { background: var(--color-navy); color: var(--color-white); }
@media (max-width: 960px) {
  .logo { order: 1; }
  .header-phone { order: 2; margin-left: auto; margin-right: 10px; padding: 9px 12px; }
  .nav-burger { order: 3; width: 44px; height: 44px; }
  .nav-cta { display: block; }
}
@media (max-width: 420px) { .header-phone .num { display: none; } .header-phone::after { content: "Anrufen"; } }

/* Telefon im Hero */
.hero-phone { margin: 22px 0 0; color: #dfe4ee; font-size: 1.05rem; }
.hero-phone a { color: var(--color-white); font-weight: 700; font-size: 1.25rem; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.hero-phone a svg { width: 20px; height: 20px; margin-right: 8px; }
.hero-phone a:hover { color: var(--color-gold-light); }

/* Siegel: einheitliche Höhe, ruhige Reihe */
.trust-badges { gap: 26px 40px; }
.trust-badges img { height: 100px; width: auto; }
.trust-badges img.wide { height: 70px; }
.trust-bar li { font-size: 0.98rem; color: var(--color-text); }
.trust-bar li::before { color: var(--color-gold-dark); }
@media (max-width: 720px) {
  .trust-badges { gap: 18px 22px; }
  .trust-badges img { height: 64px; }
  .trust-badges img.wide { height: 44px; }
  .trust-bar ul { display: grid; grid-template-columns: 1fr; gap: 10px; justify-content: start; max-width: 420px; margin: 0 auto; }
  .trust-bar li { align-items: flex-start; }
}

/* Leistungs-Karten mit Ansprechpartner */
.card-person { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.card-person img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-gold); flex: none; }
.card-person strong { display: block; font-family: Georgia, "Times New Roman", serif; color: var(--color-navy); font-size: 1.15rem; }
.card-person span { font-size: 0.92rem; color: var(--color-text-light); }

/* Fotos direkt unter den Regionen, ohne Leerraum */
.photo-grid-home { margin: 40px 0 0; }

/* Abschluss: Wertermittlung + direkter Kontakt */
.cta-contact .cta-people { display: flex; justify-content: center; margin-bottom: 18px; }
.cta-contact .cta-people img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-white); }
.cta-contact .cta-people img + img { margin-left: -14px; }
.cta-contact p { font-size: 1.08rem; max-width: 620px; margin: 0 auto 26px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-actions .btn { min-height: 48px; display: inline-flex; align-items: center; }

/* Kundenstimmen (Vorlage, aktuell auskommentiert) */
.review { margin: 0; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px; }
.review .stars { color: var(--color-gold-dark); letter-spacing: 2px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.05rem; color: var(--color-navy); }
.review figcaption { font-size: 0.9rem; color: var(--color-text-light); }

/* Footer-Links größer antippbar */
footer.site-footer li a { display: inline-block; padding: 4px 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .region-tile { transition: none; } }
/* Telefonleiste (Desktop) statt Telefon-Button im Menü */
.topbar { background: var(--color-navy); color: #dfe4ee; font-size: 0.92rem; }
.topbar-inner { max-width: var(--max-width); margin: 0 auto; padding: 7px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: var(--color-white); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; font-size: 1rem; }
.topbar a svg { width: 16px; height: 16px; margin-right: 8px; }
.topbar a:hover { color: var(--color-gold-light); }
@media (min-width: 961px) { .header-phone { display: none; } .nav-cta { display: inline-block !important; } }
@media (max-width: 960px) { .topbar { display: none; } }
@media (max-width: 480px) {
  .header-inner { padding: 10px 16px; }
  .logo img { height: 38px; }
  .header-phone { padding: 8px 10px; font-size: 0.95rem; }
}
nav.main-nav a.nav-cta, nav.main-nav a.nav-cta:hover { color: var(--color-white); }
