/* RTH Immobilien only. The Tita's Guesthouse site never loads this file.
   Part 1 is loaded by base.njk after site.css when site.brand is "rth": it carries the family look of the home pages
   to every other RTH page (same header, calmer and larger headings, a clear answer to the mouse on every link and
   button). The dark colors for RTH (white buttons, brass links, never blue buttons) are already in site.css.
   Part 2 is for the RTH home page (rth-home.njk), which uses home.css, the style file of the Tita's home page,
   and adds only what is RTH's own. */

/* ---------- Part 1: every RTH page that uses base.njk ---------- */

.brand-rth { --radius: 18px; }

/* Header: the same bar as the home page once it has scrolled. Stays in view on desktop, scrolls away on phones. */
.brand-rth .top { border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(26, 23, 59, .35); }
.brand-rth .top .wrap { max-width: 1240px; }
.brand-rth .top-row { min-height: 76px; padding-top: 6px; padding-bottom: 6px; }
.brand-rth .logo { transition: opacity .15s ease; }
.brand-rth .logo:hover { opacity: .72; }
.brand-rth .logo img { height: 60px; width: auto; }
.brand-rth #mainnav { gap: 6px 26px; }
@media (min-width: 901px) { .brand-rth #mainnav { margin-left: auto; } }
.brand-rth #mainnav a { font-weight: 600; font-size: 1.0625rem; }
.brand-rth #mainnav a.btn { padding: 11px 20px; }
@media (max-width: 900px) {
  .brand-rth .top { position: static; box-shadow: none; border-bottom: 1px solid var(--line); }
  .brand-rth .top-row { min-height: 82px; }
  .brand-rth .logo img { height: 64px; }
  .brand-rth #mainnav a { font-size: 1.15rem; }
}

/* Headings: the home page's scale and spacing. */
.brand-rth h1 { font-size: clamp(2.35rem, 1.2rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
/* Long German words (Datenschutzerklärung) break with a hyphen on narrow phones instead of running off the screen. */
.brand-rth h1, .brand-rth h2 { hyphens: auto; overflow-wrap: break-word; }
.brand-rth h2 { letter-spacing: -0.03em; text-wrap: balance; }
.brand-rth .foot h3 { letter-spacing: -0.01em; }
.brand-rth .lead { font-size: 1.25rem; line-height: 1.5; }

/* Every link and button answers the mouse. */
.brand-rth a { text-underline-offset: .2em; transition: color .15s ease, background-color .15s ease; }
.brand-rth main a:not(.btn):not(:has(img)):hover { background: color-mix(in srgb, var(--accent-dark) 14%, transparent); border-radius: 4px; text-decoration-thickness: 2px; }
.brand-rth .foot a:hover { color: #e8c27a; text-decoration-thickness: 2px; }
.brand-rth .btn { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.brand-rth .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(26, 23, 59, .5); }
.brand-rth .menu-btn:hover { background: var(--ink); color: var(--paper); }
.brand-rth :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand-rth ::selection { background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .brand-rth a, .brand-rth .btn, .brand-rth .logo { transition: none; }
  .brand-rth .btn:hover { transform: none; }
}

/* Owner and rental pages (front matter pageClass: r-page): a photo beside the opening, brass ticks, numbered steps,
   the two packages side by side, and the rent check as a closing band. The words stay as they are in the .md files. */
.r-page .page .prose { max-width: none; }
.r-page .prose > p, .r-page .prose > h2, .r-page .prose > h3, .r-page .prose > .person-card, .r-page .prose > .owner-quotes, .r-page .prose > article { max-width: 68ch; }
.r-page .prose > h2 { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; }
.r-page .prose > p { font-size: 1.0625rem; }
.r-intro { display: grid; gap: 32px; align-items: center; }
.r-intro > div > p { font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; }
.r-intro > div > :last-child { margin-bottom: 0; }
.r-intro-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%; border-radius: 18px; }
@media (min-width: 901px) {
  .r-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 88px); }
  .r-intro-photo img { aspect-ratio: 4 / 5; }
}
/* Lists as brass ticks; long lists run in two columns on wide screens. */
.r-page .prose > ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px 48px; }
.r-page .prose > ul > li { position: relative; margin: 0; padding-left: 34px; line-height: 1.5; }
.r-page .prose > ul > li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; background: #c4913a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 901px) { .r-page .prose > ul:has(> li:nth-child(5)) { grid-template-columns: 1fr 1fr; } }
/* The two packages: cards side by side, no tick. */
.r-page .prose > ul:has(> li > strong:first-child) { gap: 16px; }
.r-page .prose > ul:has(> li > strong:first-child) > li { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.r-page .prose > ul:has(> li > strong:first-child) > li::before { content: none; }
.r-page .prose > ul:has(> li > strong:first-child) > li > strong:first-child { display: block; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 6px; }
@media (min-width: 901px) { .r-page .prose > ul:has(> li > strong:first-child) { grid-template-columns: 1fr 1fr; max-width: 980px; } }
/* The steps: large numbers, four across on wide screens. */
.r-page .prose > ol { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; display: grid; gap: 28px 36px; }
.r-page .prose > ol > li { counter-increment: step; margin: 0; line-height: 1.5; }
.r-page .prose > ol > li::before { content: counter(step); display: block; font-weight: 700; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.045em; color: var(--ink); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.r-page .prose > ol > li > strong:first-child { display: block; font-size: 1.1875rem; margin-bottom: 4px; }
@media (min-width: 641px) { .r-page .prose > ol { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1041px) { .r-page .prose > ol { grid-template-columns: repeat(4, 1fr); } }
/* Ruben's own words (English owner page). */
.r-word { margin: 40px 0 0; padding: clamp(24px, 4vw, 44px); background: var(--tint); border-radius: 18px; max-width: 980px; }
.r-word h3 { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: -0.02em; }
.r-word p { font-size: 1.125rem; line-height: 1.65; max-width: 70ch; }
.r-word p:last-child { margin-bottom: 0; }
/* The rent check: closing band in the facade lavender. */
.r-band { margin: clamp(56px, 7vw, 88px) 0 0; padding: clamp(28px, 5vw, 64px); background: var(--tint); border-radius: 24px; }
.r-band h2 { margin: 0 0 14px; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; scroll-margin-top: 110px; }
.r-band p { font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; }
.r-band p:last-child { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: none; }

/* Text size and spacing on the RTH text pages (Ruben: large text). */
.brand-rth .prose { font-size: 1.0625rem; }
.r-page .prose > ul + p, .r-page .prose > ol + p { margin-top: 26px; }

/* Buttons in a text paragraph keep a gap when they wrap onto a second line. */
.brand-rth .prose p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Part 2: the RTH home page ---------- */

/* Language flag in the header menu. */
.r-home .a-nav .lang { display: inline-flex; align-items: center; }
.r-home .a-nav .lang svg { width: 28px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .16); }
@media (min-width: 900px) { .r-home .a-nav a.lang { padding: 8px 0; border-bottom: 0; } .r-home .a-nav a.lang:hover svg { box-shadow: 0 0 0 2px currentColor; } }

/* First screen: two buttons with longer German labels may sit on two lines on a phone. */
.r-home .a-stage .a-actions { flex-wrap: wrap; }
.r-home .a-facts a { color: inherit; }

/* The three audiences use the alternating rows of the Tita's home page. */
.r-door .r-photo-face img { object-position: 50% 18%; }
.r-row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.r-row-actions .d-apt-cta { margin-top: 0; }
.r-sister { height: 60px; width: auto; margin: 0 0 14px; }
.r-sister.only-light { display: var(--show-light); }
.r-sister.only-dark { display: var(--show-dark); }

/* Ruben and Tita: two portraits beside their story. */
.r-people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); margin: 0; }
.r-people figure { margin: 0; }
.r-people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: 18px; filter: var(--photo-filter); }
.r-people figcaption { margin-top: 12px; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.r-people figcaption strong { display: block; color: var(--navy); font-weight: 600; font-size: 1.0625rem; }
.r-home .a-family-text p:first-of-type { font-weight: 600; color: var(--navy); }

/* Numbers and the owner promise, in the lavender band. */
.r-claim h2 { font-size: clamp(1.9rem, 1rem + 2.9vw, 3.3rem); line-height: 1.1; max-width: 18ch; }
.r-claim p { margin: 22px 0 28px; font-size: 1.25rem; line-height: 1.55; max-width: 42ch; }
@media (min-width: 1040px) { .r-claim { display: flex; flex-direction: column; align-items: flex-start; } .r-claim .a-btn { margin-top: auto; } }

/* The license, on navy. */
.r-license .a-boris-grid { align-items: start; }
.r-license h2 { max-width: 12ch; }
.r-license .a-boris-grid p { margin: 0 0 16px; font-size: 1.1875rem; line-height: 1.6; }
.r-license .r-license-more { margin-top: 28px; }
.r-license a.a-btn-quiet, .r-license a.a-btn-quiet:hover { color: #1a173b; text-decoration: none; }

/* Closing line: wider than the guesthouse's, the German sentence is longer. */
.r-home .a-plan h2 { max-width: 15ch; }
.r-home .a-plan .a-actions { flex-wrap: wrap; gap: 10px; }
