/* =========================================================
   Franz Hahn Immobilien – Redesign
   Leitidee: Der Hahn – Familienname, Firmenzeichen und der
   Wetterhahn auf der Marienkirche, die über der Stadt wacht.
   Tiefes Mitternachtsnavy und Messing-Gold (der vergoldete
   Engel, der Wetterhahn) auf ruhigem Porzellan-Untergrund.
   ========================================================= */

/* ── Lokale Fonts ────────────────────────────────────────── */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Playfair-Dateien bleiben lokal verfügbar, werden aber nicht mehr referenziert. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Tinte – Mitternachtsblau, die blaue Stunde über den Altstadtdächern */
  --ink:         #1b2434;
  --ink-2:       #263349;
  --ink-soft:    #4d5a70;

  /* Navy – die Hausfarbe: Buttons, Linien, Akzente */
  --navy:      #2c4a73;
  --navy-deep: #21385a;
  --navy-light:#7e97b8;

  /* Gold – der vergoldete Engel der Marienkirche, der Wetterhahn */
  --gold:       #a2802f;
  --gold-light: #d9b263;

  /* Porzellan/Papier – heller, ruhiger Untergrund */
  --stone:       #f1f0eb;
  --stone-deep:  #e6e4dc;
  --paper-line:  #d0cfc5;
  --white:       #ffffff;

  --text:        #1f2733;
  --text-light:  #4f5766;
  --gray-500:    #5d6472; /* dunkel genug für 4.5:1 auf Weiß und Stein */
  --verkauft:    #676d7a;

  --radius:      3px;
  --radius-card: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--stone);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--navy); }
address { font-style: normal; }

/* Links im Fließtext müssen ohne Farbsehen erkennbar sein */
main p a,
main address a,
.footer-address a,
.header-contact address a,
.is24-alt-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }

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

/* ── Barrierefreiheit ────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
}

.header-top {
  background: var(--ink);
  border-bottom: 2px solid var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.header-brand img {
  height: 84px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}

.ivd-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.header-contact address {
  font-size: 0.78rem;
  color: #c6cdd8;
  line-height: 1.6;
}

.header-contact address a {
  color: var(--gold-light);
}

.header-contact address a:hover {
  color: var(--white);
}

/* ── Nav ─────────────────────────────────────────────────── */
.main-nav {
  background: var(--ink-2);
}

.main-nav .container {
  padding: 0 24px;
}

.main-nav > .container > ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav li > a {
  display: block;
  padding: 12px 16px;
  color: #c6cdd8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav li > a:hover,
.main-nav li.active > a {
  background: var(--ink);
  color: var(--gold-light);
}

.main-nav li.active > a {
  border-bottom: 2px solid var(--navy);
}

/* Dropdown */
.main-nav li.has-sub > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.7;
}

.sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--ink);
  border-top: 2px solid var(--navy);
  list-style: none;
  z-index: 200;
}

.sub-nav li a {
  display: block;
  padding: 10px 18px;
  color: #c6cdd8;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}

.sub-nav li a:hover {
  background: var(--ink-2);
  color: var(--gold-light);
}

.main-nav li.has-sub:hover .sub-nav,
.main-nav li.has-sub:focus-within .sub-nav {
  display: block;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Main content ────────────────────────────────────────── */
main {
  padding: 40px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  filter: grayscale(25%) brightness(0.95) contrast(1.05);
  z-index: -3;
}

.hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(33,56,90,0.35) 0%, rgba(27,36,52,0.42) 55%, rgba(27,36,52,0.6) 100%);
  mix-blend-mode: multiply;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,19,29,0.55) 0%, rgba(14,19,29,0.15) 45%, transparent 70%);
  z-index: -1;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 56px 24px 32px;
}

.hero-eyebrow,
.hero-title,
.hero-sub {
  text-shadow: 0 1px 10px rgba(14,19,29,0.4);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 0.95rem;
  color: #d9dee6;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 24px;
}

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

.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  background: rgba(217,178,99,0.15);
  color: var(--gold-light);
}

.hero-badges {
  display: flex;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 28px;
  position: relative;
  justify-content: flex-start;
}

.hero-badge {
  flex: 0 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: rgba(14,19,29,0.5);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
}

.badge-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9dee6;
  opacity: 0.85;
}

