/* HeyJoe Immobilienmanagement – gemeinsames Stylesheet */

/* Figtree lokal eingebunden (DSGVO) – Dateien liegen in assets/fonts/ */
/* Dateien von https://fonts.google.com/specimen/Figtree ("Get font" > "Download all") – aus dem Ordner "static" diese vier Dateien nach assets/fonts/ kopieren */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Figtree-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Figtree-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Figtree-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/Figtree-ExtraBold.ttf') format('truetype'); }

:root {
  --schwarz: #0a0a0e;
  --weiss: #ffffff;
  --grau-hell: #f4f4f5;
  --grau-linie: #d4d4d8;
  --text-2: #3f3f46;
  --text-3: #52525b;
  --gruen: #2f7d5b;   /* Hausverwaltung */
  --blau: #1f6fa8;    /* Immobilienvermittlung */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--weiss); color: var(--schwarz); font-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

/* Kopfzeile */
.site-header { background: var(--schwarz); color: var(--weiss); }
.site-header .wrap { min-height: 84px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.site-header .logo img { width: 104px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform 160ms var(--ease-out), filter 150ms ease; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(0.97); }
.btn span { display: inline-block; transition: transform 200ms var(--ease-out); }
.btn-hell { background: var(--weiss); color: var(--schwarz); }
.btn-dunkel { background: var(--schwarz); color: var(--weiss); }
.btn-rahmen { border: 1px solid var(--weiss); color: var(--weiss); background: transparent; font-weight: 600; }
.btn-klein { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .site-footer a:hover, .legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .btn:hover { filter: brightness(0.9); }
  .btn:hover span { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .btn, .btn span { transition: none; } .btn:hover span { transform: none; } }

/* Rechtstexte */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 860px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.legal h1 { margin: 12px 0 0; font-size: clamp(36px, 6vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.balken { width: 48px; height: 4px; background: var(--schwarz); margin: 24px 0 40px; }
.legal h2 { margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--schwarz); font-size: 22px; font-weight: 800; line-height: 1.25; }
.legal h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal address { font-style: normal; color: var(--text-2); margin: 0 0 14px; }
.legal .stand { margin-top: 48px; font-size: 14px; color: var(--text-3); }
/* Platzhalter – vor Veröffentlichung ausfüllen */
.todo { background: #fff3b0; color: var(--schwarz); padding: 0 4px; font-weight: 600; }

/* Fußzeile */
.site-footer { background: var(--schwarz); color: #d4d4d8; border-top: 1px solid #3f3f46; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.site-footer .oben { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .logo img { width: 88px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer nav a { text-decoration: none; }
.site-footer .klein { font-size: 13px; color: #a1a1aa; }

/* ---------- Startseite ---------- */
.label-hell { color: var(--weiss); }
h1, h2, h3 { letter-spacing: -0.01em; }
.sec { padding: 88px 0; }
@media (max-width: 700px) { .sec { padding: 64px 0; } }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px 56px; }

/* Hero */
.hero { background: var(--schwarz); color: var(--weiss); }
.hero .grid2 { padding-top: 64px; padding-bottom: 96px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 60px); font-weight: 800; line-height: 1.02; }
.hero .balken { background: var(--weiss); margin: 0; }
.hero .stack { display: flex; flex-direction: column; gap: 26px; }
.hero p { margin: 0; font-size: 20px; line-height: 1.5; color: #d4d4d8; }
.hero img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Prinzip */
.prinzip { border-bottom: 1px solid var(--schwarz); }
.prinzip h2 { margin: 16px 0 0; font-size: clamp(32px, 4.5vw, 40px); font-weight: 800; line-height: 1.1; }
.prinzip p { margin: 0 0 28px; font-size: 19px; color: var(--text-2); }
.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 20px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
.werte div { display: flex; align-items: center; gap: 10px; }

/* Leistungen */
.leistungen h2.titel { margin: 12px 0 0; font-size: clamp(34px, 5vw, 44px); font-weight: 800; line-height: 1.1; }
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; margin-top: 40px; }
.karte { border: 1px solid var(--schwarz); border-top-width: 6px; display: flex; flex-direction: column; }
.karte.hv { border-top-color: var(--gruen); --akzent: var(--gruen); }
.karte.vm { border-top-color: var(--blau); --akzent: var(--blau); }
.karte img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.karte .inhalt { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .karte .inhalt { padding: 24px; } }
.kopf { display: flex; align-items: center; gap: 14px; }
.icon { width: 48px; height: 48px; flex-shrink: 0; background: var(--akzent); color: var(--weiss); display: flex; align-items: center; justify-content: center; }
.kopf .bereich { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--akzent); }
.karte h3 { margin: 0; font-size: clamp(26px, 3.5vw, 32px); font-weight: 800; line-height: 1.1; }
.karte p { margin: 0; color: var(--text-2); }

/* Aufklapp-Bereiche */
.akkordeon { border-bottom: 1px solid var(--schwarz); }
.akkordeon details { border-top: 1px solid var(--schwarz); }
.akkordeon summary { list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; touch-action: manipulation; }
.akkordeon summary::-webkit-details-marker { display: none; }
.akkordeon .t { display: block; font-size: 19px; font-weight: 700; }
.akkordeon .s { display: block; font-size: 15px; color: var(--text-3); }
.akkordeon .chev { flex-shrink: 0; transition: transform 200ms var(--ease-out); }
.akkordeon details[open] .chev { transform: rotate(180deg); }
.akkordeon details p { margin: 0 0 22px; font-size: 16px; }
.akkordeon details p + p { margin-top: -8px; }
@media (hover: hover) and (pointer: fine) { .akkordeon summary:hover .t { text-decoration: underline; text-underline-offset: 4px; } }
@media (prefers-reduced-motion: reduce) { .akkordeon .chev { transition: none; } }
summary:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

/* Über mich */
.ueber { background: var(--grau-hell); }
.ueber .grid2 { align-items: start; }
.ueber img { width: 100%; height: 600px; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 700px) { .ueber img { height: 440px; } }
.ueber h2 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 44px); font-weight: 800; line-height: 1.08; }
.ueber .stack { display: flex; flex-direction: column; gap: 22px; }
.ueber .intro { margin: 0; font-size: 19px; color: var(--text-2); }
.stationen { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; line-height: 1.4; }
.stationen li { display: flex; gap: 12px; align-items: baseline; }
.stationen li::before { content: ""; width: 16px; height: 3px; flex-shrink: 0; background: var(--schwarz); transform: translateY(-4px); }

/* Stuttgart */
.stuttgart { position: relative; background: var(--schwarz); color: var(--weiss); }
.stuttgart img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 76%; }
@media (max-width: 700px) { .stuttgart img { height: 360px; } }
.stuttgart .band { position: absolute; left: 0; right: 0; bottom: 0; min-height: 120px; display: flex; align-items: center; background: rgba(10, 10, 14, 0.55); }
.stuttgart h2 { margin: 0; padding: 20px 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.1; }

/* Bewertung */
.bewertung { background: var(--grau-hell); }
.bewertung .grid2 { align-items: center; }
.bewertung h2 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 44px); font-weight: 800; line-height: 1.08; }
.bewertung .balken { margin: 18px 0; }
.bewertung p { margin: 0; font-size: 18px; color: var(--text-2); }
.schritte-box { background: var(--weiss); border: 1px solid var(--schwarz); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 600px) { .schritte-box { padding: 24px; } }
.schritte-box .h { font-size: 20px; font-weight: 800; }
.schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; line-height: 1.45; counter-reset: s; }
.schritte li { display: flex; gap: 14px; align-items: flex-start; counter-increment: s; }
.schritte li::before { content: counter(s); width: 32px; height: 32px; flex-shrink: 0; background: var(--schwarz); color: var(--weiss); font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Kontakt */
.kontakt { background: var(--schwarz); color: var(--weiss); }
.kontakt .grid2 { align-items: start; }
.kontakt h2 { margin: 12px 0 0; font-size: clamp(36px, 5.5vw, 48px); font-weight: 800; line-height: 1.05; }
.kontakt .stack { display: flex; flex-direction: column; gap: 24px; }
.kontakt .stack > p { margin: 0; font-size: 18px; color: #d4d4d8; }
.kontakt .daten { font-size: 18px; line-height: 1.5; }
.kontakt .daten .tel { display: inline-block; margin-top: 8px; font-size: 26px; font-weight: 800; text-decoration: none; }
form.formular { background: var(--weiss); color: var(--schwarz); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { form.formular { padding: 24px; } }
.felder2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
form.formular label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
form.formular input, form.formular select, form.formular textarea { font: inherit; font-size: 16px; color: var(--schwarz); min-height: 48px; padding: 0 14px; border: 1px solid #71717a; background: var(--weiss); border-radius: 0; }
form.formular textarea { padding: 12px 14px; resize: vertical; }
form.formular .check { flex-direction: row; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; color: var(--text-2); }
form.formular .check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; padding: 0; }
form.formular .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.formular .btn { justify-content: center; }
.hinweis { font-size: 13px; color: var(--text-3); }

/* Footer: Social */
.social { display: flex; gap: 12px; }
.social a { width: 44px; height: 44px; border: 1px solid #52525b; display: flex; align-items: center; justify-content: center; color: var(--weiss); }

/* Mentor-Kachel */
.mentor { margin-top: 56px; background: var(--weiss); border: 1px solid var(--schwarz); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mentor-zahl { background: var(--schwarz); color: var(--weiss); padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 16px; line-height: 1.35; }
.mentor-zahl .gross { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.mentor-text { padding: 36px; display: flex; flex-direction: column; gap: 12px; grid-column: span 2; }
@media (max-width: 860px) { .mentor-text { grid-column: auto; } }
@media (max-width: 600px) { .mentor-zahl, .mentor-text { padding: 24px; } }
.mentor h3 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.mentor .mentor-name { margin: 0; font-weight: 700; color: var(--schwarz); }
.mentor p { margin: 0; color: var(--text-2); }
.mentor-foto { width: 100%; height: 100%; max-height: 400px; min-height: 340px; object-fit: cover; object-position: 50% 15%; }
.mentor-zahl { padding-top: 36px; }

/* Aktuelles (Blog) */
.aktuelles h2.titel { margin: 12px 0 0; font-size: clamp(34px, 5vw, 44px); font-weight: 800; line-height: 1.08; }
.aktuelles .balken { margin: 18px 0 40px; }
.post-karte { --akzent: var(--gruen); border: 1px solid var(--schwarz); border-top: 6px solid var(--akzent); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); text-decoration: none; background: var(--weiss); }
.post-karte img { width: 100%; height: 100%; min-height: 280px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--grau-hell); }
.post-karte .inhalt { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
@media (max-width: 600px) { .post-karte .inhalt { padding: 24px; } }
.post-karte h3 { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; line-height: 1.15; }
.post-karte p { margin: 0; color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.meta .bereich { color: var(--akzent, var(--gruen)); }
.weiter { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.weiter span { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post-karte:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
  .post-karte:hover .weiter span { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .weiter span { transition: none; } }

/* Beitragsseite */
.artikel-kopf { padding: 64px 0 24px; }
.artikel-kopf .wrap, .artikel .wrap { max-width: 824px; }
.zurueck { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text-3); text-decoration: none; margin-bottom: 20px; }
.artikel-kopf .meta .bereich { background: var(--gruen); color: var(--weiss); padding: 6px 10px; }
.artikel-kopf h1 { margin: 20px 0 0; font-size: clamp(34px, 5.5vw, 48px); font-weight: 800; line-height: 1.06; }
.artikel-kopf .balken { background: var(--gruen); margin: 24px 0; }
.artikel-kopf .lead { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-2); }
.titelbild { max-width: 1104px; margin: 0 auto; padding: 16px 32px 40px; }
@media (max-width: 600px) { .titelbild { padding: 8px 20px 32px; } }
.titelbild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--grau-hell); }
.titelbild figcaption { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.artikel { padding-bottom: 88px; }
.artikel h2 { margin: 48px 0 14px; font-size: clamp(24px, 3.2vw, 30px); font-weight: 800; line-height: 1.15; }
.artikel p { margin: 0 0 18px; font-size: 19px; line-height: 1.7; color: #27272a; }
.artikel ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 19px; line-height: 1.6; color: #27272a; }
.artikel li::marker { color: var(--gruen); }
.artikel strong { color: var(--schwarz); }
@media (max-width: 600px) { .artikel p, .artikel ul { font-size: 17px; } }
.cta-box { margin: 40px 0 24px; background: var(--gruen); color: var(--weiss); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) { .cta-box { padding: 24px; } }
.cta-box .h { font-size: 24px; font-weight: 800; line-height: 1.2; }
.artikel .cta-box p { margin: 0; color: var(--weiss); font-size: 17px; }
.artikel .stand { font-size: 15px; line-height: 1.6; color: var(--text-3); font-style: italic; }
.autor { margin-top: 32px; border-top: 1px solid var(--schwarz); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.autor .name { font-size: 18px; font-weight: 700; }
.autor .titel { font-size: 15px; color: var(--text-2); }
.autor a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }

/* Mentor-Foto füllt die Kachel immer vollständig (kein weißer Rand unten).
   Wichtig: ".ueber img" setzt sonst eine feste Höhe von 600px – daher der spezifischere Selektor. */
.ueber .mentor-foto { width: 100%; height: 440px; min-height: 0; max-height: none; object-fit: cover; object-position: 50% 12%; }
@media (min-width: 1168px) { .ueber .mentor-foto { height: 0; min-height: 100%; } }
@media (max-width: 600px) { .ueber .mentor-foto { height: 420px; } }
