/* =========================================================
   Der Vermieter — statisches Redesign
   Editorial, ruhig, vertrauenswürdig. Markenblau #2f6dff.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:        #17181c;
  --ink-soft:   #3a3d45;
  --muted:      #6c7079;
  --paper:      #ffffff;
  --paper-warm: #f7f5ef;
  --paper-blue: #eef2ff;
  --line:       #e7e4dc;
  --line-soft:  #efece5;
  --accent:     #2f6dff;
  --accent-ink: #1f4fd0;
  --accent-wash:#eaf0ff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --read: 700px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.navlink {
  color: var(--ink-soft);
  font-size: 15.5px;
  font-weight: 500;
}
.nav a.navlink:hover { color: var(--accent); text-decoration: none; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: background .15s, transform .15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent-ink); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 74px 0 20px;
  border-bottom: 1px solid var(--line-soft);
}
.hero .eyebrow {
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero p.lead {
  font-size: 1.24rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Section headers ---------- */
.section { padding: 62px 0; }
.section-warm { background: var(--paper-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Topic tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.tile {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 172px;
}
.tile:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 10px 30px -18px rgba(47,109,255,.5);
  transform: translateY(-3px);
}
.tile .tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 10px;
}
.tile .tile-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

/* ---------- Post list (feed) ---------- */
.feed { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feed-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px; align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.feed-item:hover { background: var(--paper-warm); text-decoration: none; }
.feed-title { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--ink); margin: 0; line-height: 1.25; }
.feed-meta { font-size: .86rem; color: var(--muted); white-space: nowrap; }

/* ---------- Latest strip on home ---------- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  background: var(--paper);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 12px 34px -20px rgba(23,24,28,.5); transform: translateY(-3px); }
.card .card-img { aspect-ratio: 16/9; background: var(--paper-warm); overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 18px 20px 22px; }
.card .card-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card .card-title { font-family: var(--font-display); font-weight: 500; font-size: 1.24rem; color: var(--ink); margin: 8px 0 0; line-height: 1.22; }
.card .card-meta { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Article ---------- */
.article-head { padding: 56px 0 8px; text-align: center; }
.article-meta {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  font-size: .88rem; color: var(--muted); margin-bottom: 18px;
}
.article-meta .tagpill {
  color: var(--accent); font-weight: 600;
  background: var(--accent-wash); padding: 3px 12px; border-radius: 999px;
  font-size: .82rem;
}
.article-meta .tagpill:hover { background: var(--accent); color: #fff; text-decoration: none; }
.article-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 500; margin: 0 auto; max-width: 20ch; }
.article-feature { margin: 40px auto 0; max-width: 940px; padding: 0 24px; }
.article-feature img { width: 100%; border-radius: 10px; }

/* One centered reading column, sitting in the middle of the page */
.article-body {
  max-width: var(--read);
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.article-body h2 { font-size: 1.75rem; margin: 2em 0 .5em; }
.article-body h3 { font-size: 1.35rem; margin: 1.7em 0 .4em; }
.article-body p { margin: 0 0 1.25em; color: var(--ink-soft); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 1.25em; padding-left: 1.3em; color: var(--ink-soft); }
.article-body li { margin: .4em 0; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px; margin: 1.6em auto;
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--ink);
}
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.4em auto; }
.article-body figure { margin: 2em auto; }
.article-body figure img { border-radius: 8px; width: 100%; }
.article-body figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Ghost kg cards */
.kg-card { margin-top: 1.4em; margin-bottom: 1.4em; }
.kg-button-card { display: flex; }
.kg-button-card.kg-align-center { justify-content: center; }
.kg-button-card.kg-align-left { justify-content: flex-start; }
.kg-btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-weight: 600; padding: 13px 26px; border-radius: 999px;
  text-decoration: none !important; transition: background .15s, transform .15s;
}
.kg-btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.kg-callout-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 10px; margin: 1.6em auto;
  background: var(--paper-warm); border: 1px solid var(--line);
}
.kg-callout-card-blue { background: var(--accent-wash); border-color: #d4e0ff; }
.kg-callout-emoji { font-size: 1.3rem; line-height: 1.4; }
.kg-callout-text { margin: 0; color: var(--ink-soft); }
.kg-image-card img { border-radius: 8px; }

/* ---------- Newsletter block ---------- */
.newsletter {
  background: var(--ink); color: #fff;
  border-radius: 16px; padding: 48px 40px; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.newsletter h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.newsletter p { color: #c9cbd1; margin: 0 auto 26px; max-width: 52ch; }
.nl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.nl-form input[type=email] {
  flex: 1 1 300px; max-width: 360px;
  padding: 13px 16px; border-radius: 999px; border: 1px solid #3a3d45;
  background: #24262c; color: #fff; font-size: 16px;
}
.nl-form input[type=email]::placeholder { color: #8b8f98; }
.nl-form input[type=email]:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.nl-note { font-size: .8rem; color: #8b8f98; margin-top: 16px; }
.nl-note a { color: #c9cbd1; }

/* ---------- Page (über/legal) ---------- */
.page-body { padding: 30px 0 20px; }
.page-body h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.page-body h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }
.page-body p { margin: 0 0 1.15em; color: var(--ink-soft); }
.page-body ul { color: var(--ink-soft); }
.page-body img { border-radius: 10px; margin: 1.4em 0; }
.page-body a { text-decoration: underline; }

/* ---------- Back link ---------- */
.backrow { padding: 10px 0 60px; }
.backlink { font-size: .95rem; font-weight: 500; }
.backlink::before { content: "\2190  "; }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.foot-brand span { color: var(--accent); }
.foot-tagline { color: var(--muted); font-size: .92rem; margin-top: 8px; max-width: 34ch; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.foot-col a { display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: 8px; }
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav .navlink { display: none; }
  .hero { padding: 48px 0 16px; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-meta { display: none; }
  .newsletter { padding: 36px 24px; }
  .foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* focus visibility */
a:focus-visible, .btn:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