@media (max-width: 840px) {
  .hero-inner { padding: 40px 16px 24px; }
  .hero-sub br { display: none; }
  .hero-badges { gap: 10px; padding: 0 16px 24px; }
  .badge-num { font-size: 1.3rem; }
  .hero-mark { width: 100px; opacity: 0.16; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .hero-badges { flex-wrap: wrap; }
  .hero-badge { flex: 1 1 40%; }
}

/* ── Herzschlag-Signatur im Header ───────────────────────── */
/* EKG-Puls mit Tübinger Tor und Marienkirche (goldener Engel
   auf der Spitze). Zeichnet sich wie auf einem Monitor, steht
   einige Sekunden, setzt kurz aus und schlägt erneut. */
.main-nav > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-pulse-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-pulse {
  height: 40px;
  width: auto;
  display: block;
  color: #c6cdd8;
  overflow: visible;
}

/* Erscheint einmalig in der Pause nach dem ersten Herzschlag */
.header-pulse-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
  opacity: 0;
  animation: header-pulse-text 12s linear infinite;
  pointer-events: none;
}

.header-pulse path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5; /* viewBox-Einheiten: ergibt ~1.4px bei 40px Höhe */
  stroke-linejoin: miter;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: header-pulse-draw 12s linear infinite;
}

/* Auf dunklem Grund die helleren Töne */
.pulse-dot { fill: var(--navy-light); }
.pulse-dot--gold { fill: var(--gold-light); }

.header-pulse .pulse-dot {
  opacity: 0;
  animation: header-pulse-dots 12s linear infinite;
}

/* 12s-Takt: ~3.5s zeichnen, ~5s stehen, ausblenden, ~3s Pause */
@keyframes header-pulse-draw {
  0%    { stroke-dashoffset: 1; opacity: 1; }
  29%   { stroke-dashoffset: 0; opacity: 1; }
  71%   { stroke-dashoffset: 0; opacity: 1; }
  75%   { stroke-dashoffset: 0; opacity: 0; }
  75.1% { stroke-dashoffset: 1; opacity: 0; }
  100%  { stroke-dashoffset: 1; opacity: 0; }
}

@keyframes header-pulse-dots {
  0%, 28%   { opacity: 0; }
  32%, 71%  { opacity: 1; }
  75%, 100% { opacity: 0; }
}

@keyframes header-pulse-text {
  0%, 76%  { opacity: 0; }
  80%, 98% { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── Page title bar ──────────────────────────────────────── */
.page-title {
  background: var(--ink);
  padding: 28px 0;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--navy);
}

.page-title h1 {
  color: var(--white);
  font-size: 1.75rem;
}

/* ── Section headings ────────────────────────────────────── */
.section-heading {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

/* ── Home: welcome box ───────────────────────────────────── */
.welcome-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-card);
  padding: 36px;
}

.welcome-photo {
  width: 100%;
  aspect-ratio: 17 / 15; /* Querformat seitlich beschneiden, Personen bleiben groß */
  border-radius: var(--radius-card);
  object-fit: cover;
  object-position: 42% center;
}

.welcome-letter {
  font-size: 1.05rem;
  color: var(--text);
}

.welcome-letter p { margin-bottom: 14px; }

