/* ============================================================
   Immobilien-Service Luckei – Stylesheet
   Farbschema: Teal/Waldgrün (aus Logo)
   ============================================================ */

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Logo-Farben */
  --teal-dark:  #005845;   /* Dunkelgrün Logo-Text */
  --teal-mid:   #3d8a80;   /* Mittleres Teal */
  --teal-light: #e6f2f0;   /* Sehr helles Teal */
  --sage:       #7ba8a4;   /* Salbei-Grau (Logo-Quadrate hell) */
  --sage-dark:  #4a807a;   /* Dunkleres Salbei */

  /* Akzent & Neutrals */
  --gold:       #c8961e;   /* Warmer Kontrast für CTAs */
  --white:      #ffffff;
  --off-white:  #f7faf9;   /* Leicht getöntes Weiß */
  --gray-light: #f0f4f3;
  --gray:       #d8e4e2;
  --text:       #1e3330;   /* Sehr dunkles Teal für Text */
  --text-light: #5a7572;

  --shadow:     0 4px 20px rgba(0,88,69,.10);
  --radius:     8px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Raleway', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--teal-dark);
}

a { color: var(--teal-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #a97d18;
  border-color: #a97d18;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,150,30,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-teal {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}
.btn-teal:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,88,69,.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo-img {
  height: 52px;
  width: auto;
}
.nav-tagline {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-tagline .nt-main {
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: .2px;
}
.nav-tagline .nt-sub {
  font-size: .7rem;
  color: var(--text-light);
  font-weight: 500;
}
@media (max-width: 500px) {
  .nav-tagline { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  font-size: .88rem;
  color: var(--text);
  letter-spacing: .2px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-dark);
  border-bottom-color: var(--gold);
}
.nav-links .nav-login {
  background: var(--teal-dark);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-size: .82rem;
}
.nav-links .nav-login:hover {
  background: var(--teal-mid);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 25px; height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #007060 60%, var(--teal-mid) 100%);
  color: var(--white);
  padding: 96px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(200,150,30,.25);
  color: #f5c842;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
}
.hero .hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Team-Foto Platzhalter im Hero */
.hero-photo {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 320px;
  opacity: .12;
  font-size: 14rem;
  line-height: 1;
  z-index: 0;
}

.hero-promise {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.15);
  flex-wrap: wrap;
}
.promise-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
}
.promise-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }

