/* Haus Tabea – Stylesheet */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --surface-2: #efe9df;
  --ink: #2a2723;
  --ink-soft: #5d5750;
  --line: #e2dbcf;
  --accent: #1d2a5c;        /* Blau aus dem Logo */
  --accent-ink: #ffffff;
  --accent-soft: #e6e9f3;
  --warm: #8c1d2b;          /* Weinrot aus dem Logo */
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42,39,35,.05), 0 8px 30px rgba(42,39,35,.07);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; font-variation-settings: "SOFT" 50, "opsz" 24; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); margin: 0 0 .9rem; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 60px; height: 60px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 550; }
.brand-sub { font-size: .74rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink) !important; text-decoration: none;
  font-family: inherit; font-weight: 600; font-size: 1.02rem; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #2a3a78; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn { padding: 9px 18px; font-size: .96rem; }

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; color: var(--ink);
  }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.1rem; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.verse {
  margin: 30px 0 0; padding: 0 0 0 20px; border-left: 3px solid var(--warm); max-width: 50ch;
  font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink-soft); line-height: 1.5;
}
.verse cite { display: block; margin-top: 6px; font-family: var(--sans); font-style: normal; font-size: .9rem; letter-spacing: .04em; }
.hero-media { position: relative; }
.hero-media picture img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px 28px 28px 120px; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -24px; bottom: 36px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .98rem; line-height: 1.3;
}
.hero-badge img { width: 48px; height: 48px; }
.hero-badge strong { display: block; font-family: var(--serif); font-weight: 550; font-size: 1.1rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media picture img { aspect-ratio: 4/3; border-radius: 22px 22px 22px 80px; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* Fakten */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.fact { padding: clamp(16px, 4vw, 26px); border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.fact span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 340px) { .facts { grid-template-columns: 1fr; } .fact { border-left: 0; } .fact + .fact { border-top: 1px solid var(--line); } }

/* Abschnitte */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.two-col .prose p { color: var(--ink-soft); }
.two-col .prose p:first-child { color: var(--ink); font-size: 1.2rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--bg); border-color: transparent; }
.card .num { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.card p { color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.note { margin-top: 28px; background: var(--accent-soft); border-radius: var(--radius); padding: 24px 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.note svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.note h3 { margin-bottom: .3em; }
.note p { margin: 0 0 .5em; }
.note p:last-child { margin: 0; }

/* Ziele */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 40px; }
.pillar { background: var(--bg); border-radius: var(--radius); padding: 28px; }
.pillar h3 { color: var(--accent); }
.pillar p { color: var(--ink-soft); margin: 0 0 .7em; }
.pillar p:last-child { margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checklist li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a5c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* Aufenthalt */
.stay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stay .card h3 { display: flex; align-items: center; gap: 12px; }
.stay .card svg { width: 26px; height: 26px; color: var(--warm); flex: none; }
@media (max-width: 900px) { .stay { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 14px; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a span { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.gallery a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery a:nth-child(2) { grid-column: span 2; }
.gallery a:nth-child(3) { grid-column: span 2; }
.gallery a:nth-child(4), .gallery a:nth-child(5), .gallery a:nth-child(6) { grid-column: span 2; }
.gallery a:nth-child(7), .gallery a:nth-child(8), .gallery a:nth-child(9) { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .gallery a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.house-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.house-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 1rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); }
.lightbox img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #eee; text-align: center; margin-top: 12px; font-size: 1rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Arbeitsweise */
.work .card h3 { color: var(--accent); }

/* Kontakt */
.contact { background: var(--accent); color: #fff; }
.contact h2, .contact .eyebrow { color: #fff; }
.contact .eyebrow { opacity: .8; }
.contact .lead { color: rgba(255,255,255,.85); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.contact-list .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .85rem; opacity: .75; letter-spacing: .04em; }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.contact-card h3 { margin-bottom: .4em; }
.contact-card p { color: var(--ink-soft); }
.contact-card .btn { margin-top: 6px; }
.bank { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 10px 0 0; font-size: 1rem; }
.bank dt { color: var(--ink-soft); }
.bank dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #151d40; color: #cfc8bd; padding: 48px 0 40px; font-size: 1rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { width: 56px; height: 56px; }
.site-footer .brand-sub { color: #a9a196; }

/* Rechtstexte */
.legal { padding: clamp(48px, 7vw, 88px) 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink); margin-bottom: 1em; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.todo { background: #fff4d6; border: 1px dashed #c9a43a; padding: 2px 6px; border-radius: 4px; color: #6b5413; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Kontaktformular */
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form label { font-weight: 600; font-size: .98rem; }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.form [aria-invalid=true] { border-color: #b4412f !important; }
.form .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-weight: 400; font-size: .95rem; color: var(--ink-soft); align-items: start; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b4412f; }
.contact-extra { margin-top: 32px; display: grid; gap: 24px; }
.contact-extra .btn.light { background: #fff; color: var(--accent) !important; justify-self: start; }
.contact-extra .btn.light:hover { background: var(--accent-soft); }
.contact .bank { border-top: 1px solid rgba(255,255,255,.2); margin: 0; padding-top: 22px; }
.contact .bank h3 { font-size: 1.1rem; margin: 0; color: #fff; }
.contact .bank dt { color: rgba(255,255,255,.7); }
.contact .bank dd { color: #fff; }
.subhead { font-size: 1.6rem; }
.contact-list .plain { font-weight: 600; font-size: 1.15rem; }
.about-logo { width: min(260px, 60%); height: auto; margin-top: 28px; }
@media (max-width: 900px) { .about-logo { display: none; } }