.welcome-letter .date {
  text-align: right;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.welcome-letter p:nth-of-type(2)::first-letter {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 0.5; /* großes S ragt nach oben, ohne die Zeile aufzublähen */
  margin-right: 3px;
}

.welcome-sign {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.welcome-sign span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ── Startseite: Verkäufer-Einstieg ──────────────────────── */
.verkauf-cta {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
  background: var(--ink);
  border-radius: var(--radius-card);
  border-top: 3px solid var(--navy);
  padding: 40px;
  margin-top: 32px;
  scroll-margin-top: 140px; /* sticky Header beim Anker-Sprung */
}

.verkauf-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.verkauf-cta h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.verkauf-intro p {
  color: #d9dee6;
  font-size: 0.95rem;
  line-height: 1.7;
}

.verkauf-intro p a { color: var(--gold-light); }

.verkauf-punkte {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  padding: 0;
}

.verkauf-punkte li {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9dee6;
}

.verkauf-punkte li::before {
  content: '✓ ';
  color: var(--navy-light);
}

.verkauf-cta .form-group label { color: #d9dee6; }

.verkauf-cta .form-hinweis { color: #9aa3b4; }
.verkauf-cta .form-hinweis a { color: var(--gold-light); }

@media (max-width: 840px) {
  .verkauf-cta {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 22px;
  }
}

/* ── Kürzlich vermittelt (Trust-Block im Bewertungsbereich) ─ */
.verkauf-cta .verkauft-band {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 30px;
}

.verkauft-band h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.verkauft-hinweis {
  font-size: 0.8rem;
  color: #9aa3b4;
  margin-bottom: 20px;
}

.verkauft-liste {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.verkauft-karte {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.verkauft-icon {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--navy-light);
  margin-bottom: 12px;
}

.verkauft-stempel {
  position: absolute;
  top: 16px;
  right: 14px;
  transform: rotate(-8deg);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 2px solid var(--gold-light);
  border-radius: 2px;
  padding: 3px 9px;
}

.verkauft-objekt {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.verkauft-ort {
  font-size: 0.88rem;
  color: #d9dee6;
}

/* ── 404-Seite ───────────────────────────────────────────── */
.fehler-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}

.fehler-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}

.fehler-puls {
  display: block;
  width: 100%;
  height: auto;
  color: var(--navy);
  overflow: visible;
  margin-bottom: 26px;
}

.fehler-puls path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: miter;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* Phase 1: Flatline läuft einmal komplett durch, Phase 2 wischt sie
   synchron zum neuen Ausschlag von links wieder weg */
.fehler-flat {
  animation:
    fehler-puls-draw 1.4s linear 0.3s 1 both,
    fehler-flat-wipe 2.2s ease-out 2.4s 1 forwards;
}

/* Phase 2: … kurze Stille, dann springt der Puls an */
.fehler-leben {
  animation: fehler-puls-draw 2.2s ease-out 2.4s 1 both;
}

@keyframes fehler-puls-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fehler-flat-wipe {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1; }
}

.fehler-dot {
  fill: var(--navy-light);
  opacity: 0;
  animation: fehler-dot-in 0.6s ease 4.6s 1 both;
}

.fehler-dot--gold { fill: var(--gold-light); }

@keyframes fehler-dot-in {
  to { opacity: 1; }
}

.fehler-text {
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 30px;
}

.fehler-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.fehler-telefon {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ── Firma pages ─────────────────────────────────────────── */
.content-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-card);
  padding: 36px;
}

.content-card p { margin-bottom: 14px; }
.content-card ul { margin: 10px 0 14px 22px; }
.content-card li { margin-bottom: 6px; }
.content-card li ul { margin-top: 6px; }

.firma-gruppenbild {
  float: right;
  width: 360px;
  max-width: 45%;
  margin: 0 0 16px 28px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.firma-gruppenbild img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 560px) {
  .firma-gruppenbild {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
  }
}

.firma-gruppenbild figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 10px 16px;
  background: var(--white);
}

@media (max-width: 600px) {
  .content-banner img { height: 160px; }
}

.kontakt-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.kontakt-aside-img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--paper-line);
  display: block;
}

.kontakt-daten {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 16px;
}

.kontakt-main { min-width: 0; }

.kontakt-einleitung { margin-bottom: 24px; }

.kontakt-main .kontakt-form { max-width: none; }

@media (max-width: 760px) {
  .kontakt-layout { grid-template-columns: 1fr; gap: 24px; }
  .kontakt-aside {
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .kontakt-aside-img { width: 150px; flex-shrink: 0; }
  .kontakt-daten { margin-top: 0; }
}


/* ── Kontakt: Anfahrt ────────────────────────────────────── */
.anfahrt { margin-top: 28px; }

.anfahrt-karte-link {
  display: block;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.anfahrt-karte-link img {
  width: 100%;
  height: auto;
  display: block;
}

.anfahrt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.anfahrt .anfahrt-attribution {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin: 0;
}

/* Sub-page nav tabs */
.sub-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--paper-line);
  flex-wrap: wrap;
}

.sub-tabs a {
  display: block;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, background 0.2s;
}

.sub-tabs a:hover {
  color: var(--ink);
  background: var(--stone-deep);
}

.sub-tabs a.active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--paper-line);
  border-bottom-color: var(--white);
}

/* ── Leistungen ──────────────────────────────────────────── */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.leistung-card {
  background: var(--stone-deep);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  transition: transform 0.2s;
}

