/* XK-Schlüsseldienst Berlin — main stylesheet.
   Hand-written replacement for the Divi styles: same colours, type scale and section rhythm as
   the original, no framework, no build step. Breakpoints: 980px (tablet), 767px (phone). */

:root {
  --color-dark: #1e232b;          /* header + footer */
  --color-text: #333;
  --color-heading-strong: #000;
  --color-bg: #fff;
  --color-bg-grey: #eee;         /* section backgrounds, as set per section in the original */
  --color-bg-sand: #e5e3e0;
  --color-bg-stone: #e5e1df;
  --color-bg-light: #f3f3f3;
  --color-accent: #cab6a1;        /* sand / gold */
  --color-accent-light: #e0dad2;
  --color-cta: #3b5372;           /* call-to-action blue */
  --color-cta-hover: #496693;     /* hover colour of the call boxes in the original */
  --color-on-dark: #f3f3f3;
  --color-tile-1: rgba(73, 81, 100, 0.9);
  --color-tile-2: rgba(202, 182, 161, 0.9);
  --color-tile-3: rgba(153, 148, 132, 0.9);
  --color-tile-ink: rgba(28, 36, 43, 0.78);

  /* The original declares Open Sans but never loads it, so it renders in Arial. Same stack here,
     no web font request. */
  --font-body: "Open Sans", Arial, sans-serif;

  --space-section: 54px;
  --space-row: 27px;
  --space-module: 30px;
  --gutter: 5.5%;
  --content-width: 1080px;
  --radius: 7px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; padding-bottom: 10px; font-weight: 700; line-height: 1.4; color: var(--color-text); }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
ul, ol { margin: 0; padding: 0 0 23px 1em; }
strong { font-weight: 700; }

.text-center { text-align: center; }
.text-justify { text-align: justify; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-dark); color: #fff; }
.header-bar--desktop { display: flex; align-items: center; gap: 40px var(--gutter); padding: 14px 70px 14px 42px; }
.header-bar--mobile { display: none; }
.header-logo { flex: 0 0 auto; }
.header-logo img { height: 50px; width: auto; }
.header-phone { flex: 1 1 auto; padding: 0; font-size: 28px; line-height: 0.85; letter-spacing: 1px; text-align: center; color: var(--color-accent-light); }
.header-phone a { font-style: italic; color: var(--color-accent); text-decoration: underline; }

.lang-switch__link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 5px; background: rgba(255, 255, 255, 0.7); color: #000; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap; }
.lang-switch__link img { width: 18px; height: 14px; border-radius: 2px; }

.main-nav__list, .main-nav__sub { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #fff; text-decoration: none; }
.header-bar--desktop .main-nav { flex: 0 0 auto; margin-left: auto; }
.header-bar--desktop .main-nav__list { display: flex; align-items: center; }
.header-bar--desktop .main-nav__list > li { position: relative; padding: 8px 11px; font-size: 14px; line-height: 1; }
.header-bar--desktop .main-nav__list > li > a:hover { opacity: 0.7; }
.has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.header-bar--desktop .main-nav__sub { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; padding: 20px 0; background: var(--color-dark); border-top: 3px solid var(--color-accent); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); visibility: hidden; opacity: 0; transition: opacity 0.2s; }
.header-bar--desktop .has-children:hover > .main-nav__sub,
.header-bar--desktop .has-children:focus-within > .main-nav__sub { visibility: visible; opacity: 1; }
.header-bar--desktop .main-nav__sub li { padding: 0 20px; }
.header-bar--desktop .main-nav__sub a { display: block; padding: 6px 20px; line-height: 28px; }
.header-bar--desktop .main-nav__sub a:hover { background: rgba(255, 255, 255, 0.06); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 3px; border-radius: 1px; background: #2ea3f2; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

@media (max-width: 980px) {
  .header-bar--desktop { display: none; }
  .header-bar--mobile { display: block; padding: 12px 14px 14px; }
  .header-bar__row { display: flex; align-items: center; justify-content: space-between; }
  .header-phone { margin-top: 12px; font-size: 18px; line-height: 1.3; }
  .header-phone a { text-decoration: none; }
  .header-bar--mobile .main-nav { display: none; margin-top: 12px; padding: 5% ; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); max-height: 70vh; overflow-y: auto; }
  .header-bar--mobile .main-nav.is-open { display: block; }
  .header-bar--mobile .main-nav a { display: block; padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, 0.03); color: #666; font-size: 14px; font-weight: 600; }
  .header-bar--mobile .main-nav__sub a { padding-left: 10%; }
  .header-bar--mobile .has-children > a { background: rgba(0, 0, 0, 0.03); font-weight: 700; }
  .header-bar--mobile .has-children > a::after { display: none; }
}

