/* =====================================================
   GLOBAL STYLES – Immobilienverwaltung Corporate Design
===================================================== */

html, body {
  overflow-x: hidden;}

* { margin: 0;
  padding: 0;
  box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background-color: #f7f9fb;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: #1a3e59;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}

button,
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}
/* Farbpalette */
:root {
  --primary: #1a3e59; 
  --primary-light: #423a34;
  --gold: #c9a227;
  --gold-dark: #9e7f1e;
  --light-bg: #f5f6f8;
  --text-dark: #222;
  --shadow: rgba(0, 0, 0, 0.08);
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 8px var(--shadow);
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

.logo {
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

/* =====================================================
   HERO SLIDER
===================================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  margin-top: 70px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(22, 61, 92, 0.55);
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 12px;
}

.overlay h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
}

.overlay p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  background: var(--gold);
  color: #fff;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: 2rem;
  cursor: pointer;
}

/* =====================================================
   ABOUT SECTION
===================================================== */
.about {
  padding: 4rem 5%;
  text-align: center;
  background: #fff;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

/* ------------------------------
   ABOUT TOP SECTION
------------------------------ */

.about-top {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 3rem auto 3.5rem auto;
  padding: 0 1rem;
}

.about-top-left {
  flex: 1 1 500px;
  min-width: 300px;
  text-align: left;
}

.about-top-left h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.about-lead {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-top-right {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
}

.about-top-right img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* MOBILE: Bild unter Text */
@media (max-width: 900px) {
  .about-top {
    flex-direction: column;
    text-align: center;
  }

  .about-top-left {
    text-align: center;
  }

  .about-top-right img {
    max-width: 320px;
  }
}

/* Optional: etwas Abstand zwischen dieser Sektion und den bestehenden Cards */
.about .cards {
  margin-top: 2rem;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  flex: 1 1 260px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px var(--shadow);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* =====================================================
   LEISTUNGEN – Hauptteil
===================================================== */

.leistungen {
  padding: 5rem 5%;
  background: var(--light-bg);
}

.leistungen-container {
  display: flex;
  align-items: flex-start; /* WICHTIG */
  gap: 4rem;
}

/* Linke Seite */
.leistungen-left h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ===============================
   ANGEBOTS-WIZARD
================================ */

.wizard-subline {
  color: #555;
  margin-bottom: 1.5rem;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step h4 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.wizard-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wizard-options button {
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.wizard-options button:hover {
  background: var(--primary);
  color: #fff;
}

.wizard-result p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* =====================================================
   LEISTUNGEN – ACCORDION
===================================================== */

.accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header */
.accordion-header {
  width: 100%;
  text-align: left;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: var(--primary-light);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-content.open {
  padding: 1rem 1.2rem 1.2rem 1.2rem;
}

/* Für Text */
.accordion-content p {
  color: #444;
  line-height: 1.6;
}

/* ===================================================== CONTACT ===================================================== */
.contact {
  background: var(--primary);
  color: #fff;
  padding: 5rem 5%;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}
.contact-text p {
  line-height: 1.7;
}
.contact-info a {
  color: #fff;
  text-decoration: underline;
}
.contact-form {
  background: #fff;
  padding: 2rem;
  padding-left: 10rem;
  padding-right: 10rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px var(--shadow);
  color: #333;
}

.form-message {
  margin-top: 1rem;
}

.honeypot {
  display: none;
}
.form-group {
  margin-bottom: 1.2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.checkbox-group input {
  width: auto;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(26, 62, 89, 0.3);
  outline: none;
}
.contact-form .btn {
  background: var(--primary);
  border: none;
  width: 100%;
}
.contact-form .btn:hover {
  background: var(--gold);
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap;
  cursor: pointer;
  width: fit-content;
}
.checkbox-group input {
  width: auto;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  text-align: center;
  padding: 1.4rem;
  margin-top: 2rem;
}

.legal {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* =====================================================
   ANIMATIONEN
===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .leistungen-container {
    flex-direction: column;
  }

  .overlay h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .overlay h1 {
    font-size: 1.6rem;
  }
}
/* ======================================
   ACCORDION – PFEIL ICONS
====================================== */

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pfeil */
.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* Gedrehter Pfeil wenn offen */
.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

/* ===============================
   WIZARD PROGRESS
================================ */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2rem;
  gap: 0.5rem;
}

.wizard-progress .step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-progress .step.active {
  background: var(--primary);
}

.wizard-progress .line {
  width: 30px;
  height: 2px;
  background: #ccc;
}

.cookie-hint {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1A3E59;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

.cookie-hint button {
  background: #C9A227;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* ===============================
   WIZARD ANIMATION
================================ */

.wizard-step {
  opacity: 0;
  transform: translateY(15px);
  transition: 0.4s ease;
}

.wizard-step.active {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  background: #1a3e59;
  color: #ffffff;
  padding: 40px 10%;
  font-size: 14px;
}
/* =====================================
   MOBILE OPTIMIERUNG 
===================================== */
@media (max-width: 768px) {

  /* ===== GLOBAL ===== */
  body {
    overflow-x: hidden;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    position: relative;
  }

  .logo {
    font-size: 0.9rem;
    max-width: 65%;
    line-height: 1.2;
    white-space: normal;
  }

  /* Burger Button sichtbar */
  .nav-toggle {
    display: block;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Mobile Menü Dropdown */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav-links li {
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
  }

  .nav-links.open {
    max-height: 320px;
  }

  /* ===== HERO ===== */
  .hero-slider h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-slider p {
    font-size: 1rem;
    text-align: center;
  }

  .hero-slider .btn {
    font-size: 0.95rem;
    padding: 0.8rem 1.4rem;
  }

  /* ===== ABOUT ===== */
  .about-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .about-top-right img {
    max-width: 220px;
    margin: 0 auto;
    display: block;
  }

  /* ===== LEISTUNGEN ===== */
  .leistungen-container {
    flex-direction: column;
    gap: 3rem;
  }

  .leistungen-left,
  .leistungen-right {
    width: 100%;
  }

  /* ===== WIZARD ===== */
  .wizard-options {
    flex-direction: column;
    gap: 0.8rem;
  }

  .wizard-options button {
    width: 100%;
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  /* ===== CONTACT ===== */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-text {
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form label {
    display: block;
    white-space: nowrap;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 1rem;
  }

  .contact-form textarea {
    min-height: 140px;
  }

  .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .contact-form .btn {
    margin-top: 1rem;
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }

  /* ===== FOOTER ===== */
  footer {
    text-align: center;
    padding: 2rem 1rem;
  }

}


