/* Shared look for both RTH Gruppe sites. Each brand only swaps the accent colors.
   Fonts are served from /assets/fonts (nothing loads from Google, so no cookie banner). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }

:root {
  --ink: #1f2a24;
  --muted: #5d6a63;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e6e0d6;
  --tint: #f1ebe1;
  --accent: #b8562e;        /* Tita's Guesthouse: warm terracotta */
  --accent-dark: #93421f;
  --accent-ink: #ffffff;
  --deep: #22352c;          /* footer and dark panels: pine green */
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --top: rgba(250,247,242,.92);
  --field: #ffffff;
  --field-line: #cfc7ba;
  --cal-free: #dcefe3; --cal-free-ink: #1f5a39;
  --cal-maybe: #fbe7c3; --cal-maybe-ink: #7a4f0a;
  --cal-booked: #f3d4cf; --cal-booked-ink: #8a2a1e;
  --cal-past: #c2bdb4;
  --show-light: block; --show-dark: none;
  color-scheme: light;
}
/* Dark theme: follows the device setting, or the button in the header (stored in the browser). */


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece7de; --muted: #a9b3ac; --paper: #171d1a; --card: #1f2722; --line: #303b35; --tint: #1b2420;
    --accent: #c9683f; --accent-dark: #e8a07a; --top: rgba(23,29,26,.92);
    --field: #242d27; --field-line: #46524b;
    --cal-free: #1f4a33; --cal-free-ink: #bfe6cc; --cal-maybe: #5a3f0e; --cal-maybe-ink: #f6d99a; --cal-booked: #5a241c; --cal-booked-ink: #f3c0b6; --cal-past: #4a544e;
    --show-light: none; --show-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #ece7de; --muted: #a9b3ac; --paper: #171d1a; --card: #1f2722; --line: #303b35; --tint: #1b2420;
  --accent: #c9683f; --accent-dark: #e8a07a; --top: rgba(23,29,26,.92);
  --field: #242d27; --field-line: #46524b;
  --cal-free: #1f4a33; --cal-free-ink: #bfe6cc; --cal-maybe: #5a3f0e; --cal-maybe-ink: #f6d99a; --cal-booked: #5a241c; --cal-booked-ink: #f3c0b6; --cal-past: #4a544e;
  --show-light: none; --show-dark: block; color-scheme: dark;
}
.only-light { display: var(--show-light); }
.only-dark { display: var(--show-dark); }
.brand-rth { --accent: #1f3a5f; --accent-dark: #152a46; --deep: #15202e; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--top); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.top-tools { order: 3; }
nav { order: 2; }
@media (max-width: 760px) { nav { order: 3; } .top-tools { order: 2; } }
.logo { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.logo img { height: 92px; width: auto; }
.foot-logo { height: 120px; width: auto; margin-bottom: 12px; }
.logo small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"], nav a:hover { border-color: var(--accent); }
nav a.btn { border: 0; padding: 9px 16px; }

.menu-btn { display: none; font: inherit; font-weight: 600; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px 8px 12px; cursor: pointer; color: var(--ink); align-items: center; gap: 8px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: var(--show-dark); }
.theme-btn .moon { display: var(--show-light); }
.top-tools { display: flex; align-items: center; gap: 10px; }
.menu-btn span { width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; display: inline-block; }
.social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.social a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; }
.social svg { width: 20px; height: 20px; }
.toc ol { columns: 2; column-gap: 32px; padding-left: 1.3em; font-size: .95rem; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); list-style: none; padding: 0; margin: 32px 0 0; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stats b { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; color: var(--accent-dark); }
.stats span { font-size: .9rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: #fff; color: #1f2a24; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* Sections */
main { padding-bottom: 0; }
.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.section.deep { background: var(--deep); color: #f4efe6; }
.section.deep h2, .section.deep .eyebrow { color: #f4efe6; }
.section.deep a { color: #fff; }
.section.deep .btn.light { color: #1f2a24; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.page { padding: 48px 0 64px; }
.page .prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Hero */
.hero { position: relative; min-height: 78vh; display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,28,24,.82) 0%, rgba(20,28,24,.35) 55%, rgba(20,28,24,.1) 100%); }
.hero .wrap { padding-top: 120px; padding-bottom: 56px; }
.hero h1 { max-width: 16ch; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .lead { color: #f1ece4; max-width: 52ch; font-size: 1.15rem; }
.hero .eyebrow { color: #f6d9c8; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .95rem; color: #efe9df; }
.trust li::before { content: "✓ "; color: #f6b58c; }

/* Cards */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin: 28px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,42,36,.10); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .meta { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--tint); border-radius: 999px; padding: 4px 11px; font-size: .82rem; font-weight: 500; }

/* Steps and features */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.split { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }
.split img { border-radius: var(--radius); }

/* Reviews */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
blockquote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-family: var(--display); font-size: 1.1rem; line-height: 1.5; }
blockquote p { margin: 0 0 12px; }
blockquote footer { font-family: var(--font); font-size: .9rem; color: var(--muted); }
blockquote footer .src { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--tint); font-size: .78rem; font-weight: 600; color: var(--ink); }
.note { background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; color: var(--muted); font-size: .95rem; }

/* Apartment page */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; margin: 20px 0 32px; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .more { display: grid; place-items: center; background: var(--tint); color: var(--ink); font-weight: 600; text-decoration: none; }
.gallery-all { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 20px 0 0; }
.gallery-all figure { margin: 0; }
.gallery-all img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-all figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.features { columns: 2; column-gap: 32px; padding-left: 1.2em; }
.features li { break-inside: avoid; margin-bottom: 6px; }
.apt-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; }
.aside { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside h2 { font-size: 1.4rem; }

/* Availability calendar */
.avail { font-size: .9rem; font-weight: 600; margin: 0; }
.avail::before { content: "●"; margin-right: 6px; }
.avail.free::before { color: #2f8f5b; }
.avail.maybe::before { color: #d9962b; }
.avail.booked::before { color: #c0392b; }
.cal { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 16px 0; }
.cal-month h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-size: .82rem; font-weight: 500; }
.cal-day.free { background: var(--cal-free); color: var(--cal-free-ink); }
.cal-day.maybe { background: var(--cal-maybe); color: var(--cal-maybe-ink); }
.cal-day.booked { background: var(--cal-booked); color: var(--cal-booked-ink); text-decoration: line-through; }
.cal-day.past { color: var(--cal-past); }
.cal-legend { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.cal-legend .cal-day { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; aspect-ratio: auto; }

/* Forms */
form { display: grid; gap: 14px; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 5px; font-weight: 500; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--muted); }

/* Contact block */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-grid .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-grid .tile b { display: block; margin-bottom: 4px; }

/* Footer */
.foot { background: var(--deep); color: #d9d2c5; font-size: .95rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 48px 0 32px; }
.foot h3 { color: #fff; font-size: 1.05rem; font-family: var(--font); font-weight: 600; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.foot-row a { margin-right: 14px; }

@media (max-width: 760px) {
  .top { position: static; }
  .top-row { padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 72px; }
  .menu-btn { display: inline-flex; }
  nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 0 10px; }
  nav.open { display: flex; }
  nav a { padding: 8px 0; font-size: 1.05rem; }
  nav a.btn { margin-top: 6px; }
  .toc ol { columns: 1; }
  nav { gap: 2px 14px; font-size: .95rem; }
  nav a.btn { padding: 7px 14px; }
  .hero { min-height: 70vh; }
  .hero .wrap { padding-top: 80px; padding-bottom: 36px; }
  .section { padding: 44px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery a:nth-child(n+5) { display: none; }
  .gallery .more { display: grid; }
  .features { columns: 1; }
  .apt-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .two { grid-template-columns: 1fr; }
}

/* Anchor targets stop below the sticky header */
[id] { scroll-margin-top: 120px; }

/* Language flags */
.flags { display: inline-flex; gap: 8px; align-items: center; vertical-align: middle; }
.flags svg { width: 24px; height: 17px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* Homepage calendar */
.home-cal { margin: 28px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.cal-head h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; margin: 0; min-width: 11ch; text-align: center; }
.cal-nav { font: inherit; font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-row { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.cal-row h4 { font-family: var(--font); font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.home-cal .cal-grid { grid-template-rows: auto repeat(6, 1fr); }
.cal-legend.home { margin: 14px 0 0; font-size: .85rem; }

/* How it works: text above, steps below */
.steps { margin-top: 28px; }

/* Long reviews */
blockquote.long p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
blockquote.long.open p { display: block; }
blockquote .more { font: inherit; font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--accent-dark); background: none; border: 0; padding: 0; margin: 0 0 12px; cursor: pointer; text-decoration: underline; }

/* Calendar inside an apartment card */
.card .home-cal { position: relative; z-index: 1; margin: 14px 0 0; padding: 12px 12px 10px; background: var(--tint); border: 0; }
.card .cal-head { margin-bottom: 8px; }
.card .cal-head h3 { font-size: .95rem; }
.card .cal-nav { width: 30px; height: 30px; font-size: 1.2rem; }
.card .cal-row { grid-template-columns: 1fr; }
.card .cal-row h4 { display: none; }
.card .cal-day { font-size: .78rem; }

@media (max-width: 760px) {
  [id] { scroll-margin-top: 16px; }
  .cal-row { grid-template-columns: 1fr; }
}

/* Homepage card photo slider */
.slides { position: relative; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(250,247,242,.9); color: #1f2a24; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-count { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(20,28,24,.7); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