/* ---------- layout: section > row > col ---------- */
.section { position: relative; padding: var(--space-section) 0; background: var(--color-bg); }
.section--grey { background: var(--color-bg-grey); }
.section--sand { background: var(--color-bg-sand); }
.section--stone { background: var(--color-bg-stone); }
.section--light { background: var(--color-bg-light); }

.row { width: 80%; max-width: var(--content-width); margin: 0 auto; padding: var(--space-row) 0; }
.row[class*="row--"] { display: grid; gap: 30px var(--gutter); }
.row--1-1 { grid-template-columns: 1fr 1fr; }
.row--1-1-1 { grid-template-columns: repeat(3, 1fr); }
.row--1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
.row--3-2 { grid-template-columns: 3fr 2fr; }
.row--2-3 { grid-template-columns: 2fr 3fr; }
.row--1-2 { grid-template-columns: 1fr 2fr; }
.row--2-1 { grid-template-columns: 2fr 1fr; }
.row--3-1 { grid-template-columns: 3fr 1fr; }
.row--1-3 { grid-template-columns: 1fr 3fr; }
.col { min-width: 0; }

/* vertical rhythm between the blocks of a row / column */
.row > * + *, .col > * + * { margin-top: var(--space-module); }
.row[class*="row--"] > * + * { margin-top: 0; }

/* ---------- typography in content ---------- */
main h1 { font-size: 34px; }
main h2 { font-size: 34px; }
main h3 { font-size: 24px; color: var(--color-heading-strong); text-align: center; }
main h4 { font-size: 24px; text-align: center; }
main h5 { font-size: 24px; text-align: center; }
main p, main li { font-size: 18px; }
main p { line-height: 1.32; }
main li { line-height: 1.8; margin-top: 9px; }
main ul, main ol { padding-left: 50px; }
main a { color: var(--color-cta); font-weight: 600; }
/* iOS turns plain phone numbers into links (data detectors). They keep the look of the text
   around them instead of the link colour, which is unreadable on dark areas. */
a[x-apple-data-detectors] { color: inherit !important; font: inherit !important; text-decoration: none !important; }
/* headings that open a text block inside a column are smaller and left-aligned in the original */
.col .text > h4:first-child { font-size: 18px; text-align: left; }
main ol li { text-align: left; margin-bottom: 18px; }
.image img { margin: 0 auto; }

/* ---------- hero ---------- */
/* Background photo: set per page as --hero (WebP) and --hero-mobile. A few photos also come
   with a JPG (--hero-fallback, --hero-mobile-fallback) for browsers without WebP support. */
