@import url("fonts.css");

/* ---------------------------------------------------
   Minga Immobilien — Design Tokens
   Farben & Schriften 1:1 aus dem Original-Theme übernommen
--------------------------------------------------- */
:root {
  --color-bg: #f8f8f8;
  --color-surface: #ffffff;
  --color-text: #151515;
  --color-text-muted: #686359;
  --color-heading: #5c738d;
  --color-accent: #928c81;
  --color-dark: #151515;
  --color-border: #e4e1db;

  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-heading: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --container-width: 1180px;
  --container-width-narrow: 860px;

  --radius: 6px;
  --shadow-card: 0 2px 18px rgba(21, 21, 21, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--color-heading);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.2em; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip-Link für Barrierefreiheit */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 30px;
  border-radius: 999px;
  border: 1px solid var(--color-dark);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.btn:hover {
  text-decoration: none;
  opacity: .85;
}

.btn-primary {
  background: var(--color-dark);
  color: var(--color-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--color-dark);
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-heading);
  background: var(--color-bg);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ---------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
  position: relative;
  color: #f8f8f8;
  background: #151515 url("../img/hero.jpg") center/cover no-repeat;
  padding: 120px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero .container {
  position: relative;
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 46px;
}

.hero .btn {
  margin-top: 12px;
}

/* Kleinerer Seiten-Header für Unterseiten (kein Bild) */
.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 40px;
}

.page-hero h1 {
  margin-bottom: 0;
}

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

.section-alt {
  background: var(--color-surface);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.lead {
  font-size: 20px;
  color: var(--color-text);
}

/* Leistungs-Karten (Kauf/Verkauf/Vermietung Teaser) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.service-card h2 {
  font-size: 26px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.service-card li {
  padding: 4px 0 4px 22px;
  position: relative;
  color: var(--color-text-muted);
}

.service-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Vorteile / Checkliste mit Häkchen */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.check-list li {
  padding: 6px 0 6px 30px;
  position: relative;
  font-size: 18px;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-heading);
}

.check-list li.emphasis {
  font-weight: 700;
}

/* Vorteils-Blöcke auf den Unterseiten (Kauf/Verkauf/Vermietung) */
.benefit-list {
  max-width: var(--container-width-narrow);
  margin: 0 auto;
}

.benefit-list h3 {
  margin-top: 2em;
  margin-bottom: 0.3em;
}

.benefit-list h3:first-child {
  margin-top: 0;
}

.benefit-list .lead-in {
  font-size: 20px;
}

.cta-center {
  text-align: center;
  margin-top: 48px;
}

/* ---------------------------------------------------
   Team
--------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-role {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.team-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: var(--color-text-muted);
  font-size: 15px;
}

.team-card li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.team-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.team-intro {
  max-width: var(--container-width-narrow);
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------------------------------------------------
   Kontakt
--------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info p {
  font-size: 18px;
}

.contact-info a {
  color: var(--color-accent);
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

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

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e6f4ea;
  color: #1e6b34;
}

.form-status.is-error {
  display: block;
  background: #fbe7e7;
  color: #a02020;
}

/* honeypot field, unsichtbar für Menschen */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------
   Legal pages (Impressum / Datenschutz)
--------------------------------------------------- */
.legal-content {
  max-width: var(--container-width-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 2em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content address {
  font-style: normal;
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: #cfcfcf;
  padding: 40px 0 28px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  gap: 4px 20px;
}

.footer-nav a {
  color: #f0f0f0;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 14px;
  color: #9a9a9a;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

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

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

  h1 { font-size: 34px; }
  .hero { padding: 90px 0; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }

  .main-nav.is-open {
    max-height: 480px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .main-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