.leistung-card:hover {
  transform: translateY(-2px);
}

.leistung-icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: 14px;
}

.leistung-icon svg {
  width: 100%;
  height: 100%;
}

.leistung-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.leistung-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.leistungen-cta {
  text-align: center;
  padding: 28px 24px;
  background: var(--ink);
  border-radius: var(--radius-card);
  color: #d9dee6;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 40px;
}

.leistungen-cta a.btn-primary {
  background: var(--navy);
  color: var(--white);
  margin-top: 4px;
}

.leistungen-cta a.btn-outline {
  border-color: var(--gold-light);
  color: var(--gold-light);
  margin-top: 4px;
}

.leistungen-cta a.btn-outline:hover {
  background: var(--gold-light);
  color: var(--ink);
}

/* Prozess-Ablauf */
.prozess-liste {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prozess-schritt {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: start;
}

.prozess-schritt:last-child {
  border-bottom: none;
}

.prozess-num {
  width: 48px;
  height: 48px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.prozess-inhalt h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.prozess-inhalt p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 8px;
}

.prozess-liste-innen {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prozess-liste-innen li::marker {
  color: var(--navy);
}

@media (max-width: 480px) {
  .prozess-schritt { grid-template-columns: 36px 1fr; gap: 14px; }
  .prozess-num { width: 36px; height: 36px; font-size: 1rem; }
  .leistungen-grid { grid-template-columns: 1fr; }
}

.leistungen-cta a:hover { color: var(--white); }

@media (max-width: 840px) {
  .leistungen-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .leistungen-grid { grid-template-columns: 1fr; }
}

/* ── Team ────────────────────────────────────────────────── */
.team-photo-wrap {
  margin-bottom: 36px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--paper-line);
}

.team-photo-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

@media (max-width: 600px) {
  .team-photo-wrap img { height: 300px; }
}

.team-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-profile {
  background: var(--stone-deep);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
}

.team-profile-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--paper-line);
}

.team-profile-header h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-deep); /* 4.5:1 auf dem Steinton der Karte */
}

.team-profile p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .team-profiles { grid-template-columns: 1fr; }
}

/* legacy – kept for safety */
.team-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Property listings ───────────────────────────────────── */
.listing-group {
  margin-bottom: 36px;
}

.listing-group-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-group-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--navy);
  border-radius: 2px;
}

.listing-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-deep);
}

.listing-thumb-link {
  display: block;
  flex-shrink: 0;
}

.listing-thumb {
  width: 140px;
  height: 94px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Kein Bild vorhanden: Description übernimmt den Platz */
.listing-item:not(:has(.listing-thumb-link)) {
  grid-template-columns: 1fr auto;
}

.listing-item:last-child {
  border-bottom: none;
}

.listing-description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.listing-description strong {
  color: var(--ink);
}

.listing-features {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 3px;
  display: inline-block;
}

.listing-title {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}

.listing-type-loc {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 3px;
}

.listing-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 110px;
}

.listing-price {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.listing-sold {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--verkauft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.listing-prep {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-details {
  display: inline-block;
  padding: 5px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-details:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── Kontaktformular ─────────────────────────────────────── */
.kontakt-form {
  max-width: 680px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 0;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row-plz {
  grid-template-columns: 120px 1fr;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 13px;
  border: 1px solid #c3c8d0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(44, 74, 115, 0.16);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: #c0392b;
}

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

.req {
  color: var(--navy);
}

.form-hinweis {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 4px 0 20px;
  line-height: 1.5;
}

.form-submit {
  margin-top: 8px;
}

.form-success {
  background: #f0f7f0;
  border: 1px solid #7ab87a;
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #2d6a2d;
  margin-bottom: 24px;
}

.form-error {
  background: #fdf0f0;
  border: 1px solid #e08080;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #7a2020;
  margin-top: 16px;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .form-row-2,
  .form-row-plz { grid-template-columns: 1fr; }
}

/* ── Gesuche ─────────────────────────────────────────────── */
.gesuche-kategorien {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 26px 0 36px;
}

.gesuche-kategorie {
  background: var(--stone-deep);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.gesuche-kategorie h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.gesuche-kategorie p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.gesuche-ablauf {
  margin: 14px 0 30px 22px;
}

.gesuche-ablauf li { margin-bottom: 8px; }

.gesuche-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.gesuche-suchende {
  border-top: 1px solid var(--paper-line);
  padding-top: 24px;
}

.gesuche-suchende h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.gesuche-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone-deep);
}

.gesuche-item:last-child { border-bottom: none; }

.gesuche-desc {
  font-size: 0.9rem;
  color: var(--text);
}

.gesuche-who {
  font-size: 0.8rem;
  color: var(--navy);
  font-style: italic;
  white-space: nowrap;
}

/* ── Impressum / Datenschutz ─────────────────────────────── */
.legal-content h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 36px 0 10px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--paper-line);
}

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

.legal-content h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 22px 0 6px;
  color: var(--ink-2);
}

.legal-content p {
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--text-light);
  line-height: 1.7;
}

