/* altbau.com — editorial stylesheet */
:root {
  --ink: #17140f;
  --paper: #f7f4ee;
  --card: #fffdf9;
  --accent: #a2491f;
  --accent-dark: #7c3717;
  --muted: #6e665b;
  --line: #e3dcd0;
  --gold: #b28a2f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); background: var(--paper); color: var(--ink); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,244,238,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 18px; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.lang-toggle { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-family: var(--sans); }
.lang-toggle button { border: 0; background: transparent; padding: 5px 13px; cursor: pointer; font-size: 0.82rem; font-weight: 700; }
.lang-toggle button.active { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,8,.82) 0%, rgba(15,12,8,.25) 55%, rgba(15,12,8,.15) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 80px 0 64px; max-width: 780px; }
.kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: 4px; font-size: 0.75rem; font-weight: 700; color: #e8c98a; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.1; }
.hero p.lede { margin-top: 18px; font-size: 1.18rem; color: #efe9de; max-width: 620px; }
.cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 3px; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; transition: all .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1.5px solid currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 64px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 36px; border-bottom: 3px double var(--ink); padding-bottom: 14px; }
h2.section-title { font-size: 1.9rem; }
.sec-head a { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }
.featured figure { position: relative; border-radius: 8px; overflow: hidden; }
.featured img { height: 100%; object-fit: cover; min-height: 340px; width: 100%; transition: transform .4s; }
.featured figure:hover img { transform: scale(1.03); }
.featured .ph-label {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 14px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.featured .side { display: flex; flex-direction: column; gap: 16px; }

/* Featured main card: full-height image with overlay */
.featured .featured-main { position: relative; overflow: hidden; border-radius: 8px; }
.featured .featured-main img {
  width: 100%; height: 100%; min-height: 400px;
  object-fit: cover; display: block; transition: transform .4s;
}
.featured .featured-main:hover img { transform: scale(1.03); }
.featured .featured-main .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.15) 55%, transparent);
  padding: 26px; color: #fff;
}
.featured .featured-main .overlay .cat { color: #e8c98a; }
.featured .featured-main .overlay h3 { font-size: 1.7rem; margin-top: 6px; line-height: 1.25; }
.featured .featured-main .overlay h3:hover { color: #e8c98a; }
.featured .featured-main:hover h3 { color: #e8c98a; }
@media (max-width: 800px) { .featured .featured-main img { min-height: 280px; } }
.mini {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px; text-decoration: none; color: var(--ink); align-items: center;
}
.mini img { width: 96px; height: 76px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.mini h3 { font-size: 1rem; line-height: 1.35; }
.mini .cat { font-family: var(--sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; }
.mini:hover h3 { color: var(--accent); }

/* Article grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card img { height: 190px; object-fit: cover; width: 100%; }
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card .cat { font-family: var(--sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .more { font-family: var(--sans); font-weight: 600; font-size: 0.88rem; margin-top: 16px; }
.card:hover h3 { color: var(--accent); }

/* Calculator */
#rechner { background: #ede7db; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 36px; max-width: 780px; margin: 0 auto; box-shadow: 0 14px 40px rgba(0,0,0,.07); font-family: var(--sans); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.field select, .field input { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 1rem; background: var(--paper); font-family: inherit; }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 6px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 400; cursor: pointer; }
.result { margin-top: 28px; padding: 26px; border-radius: 10px; background: var(--ink); color: var(--paper); text-align: center; }
.result .amount { font-size: 2.5rem; font-weight: 700; color: var(--gold); }
.result .range { color: #cfc8bd; font-size: 0.95rem; margin-top: 4px; }
.result .note { margin-top: 12px; font-size: 0.8rem; color: #a89f92; max-width: 540px; margin: 12px auto 0; }

/* Newsletter + about */
.newsletter { background: var(--ink); color: var(--paper); text-align: center; padding: 72px 0; }
.newsletter h2 { font-size: 2rem; }
.newsletter p { color: #cfc8bd; margin: 12px auto 28px; max-width: 520px; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter input { padding: 13px 16px; border-radius: 4px; border: none; min-width: 300px; font-size: 1rem; }
.newsletter button { padding: 13px 30px; background: var(--gold); border: none; border-radius: 4px; font-weight: 700; cursor: pointer; font-size: 1rem; }
.about-band { background: var(--card); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: center; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: 10px; object-fit: cover; height: 320px; width: 100%; }
.about-grid h2 { font-size: 1.8rem; margin-bottom: 14px; }
.about-grid p { color: var(--muted); margin-bottom: 12px; }

/* Article page */
article.page { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
article.page .cat { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--accent); font-weight: 700; }
article.page h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.18; margin: 12px 0 14px; }
.byline { font-family: var(--sans); color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
article.page figure.hero-img { margin: 0 0 34px; }
article.page figure.hero-img img { width: 100%; border-radius: 10px; max-height: 440px; object-fit: cover; }
article.page figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
article.page h2 { font-size: 1.5rem; margin: 36px 0 14px; }
article.page p { margin-bottom: 18px; font-size: 1.08rem; }
article.page ul, article.page ol { margin: 0 0 20px 24px; font-size: 1.05rem; }
article.page li { margin-bottom: 8px; }
.infobox { background: #f0ead f0; }
.callout { background: var(--card); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 26px 0; font-size: 1rem; }
.callout strong { display: block; font-family: var(--sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.78rem; color: var(--gold); margin-bottom: 6px; }
.cost-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; margin: 20px 0 28px; }
.cost-table th { text-align: left; border-bottom: 2px solid var(--ink); padding: 10px 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.cost-table td { border-bottom: 1px solid var(--line); padding: 12px; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; white-space: nowrap; }
.affiliate-note { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 36px; }

/* CTA band in article */
.article-cta { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 34px; margin: 40px 0; text-align: center; }
.article-cta h2 { font-size: 1.4rem; margin: 0 0 8px; color: var(--paper); }
.article-cta p { color: #cfc8bd; margin-bottom: 18px; }

/* Stats band */
.stats-band { background: var(--ink); color: var(--paper); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat .num { font-size: 2.3rem; font-weight: 700; color: var(--gold); }
.stat .lbl { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; color: #cfc8bd; margin-top: 4px; }

/* Glossary */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.glossary > div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.glossary dt { font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; color: var(--accent); }
.glossary dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Footer */
footer.site { border-top: 3px double var(--ink); background: var(--paper); padding: 44px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 { font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--muted); text-decoration: none; font-family: var(--sans); font-size: 0.92rem; }
footer.site a:hover { color: var(--accent); }
footer .foot-mail { font-size: 1.1rem; color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-family: var(--sans); font-size: 0.82rem; }