.hero, .blog-hero { --hero-img: var(--hero-fallback, var(--hero, none)); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero, .blog-hero { --hero-img: var(--hero, none); }
}
.hero {
  padding: 6vw 0 calc(18.3vw + 54px);
  overflow: hidden;
  color: #fff;
  background-color: #fff; /* like the original: without a photo the gradient fades to white */
  background-image: linear-gradient(70deg, rgb(40, 61, 75) 0%, rgba(128, 103, 79, 0.5) 100%), var(--hero-img);
  background-position: center;
  background-size: cover;
}
.hero .row { position: relative; z-index: 2; padding-bottom: 0; }
.hero h1 { padding-bottom: 10px; font-size: 50px; line-height: 1.4; color: #fff; }
.hero p { font-size: 24px; line-height: 1.05; color: rgba(255, 255, 255, 0.9); }
.hero .text p { padding-bottom: 24px; }
/* slanted bottom edge in the colour of the following section */
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14vw; pointer-events: none; z-index: 1; }
.hero::before { background: rgba(255, 255, 255, 0.3); clip-path: polygon(0 19%, 29% 0, 100% 68%, 73.5% 100%); }
.hero::after { background: var(--hero-edge, #fff); clip-path: polygon(0 19%, 73.5% 100%, 100% 68%, 100% 100%, 0 100%); }
.hero__mark { position: absolute; left: 0; right: 0; bottom: 5vw; z-index: 0; margin: 0; padding: 0; font-size: 15vw !important; font-weight: 700; line-height: 1 !important; text-align: center; text-transform: uppercase; color: rgba(255, 255, 255, 0.1) !important; transform: translateX(15%); pointer-events: none; user-select: none; }

/* ---------- call to action ---------- */
.cta { width: 50%; margin: 0 auto; padding: 14px; border-radius: var(--radius); background: var(--color-cta); color: var(--color-on-dark); text-align: center; }
.cta--right { width: 30%; margin-right: 0; }
.cta p { font-size: 18.2px; line-height: 1.3; color: var(--color-on-dark); }
.cta p:first-child { padding-bottom: 1em; }
.cta a { display: inline-block; color: var(--color-on-dark); text-decoration: none; }
.cta a:hover { text-decoration: underline; }
.cta { transition: background-color 0.3s ease; }
.cta:hover { background: var(--color-cta-hover); }

/* Whole box dials (the original's "et_clickable" modules): the phone link is stretched over the
   box, markup and text stay as they are. */
[data-call-box] { position: relative; cursor: pointer; }
[data-call-box] a[href^="tel:"]::after { content: ""; position: absolute; inset: 0; }
.cta a[href^="tel:"]::after { border-radius: var(--radius); }
/* keyboard focus is shown around the whole box */
[data-call-box] a[href^="tel:"]:focus-visible { outline: none; }
[data-call-box] a[href^="tel:"]:focus-visible::after { outline: 3px solid #fff; outline-offset: -3px; box-shadow: 0 0 0 3px var(--color-dark); }

/* Links on dark areas take the light text colour of their surroundings, not the dark link blue. */
.hero a:not(.btn), .post-head .col:last-child a, .price-tile a { color: inherit; }

.btn-wrap { padding: 0; text-align: center; }
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); background: var(--color-cta); color: var(--color-on-dark) !important; font-size: 18.2px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }

/* ---------- price tiles ---------- */
.price-tiles { align-items: stretch; }
.price-tile { padding: 60px 30px; text-align: center; background: var(--color-tile-1); color: var(--color-on-dark); }
.price-tile--2 { background: var(--color-tile-2); color: var(--color-text); }
.price-tile--3 { background: var(--color-tile-3); }
.price-tile > * + * { margin-top: 0; }
.price-tile__title, .price-tile__title > * { padding-bottom: 0; font-size: 25.2px; font-weight: 700; line-height: 1.5; text-transform: uppercase; text-align: center; color: inherit; }
.price-tile__title { margin-bottom: 10px; }
.price-tile .image { margin: 0 auto 24px; padding-top: 10px; width: 50%; }
.price-tile__price, .price-tile__price > p { padding-bottom: 0; font-size: 25.2px; line-height: 1; text-align: center; }
.price-tile__price--day, .price-tile__price--day > p { font-size: 37.8px; }
.price-tile__price { color: var(--color-accent); }
.price-tile--2 .price-tile__price { color: var(--color-tile-ink); }
.price-tile--3 .price-tile__price { color: var(--color-on-dark); }
.price-tile__note, .price-tile__note > p { padding-bottom: 0; font-size: 15.4px; line-height: 1.55; text-align: center; }
.price-tile__price--day + .price-tile__note, .price-tile__price--day + .price-tile__note > p { font-size: 18.2px; line-height: 1.3; }
.price-tile__note { margin-top: 8px; margin-bottom: 24px; }
.price-tile--1 .price-tile__note { color: var(--color-accent); }
.price-tile__text { margin-top: 30px; }
.price-tile__text, .price-tile__text p { font-size: 18.2px; line-height: 1.7; text-align: justify; color: inherit; }
.price-tile--1 .price-tile__text, .price-tile--3 .price-tile__text { color: #fff; }
.price-tile--2 .price-tile__text { color: #000; }
.price-tile--2 .price-tile__note { color: var(--color-tile-ink); }

/* ---------- district signs ---------- */
.district-grid { display: grid; gap: 0 var(--gutter); width: 80%; max-width: var(--content-width); margin: 0 auto; padding: var(--space-row) 0; }
.district-grid--desktop { grid-template-columns: repeat(4, 1fr); }
.district-grid--mobile { display: none; grid-template-columns: repeat(2, 1fr); }
.district-grid a { display: block; margin-bottom: 30px; }
.district-grid a:hover { opacity: 0.85; }
@media (max-width: 980px) {
  .district-grid--desktop { display: none; }
  .district-grid--mobile { display: grid; }
  .district-grid a { margin-bottom: 15px; }
}

/* ---------- contact page ---------- */
.page--contact .hero p { line-height: 1.3; }
.page--contact .hero p.text-center { width: 50%; margin-left: auto; margin-right: auto; font-size: 20px; }
.page--contact main h2 { font-size: 36px; font-weight: 500; line-height: 1; color: var(--color-cta); }
.page--contact .section:not(.hero) p { font-size: 20px; line-height: 1.3; color: rgba(0, 0, 0, 0.9); }
.page--contact .col > .text { padding-left: 10px; border-left: 2px solid #2c2a27; }
.page--contact main .text a { color: #2b79ee; font-weight: 500; }
.page--contact .btn { padding: 15px 30px; font-size: 22px; line-height: 1.7; color: rgba(255, 255, 255, 0.9) !important; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.3); }
.blurb { height: 100%; padding: 25px 10px; border: 2px solid #2c2a27; border-radius: 10px; background: #e5e1df; text-align: center; }
.blurb > * + * { margin-top: 0; }
.blurb__icon { display: block; width: 74px; margin: 0 auto 30px; }
.blurb h3 { font-size: 26px; font-weight: 500; font-style: italic; line-height: 1; color: var(--color-cta); }
.blurb h3 a { color: inherit; font-weight: inherit; text-decoration: none; }
.blurb p { text-align: center; }
/* contact details are links to their own target but keep the look of the text */
.blurb p a { color: inherit; font-weight: inherit; text-decoration: none; }
.blurb p a:hover, .blurb p a:focus-visible { text-decoration: underline; }
.page--contact .section:not(.hero) .blurb p { font-size: 18px; }

/* ---------- blog overview ---------- */
.blog-hero { padding: 90px 0; background-color: #222; background-image: linear-gradient(rgba(34, 34, 34, 0) 0%, rgb(34, 34, 34) 100%), var(--hero-img); background-position: center; background-size: cover; }
.blog-hero h1 { font-size: 60px; line-height: 1.2; text-transform: uppercase; color: #fff; }
.page--blog-index .section:not(.blog-hero) { background: #f8f8f8; }
.post-meta { padding-bottom: 6px; font-size: 14px !important; font-weight: 600; line-height: 1.8 !important; color: var(--color-cta); }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.row.post-list > * + * { margin-top: 0; }
.post-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid #eee; background: #fff; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.18); }
.post-card__title { padding-bottom: 20px; font-size: 22px !important; font-weight: 500; line-height: 1.2; text-align: left; }
.post-card__title a { color: var(--color-text); font-weight: inherit; text-decoration: none; }
.post-card__image { display: block; margin-bottom: 30px; }
.post-card__image img { width: 100%; aspect-ratio: 400 / 284; object-fit: cover; }
.post-card__excerpt { font-size: 14px !important; line-height: 1.8 !important; letter-spacing: 1px; text-align: justify; }
.more-link { align-self: flex-end; margin-top: auto; padding: 8px 15px; background: #eaeaea; color: #212121 !important; font-size: 14px; font-weight: 500 !important; line-height: 1.8; letter-spacing: 1px; text-decoration: none; }

/* ---------- blog post ---------- */
.post-head { padding: 100px 0; background: #f8f8f8; }
.post-head .row { display: flex; align-items: center; gap: 0; }
.post-head .col:first-child { flex: 0 0 60%; }
.post-head .col:last-child { position: relative; flex: 1 1 auto; margin-left: -100px; padding: 100px 30px; background: rgba(51, 51, 51, 0.95); color: #fff; }
.post-head h1 { font-size: 38px; font-weight: 600; line-height: 1.2; color: #fff; }
.post-head .post-meta { color: #fff; font-weight: 500; }
.post-content > * + * { margin-top: 0; }
.post-content h2 { font-size: 26px; font-weight: 600; line-height: 1.3; color: #000; }
.post-content h3 { text-align: left; font-size: 22px; }
.post-content p, .post-content li { font-size: 18px; line-height: 2; }
.post-content .btn-wrap { margin-top: 31px; text-align: left; }
.post-nav { display: flex; justify-content: space-between; margin-top: 30px; font-size: 14px; }
.post-nav a { text-decoration: none; }
.post-nav__next { margin-left: auto; }
.post-tags { margin-top: 30px; font-size: 14px !important; }
.sidebar { padding-left: 30px; }
.sidebar > * + * { margin-top: 0; }
.sidebar h2 { font-size: 20px; line-height: 1; text-align: left; }
.sidebar ul { list-style: none; padding: 0 0 51px; }
.sidebar li { margin: 0 0 8px; font-size: 16px; line-height: 1.8; }
.sidebar a { color: var(--color-text); font-weight: 500; text-decoration: none; }
.sidebar a:hover { color: var(--color-cta); }
.sidebar__social { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar__social li { margin: 0; }
.sidebar__social a { display: block; padding: 2px 12px; border-radius: 9999px; background: var(--color-cta); color: #fff; font-size: 13px; }

/* ---------- footer ---------- */
.reviews { padding: 14px 0; background: #fff; }
.reviews__inner { width: 80%; max-width: var(--content-width); margin: 0 auto; padding: var(--space-row) 0; }
.reviews__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.review { padding: 20px; border-radius: 12px; background: #f4f4f4; color: #000; text-align: left; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 600; line-height: 1; }
.review__avatar--1 { background: var(--color-cta); }
.review__avatar--2 { background: #8a7560; }
.review__avatar--3 { background: #495164; }
.review__who { flex: 1 1 auto; min-width: 0; }
.review__name { padding: 0; font-size: 15px; font-weight: 700; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__date { padding: 0; font-size: 12px; line-height: 1.4; color: #555; }
.review__logo { flex: 0 0 20px; align-self: flex-start; }
.review__stars { display: block; margin: 12px 0 10px; }
.review__text { padding: 0; font-size: 15px; line-height: 1.45; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0; padding: 24px 0 0; font-size: 15px; line-height: 1.4; color: #000; text-align: center; }
.reviews__all { margin: 0; padding: 8px 0 0; font-size: 15px; text-align: center; }
.reviews__all a { color: var(--color-cta); }
.footer-main { background: var(--color-dark); color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gutter); padding: 29px 29px 14px; }
.footer-nav p { padding: 0 0 0 14px; }
.footer-nav a { color: var(--color-accent); }
/* "Cookie-Einstellungen": a button that looks like the footer links */
.footer-nav__button { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 29px; }
.footer-copyright { padding: 0; }
.footer-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-social__link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 3px; color: #fff; }
.footer-social__link--whatsapp { background: #25d366; }
.footer-social__link--google { background: #dd4b39; }
.footer-social__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .row[class*="row--"] { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 20px; line-height: 1.3; }
  .cta, .cta--right { width: 80%; margin: 0 auto; }
  main h2 { font-size: 26px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-list { grid-template-columns: 1fr; }
  .post-head .row { display: block; }
  .post-head .col:last-child { margin: 0; padding: 30px; }
  .blog-hero h1 { font-size: 36px; }
  .sidebar { padding-left: 0; }
  .page--contact .hero p.text-center { width: auto; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 22px; line-height: 1.3; text-align: justify; }
  .hero p { font-size: 16px; line-height: 1.5; }
  .cta p { font-size: 16px; }
  main h2 { font-size: 19px; line-height: 1.4; }
  main h3, main h4, main h5 { font-size: 18px; }
  main p, main li { font-size: 14px; line-height: 1.7; }
  main ul, main ol { padding-left: 30px; }
  .price-tile__title, .price-tile__title > * { font-size: 15px; }
  .price-tile__price--day, .price-tile__price--day > p { font-size: 26px; }
  .price-tile__price, .price-tile__price > p { font-size: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .reviews__list { grid-template-columns: 1fr; }
  .post-head h1 { font-size: 24px; }
  .post-head { padding: 40px 0; }
  .page--contact .section:not(.hero) p { font-size: 16px; }
  .page--contact main h2 { font-size: 24px; }
}

/* ---------- small per-type refinements ---------- */
.post-card__title, .post-card__title a { font-weight: 700; }
.post-content .btn { border-radius: 9999px; background: #32373c; font-size: 18px; font-weight: 500; }
.sidebar a { color: #666; }

@media (max-width: 767px) {
  .row, .district-grid, .reviews__inner { width: 84%; }
  .hero { padding-bottom: calc(14vw + 30px); }
  .hero__mark { bottom: 2vw; }
  main p, main li { font-size: 16px; }
  .post-content p, .post-content li { font-size: 18px; line-height: 2; }
  .price-tile { padding: 40px 30px; }
}

/* ---------- accordion (native <details>) ---------- */
.accordion__item { border: 1px solid #d9d9d9; background: #f4f4f4; padding: 20px; }
.accordion__item + .accordion__item { margin-top: 0; border-top: 0; }
.accordion__item[open] { background: #fff; }
.accordion__item summary { position: relative; padding-right: 50px; cursor: pointer; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: #ccc; }
.accordion__item[open] summary::after { content: ""; }
.accordion__item summary > * { padding-bottom: 0; font-size: 18px; text-align: left; color: #666; }
.accordion__item[open] summary > * { color: var(--color-text); }
.accordion__body { padding-top: 20px; }

/* ---------- 404 ---------- */
.error-page .btn-wrap { padding-bottom: 0; }
.error-page .cta { margin-top: 30px; }

/* ---------- legal pages (imprint, privacy, image credits) ---------- */
.page--legal main h1 { font-size: 30px; font-weight: 500; line-height: 1; }
.page--legal main h2 { font-size: 26px; font-weight: 500; line-height: 1; }
.page--legal main h3 { font-size: 16px; text-align: left; color: var(--color-text); }
.page--legal main h4 { font-size: 14px; text-align: left; }
.page--legal main p, .page--legal main li { font-size: 14px; line-height: 1.7; }
.page--legal main p { padding-bottom: 14px; }
.page--legal main a { color: #2ea3f2; font-weight: 500; }
/* notice box at the top of the privacy policy */
.page--legal .row > p.text-center:only-child { padding: 14px 0; border-radius: 10px; background: #f9efcb; font-size: 16px; }
.page--legal .section > .row:first-child:has(> p.text-center:only-child) { padding-bottom: 0; }
@media (max-width: 767px) {
  .page--legal main h1 { font-size: 24px; }
  .page--legal main h2 { font-size: 20px; }
}

/* ---------- card columns (Friedrichshain, Treptow: "three steps") ---------- */
.col--card { padding: 2em 1em; background: #fff; box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3); }

/* ---------- phone refinements from the full screenshot pass ---------- */
@media (max-width: 767px) {
  .footer-nav { grid-template-columns: 1fr; gap: 27px; padding-bottom: 27px; }
  .blog-hero { padding: 54px 0; }
  .blog-hero h1 { font-size: 24px; }
  .page--contact main h2 { font-size: 30px; }
  .page--contact .btn { padding: 10px 20px; font-size: 16px; }
  .page--contact .hero p.text-center { width: 60%; font-size: 14px; }
}

/* ---------- tables in content (blog posts) ---------- */
main table { width: 100%; margin: 0 0 15px; border: 1px solid #000; border-collapse: collapse; text-align: left; }
main th, main td { padding: 0.5em; border: 1px solid #000; font-size: 16px; line-height: 1.7; }
main th { font-weight: 700; text-align: center; }

/* ---------- hero photo on phones (must stay after the rules above) ---------- */
@media (max-width: 767px) {
  .hero { --hero-img: var(--hero-mobile-fallback, var(--hero-mobile, var(--hero-fallback, var(--hero, none)))); }
  @supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .hero { --hero-img: var(--hero-mobile, var(--hero, none)); }
  }
}