.legal-content a { color: var(--ink); text-decoration: underline; }

/* ── IS24 CTA ────────────────────────────────────────────── */
.is24-cta {
  margin: 36px 0 24px;
  padding: 32px;
  background: var(--stone-deep);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.is24-cta-logo {
  height: 32px;
  width: auto;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
}

.is24-cta p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.is24-alt-contact {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 16px 0 4px;
}

.is24-alt-contact a {
  color: var(--ink);
  font-weight: 500;
}

.is24-alt-contact a:hover { color: var(--navy); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #c6cdd8;
  margin-top: 60px;
  border-top: 3px solid var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 44px 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-address {
  font-size: 0.85rem;
  line-height: 1.9;
  color: #c6cdd8;
}

.footer-address strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.footer-address a { color: var(--gold-light); }
.footer-address a:hover { color: var(--white); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.footer-is24 img {
  height: 36px;
  width: auto;
  display: block;
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.footer-is24:hover img { opacity: 1; }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.8rem;
}

.footer-links a {
  color: #9aa3b4;
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  padding: 14px 24px;
  font-size: 0.78rem;
  color: #9aa3b4; /* hell genug auf dunklem Grund */
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom a { color: #9aa3b4; text-decoration: underline; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 840px) {
  .header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .header-brand img { height: 60px; }
  .brand-name { font-size: 1.1rem; }
  .brand-subtitle { display: none; }
  .header-contact { display: none; }

  .nav-toggle { display: flex; }

  .main-nav > .container { display: block; }
  .header-pulse-wrap { display: none; }

  .main-nav > .container > ul {
    display: none;
    flex-direction: column;
    padding: 8px 0;
  }

  .main-nav.open > .container > ul { display: flex; }

  .main-nav li > a { padding: 11px 20px; font-size: 0.85rem; }

  .sub-nav {
    position: static;
    display: block;
    border-top: none;
    border-left: 3px solid var(--navy);
    margin-left: 20px;
    background: rgba(255,255,255,0.05);
  }

  .main-nav li.has-sub > a::after { display: none; }

  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-photo { width: 100%; max-width: 320px; margin: 0 auto; }

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

  .listing-item { grid-template-columns: 100px 1fr; grid-template-rows: auto auto; }
  .listing-item .listing-thumb { width: 100px; height: 67px; }
  .listing-item .listing-meta { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .listing-item:not(:has(.listing-thumb-link)) { grid-template-columns: 1fr; }

  .gesuche-item { grid-template-columns: 1fr; }
  .gesuche-who { text-align: left; }

  .footer-inner { flex-direction: column; gap: 28px; padding: 32px 24px 24px; }
  .footer-right { align-items: flex-start; }
  .footer-links { align-items: flex-start; }
  .footer-logo { height: 50px; }

  .page-title h1 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  main { padding: 24px 16px 48px; }
  .container { padding: 0 16px; }
  .content-card { padding: 22px 18px; }
  .welcome-grid { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

  /* Herzschlag steht als fertige Linie, ohne Endlosschleife */
  .header-pulse path {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  /* 404: fertige Linie steht sofort, Flatline entfällt ganz */
  .fehler-puls path {
    animation: none !important;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .fehler-flat { display: none; }
  .fehler-dot {
    animation: none !important;
    opacity: 1;
  }
  .header-pulse .pulse-dot {
    animation: none !important;
    opacity: 1;
  }
  .header-pulse-text {
    animation: none !important;
    opacity: 0;
  }
}