.section-label {
  display: inline-block;
  color: var(--teal-mid);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 14px;
}
.section-intro {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.8;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 30px 26px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1rem; margin-bottom: 10px; }
.service-card p  { font-size: .88rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Why Section ---------- */
.why-section { background: var(--gray-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 44px;
}
.why-item { text-align: center; }
.why-icon {
  width: 62px; height: 62px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}
.why-item h3 { font-size: .93rem; margin-bottom: 7px; }
.why-item p  { font-size: .83rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Person-Box (persönliche Note) ---------- */
.person-box {
  background: linear-gradient(135deg, var(--teal-dark), #007060);
  border-radius: 16px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  color: var(--white);
  margin-top: 56px;
}
.person-avatar {
  width: 90px; height: 90px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.3);
  overflow: hidden;
}
.person-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.person-box h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; }
.person-box p  { color: rgba(255,255,255,.85); font-size: .92rem; line-height: 1.75; }
.person-box .person-contact { margin-top: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.person-box .person-contact a { color: #f5c842; font-weight: 700; font-size: .9rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--teal-dark), #007060);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.82); margin-bottom: 30px; max-width: 500px; margin-left:auto; margin-right:auto; }

/* ---------- Page Hero (Unterseiten) ---------- */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--teal-dark), #007060);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: .97rem; }

.breadcrumb {
  background: var(--gray-light);
  padding: 9px 0;
  font-size: .8rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--gray);
}
.breadcrumb a { color: var(--teal-mid); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Leistungen Detail ---------- */
.leistung-block {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}
.leistung-block:hover { box-shadow: var(--shadow); }
.leistung-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  margin-bottom: 14px;
  border: none; padding: 0;
}
.leistung-num {
  width: 30px; height: 30px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.leistung-block ul { padding-left: 20px; }
.leistung-block ul li { margin-bottom: 6px; font-size: .88rem; color: var(--text-light); }
.leistung-block ul li::marker { color: var(--teal-mid); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-img-placeholder {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
  border-radius: 16px;
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 5rem;
  overflow: hidden;
}
.about-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,88,69,.18);
}
.qualifier-list { margin-top: 22px; }
.qualifier-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.qualifier-icon {
  width: 34px; height: 34px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0; margin-top: 2px;
}
.qualifier-item h4 { font-size: .88rem; margin-bottom: 2px; }
.qualifier-item p  { font-size: .8rem; color: var(--text-light); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 44px;
  align-items: start;
}
.contact-info-box { background: var(--gray-light); border-radius: 12px; padding: 34px; }
.contact-info-box h2 { font-size: 1.15rem; margin-bottom: 22px; }
.contact-detail { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.contact-icon {
  width: 38px; height: 38px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.contact-detail h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); margin-bottom: 2px; }
.contact-detail p, .contact-detail a { font-size: .93rem; font-weight: 600; color: var(--text); }
.contact-detail a:hover { color: var(--teal-mid); }

.contact-form { background: var(--white); border: 1px solid var(--gray); border-radius: 12px; padding: 34px; }
.contact-form h2 { font-size: 1.15rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-light);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: .93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(61,138,128,.1);
}
.form-group textarea { resize: vertical; min-height: 115px; }
.form-note { font-size: .76rem; color: var(--text-light); margin-top: 10px; }

/* Status-Meldungen */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  margin-bottom: 18px;
  display: none;
}
.alert-success { background:#ecfdf5; border:1px solid #6ee7b7; color:#065f46; }
.alert-error   { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }

/* ---------- Login ---------- */
.login-wrapper {
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-light);
  padding: 40px 24px;
}
.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 46px 38px;
  width: 100%; max-width: 410px;
  box-shadow: 0 8px 40px rgba(0,88,69,.12);
  text-align: center;
}
.login-logo { height: 70px; width: auto; margin: 0 auto 20px; }
.login-card h1 { font-size: 1.3rem; margin-bottom: 6px; }
.login-card .sub { font-size: .83rem; color: var(--text-light); margin-bottom: 28px; }
.login-card .form-group { text-align: left; }
.login-hint { font-size: .74rem; color: var(--text-light); margin-top: 18px; }

/* ---------- Mandantenbereich ---------- */
.mandanten-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--teal-dark), #007060);
  color: var(--white);
  padding: 44px 0;
}
.mandanten-hero h1 { color: var(--white); font-size: 1.5rem; margin-bottom: 4px; }
.mandanten-hero p  { color: rgba(255,255,255,.75); font-size: .9rem; }
.logout-btn {
  float: right;
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.3);
  font-family: inherit;
  transition: background var(--transition);
}
.logout-btn:hover { background: rgba(255,255,255,.25); }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px; margin-top: 28px;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: 10px;
  padding: 22px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-icon { font-size: 1.7rem; flex-shrink: 0; }
.doc-card h4 { font-size: .88rem; margin-bottom: 2px; }
.doc-card p  { font-size: .76rem; color: var(--text-light); }

/* ---------- Impressum ---------- */
.impressum-content { max-width: 800px; }
.impressum-content h2 { font-size: 1.15rem; margin-top: 32px; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--gray); }
.impressum-content p  { margin-bottom: 11px; font-size: .93rem; }
.legal-note { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 14px 18px; font-size: .82rem; color: #92400e; margin-top: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
}
.footer-logo {
  height: 56px; width: auto; margin-bottom: 14px;
  background: var(--white);
  border-radius: 6px;
  padding: 4px 8px;
}
.footer-brand p { font-size: .84rem; line-height: 1.7; }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: var(--white); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.62); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; font-size: .83rem; }
.footer-contact-item a { color: rgba(255,255,255,.65); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; flex-wrap: wrap; gap: 6px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-img-placeholder { height: 240px; }
  .person-box { grid-template-columns: 1fr; text-align: center; }
  .person-box .person-contact { justify-content: center; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--gray); }
  .nav-links a { display: block; padding: 12px 24px; font-size: .95rem; }
  .nav-links .nav-login { margin: 8px 24px; display: block; border-radius: var(--radius); }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 56px; }
  .hero-photo { display: none; }
  .hero-promise { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-form, .contact-info-box { padding: 22px; }
  .login-card { padding: 32px 22px; }
}
