/* Cormorant Garamond — Latin Extended */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url("/fonts/cormorant-garamond-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond — Latin */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 500;
  font-display: block;
  src: url("/fonts/cormorant-garamond-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond Italic — Latin Extended */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: block;
  src: url("/fonts/cormorant-garamond-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond Italic — Latin */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 500;
  font-display: block;
  src: url("/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit — Latin Extended */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url("/fonts/outfit-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit — Latin */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: block;
  src: url("/fonts/outfit-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {

  --gold: #6b4a0d;
  --gold-light: #d6bd78;
  --gold-mid: #947023;
  --gold-deep: #493208;
  --gold-tint: #f4eedf;

  --burgundy: #5a1a1d;
  --burgundy-light: #d59b9d;
  --burgundy-mid: #83383c;
  --burgundy-deep: #3e1214;
  --burgundy-tint: #f3e7e8;

  --marine: #1e2535;
  --marine-light: #9baecb;
  --marine-mid: #3e506e;
  --marine-deep: #141a26;
  --marine-tint: #e8ecf2;

  --forest: #2a4a35;
  --forest-light: #9fc77f;
  --forest-mid: #3d6b4f;
  --forest-deep: #1e3628;
  --forest-tint: #e8f0eb;

  --amber: #c47c2b;
  --amber-warm: #e8c06a;
  --amber-tint: #faebd5;
  --stone: #8a7f6e;
  --parchment: #f7f4ed;
  --cream: #ede9df;
  --warm-mid: #d6cfc0;
  --ink: #1a1916;
  --ink-2: #3a3830;
  --ink-3: #6a6860;
  --ink-4: #9a9890;
  --rule: rgba(26, 25, 22, 0.10);
  --rule-inv: rgba(247, 244, 237, 0.10);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  background: #f7f4ed !important;
  background-color: #f7f4ed !important;
  font-family: var(--font-sans);
  font-synthesis: none;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
}


body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  position: relative;
  -webkit-user-select: text;
  user-select: text;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-user-select: auto;
  user-select: auto;
}

button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
  -webkit-user-select: none;
  user-select: none;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .1s;
}

.d2 {
  transition-delay: .2s;
}

.d3 {
  transition-delay: .3s;
}

.d4 {
  transition-delay: .4s;
}

.d5 {
  transition-delay: .5s;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}

.nav.scrolled {
  background: var(--forest-deep);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}

.nav.scrolled.nav--senioren {
  background: var(--gold-deep);
}

.nav.scrolled.nav--mieter {
  background: var(--burgundy-deep);
}

.nav.scrolled.nav--ferien {
  background: var(--marine-deep);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

a.logo {
  align-items: center;
  gap: 12px;
  text-decoration: none;
  display: flex;
  align-content: center;
  color: var(--parchment);
  font-size: 24px;
}

.wordmark {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.logo-image {
  display: block;
  background-image: url(./logo.png);
  width: 36px;
  height: 36px;
  background-size: contain;
  background-repeat: no-repeat;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin-left: auto;
}

.nav__links a {
  font-size: 0.8125em;
  color: rgba(247, 244, 237, .6);
  letter-spacing: .02em;
  transition: color .2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--amber-warm);
  transition: right .25s var(--ease);
}

.nav__links a.active,
.nav__links a:hover {
  color: var(--parchment);
}

.nav__links a.active::after,
.nav__links a:hover::after {
  right: 0;
}

.nav__cta {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--ink);
  background: var(--amber);
  padding: 10px 22px;
  border-radius: 5px;
  transition: background .2s, transform .2s;
}

.nav__cta:hover {
  background: var(--amber-warm);
  transform: translateY(-1px);
}

/* NAV: dropdown groups + "Neu" badge */
.nav__links > li { position: relative; }
.nav__parent { display: inline-flex; align-items: center; gap: 6px; }
.nav__parent .chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .2s var(--ease); }
.has-sub:hover > .nav__parent .chev, .has-sub:focus-within > .nav__parent .chev { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: 100%; left: -18px; min-width: 240px; margin-top: 14px; padding: 8px 0;
  list-style: none; background: var(--forest-deep); border: 1px solid rgba(247, 244, 237, .1); border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover > .nav__sub, .has-sub:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__sub a { display: block; padding: 10px 20px; white-space: nowrap; font-size: 1em; color: rgba(247, 244, 237, .8); }
.nav__sub a::after { display: none; }
.nav__sub a:hover { background: rgba(247, 244, 237, .06); color: var(--parchment); }
.nav--solid .nav__sub { background: var(--marine-deep); } /* blog: navy header */
.nav--senioren .nav__sub { background: var(--gold-deep); }
.nav--mieter .nav__sub { background: var(--burgundy-deep); }
.nav--ferien .nav__sub { background: var(--marine-deep); }
.nav__badge {
  display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--amber); color: var(--ink);
  font-size: .68em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; vertical-align: 1px;
}
.nav__app::after { display: none; }
@media (prefers-reduced-motion: reduce) { .nav__sub, .nav__parent .chev { transition: none; } }
html[data-motion="reduce"] .nav__sub, html[data-motion="reduce"] .nav__parent .chev { transition: none; }

/* LANGUAGE SELECTOR */
.language-picker {
  position: relative;
  margin: 0 10px 0 auto;
}

.language-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: rgba(247, 244, 237, 0.7);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-trigger svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.language-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  min-width: 170px;
  padding: 6px;

  background: #f7f4ed;
  border: 1px solid rgba(32, 56, 43, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.language-options[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 7px;

  background: transparent;
  color: #20382b;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(32, 56, 43, 0.08);
}

.language-option[aria-current="true"] {
  background: rgba(200, 138, 43, 0.15);
  font-weight: 600;
}

.language-code {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.language-trigger:focus-visible,
.language-option:focus-visible {
  outline: 2px solid #c88a2b;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .language-trigger svg {
    transition: none;
  }
}
/* HERO */
.hero {
  background: var(--forest);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.8s ease;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 40%, rgba(61, 107, 79, .45) 0%, transparent 70%), radial-gradient(ellipse 50% 80% at 10% 80%, rgba(30, 54, 40, .6) 0%, transparent 60%);
  pointer-events: none;
}

.hero.hero-marine::before {
  background: radial-gradient(ellipse 80% 60% at 65% 40%, rgba(30, 37, 53, .5) 0%, transparent 70%), radial-gradient(ellipse 50% 80% at 10% 80%, rgba(20, 25, 35, .65) 0%, transparent 60%);
}

.hero.hero-gold::before {
  background: radial-gradient(ellipse 80% 60% at 65% 40%, rgba(168, 112, 24, .5) 0%, transparent 70%), radial-gradient(ellipse 50% 80% at 10% 80%, rgba(100, 66, 14, .65) 0%, transparent 60%);
}

.hero.hero-burgundy::before {
  background: radial-gradient(ellipse 80% 60% at 65% 40%, rgba(66, 17, 19, .55) 0%, transparent 70%), radial-gradient(ellipse 50% 80% at 10% 80%, rgba(40, 10, 12, .7) 0%, transparent 60%);
}

.hero__headline_container {
  position: relative;
  height: clamp(400px, 32.5vw, 410px);
  overflow: hidden;
}

.hero__deco {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  width: 560px;
  height: 560px;
  opacity: .05;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 140px 0 20px;
  width: 900px;
}

.hero__eye {
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(232, 192, 106, .65);
  margin-bottom: 24px;
  animation: fadeUp .9s var(--ease) both;
}

.hero__top {
  align-content: center;
  flex: 1;
  position: relative;  
}

.hero__h1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(56px, 7.5vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--parchment);
  margin-bottom: 28px;
  animation: fadeUp .9s var(--ease) .12s both;
  opacity: 1;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero__h1 em {
  font-style: italic;
  color: var(--amber-warm);
}

.hero__sub {
  font-size: 1em;
  font-weight: 400;
  color: rgba(247, 244, 237, .52);
  max-width: 510px;
  line-height: 1.72;
  margin-bottom: 44px;
  animation: fadeUp .9s var(--ease) .22s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  animation: fadeUp .9s var(--ease) .32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125em;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 6px;
  letter-spacing: .03em;
  transition: all .2s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--amber-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 124, 43, .3);
}

.btn-ghost {
  background: rgba(247, 244, 237, .08);
  color: var(--parchment);
  border: 1px solid rgba(247, 244, 237, .2);
}

.btn-ghost:hover {
  background: rgba(247, 244, 237, .14);
  transform: translateY(-2px);
}

.hero__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0;
  border-top: 1px solid rgba(247, 244, 237, .07);
  animation: fadeIn 1.2s var(--ease) .8s both;
}

.hero__bar-line {
  width: 40px;
  height: 1px;
  background: var(--amber-warm);
  opacity: .45;
}

.hero__bar-text {
  font-size: 0.6875em;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, .3);
  cursor: pointer;
}

/* TRUST */
.trust {
  background: var(--forest-deep);
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75em;
  color: rgba(247, 244, 237, .62);
}

.trust__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(247, 244, 237, .18);
}

/* SECTION SHARED */
.sec-eye {
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sec-h {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.sec-h em {
  font-style: italic;
}

.sec-center {
  text-align: center;
  margin-bottom: 60px;
}

.sec-center .sec-eye {
  color: var(--stone);
  margin-bottom: 10px;
}

.sec-center .sec-h {
  font-size: clamp(32px, 3vw, 48px);
  color: var(--ink);
  margin-bottom: 14px;
}

.sec-center .sec-h em {
  color: var(--forest-mid);
  font-weight: 400;
}

.sec-center p {
  font-size: 0.9375em;
  font-weight: 400;
  color: var(--ink-3);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.72;
}

/* INTRO */
.intro {
  padding: 112px 0;
  background: linear-gradient(to right,
      rgba(247, 244, 237, 1) 0%,
      rgba(247, 244, 237, 0.5) 50%,
      rgba(247, 244, 237, 0.2) 60%,
      rgba(247, 244, 237, 0) 100%
    ),url('./section-1-bg.jpg') no-repeat right 20% center / cover var(--parchment);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.intro__eye {
  color: var(--amber);
  margin-bottom: 14px;
}

.intro__h {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  color: var(--ink);
}

.intro__h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.intro__p {
  font-size: 0.9375em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.78;
  margin-bottom: 16px;
}

.examples__link,
.intro__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--forest);
  margin-top: 16px;
  transition: gap 3s;
}

.examples__link {
  margin: 0 auto;
}

.examples__link:hover,
.intro__link:hover {
  gap: 16px;
}

.cards-stack {
  position: relative;
  height: 360px;
}

.intro__cards .fcard:last-child {
  margin-bottom: 0;
}

.fcard__icon svg {
  display: block;
}

.fcard {
  display: flex;
  gap: 10px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--warm-mid);
  padding: 22px 24px;
  box-shadow: 0 8px 32px rgba(26, 25, 22, .08);
  margin-bottom: 24px;
}

/*.fcard-1 {
  width: 250px;
  top: 0;
  left: 10px;
  transform: rotate(-2deg);
}

.fcard-2 {
  width: 270px;
  top: 80px;
  right: 0;
  transform: rotate(1.5deg);
  z-index: 1;
  box-shadow: 0 12px 40px rgba(26, 25, 22, .10);
}

.fcard-3 {
  width: 230px;
  bottom: 0;
  left: 30px;
  transform: rotate(-1deg);
}
*/
.fcard__icon {
  width: 34px;
  height: 34px;
  /*background: var(--forest-tint);*/
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.0625em;
}

.fcard__c {
  display: block;
}

.fcard__t {
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 4px;
}

.fcard__b {
  font-size: 0.75em;
  color: var(--ink-3);
  line-height: 1.5;
}

/* PACKAGES */
.packages {
  padding: 112px 0;
  background: var(--cream);
}

.pkg-title em {
  transition: color 0.4s var(--ease);
  font-weight: 400;
}

.pkg-title.senioren em {
  color: #6B4A0D;
}

.pkg-title.mieter em {
  color: #5A1A1D;
}

.pkg-title.ferienhaus em {
  color: #1e2535;
}

.pkg-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.pkg-tab {
  font-family: var(--sans);
  font-size: 0.875em;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 24px;
  border: 1.5px solid var(--ink-3);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .3s var(--ease);
  letter-spacing: .02em;
}

.pkg-tab:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.pkg-tab.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--parchment);
}

.pkg-tab.active[data-audience="senioren"] {
  background: #6B4A0D;
  border-color: #6B4A0D;
}

.pkg-tab.active[data-audience="mieter"] {
  background: #5A1A1D;
  border-color: #5A1A1D;
}

.pkg-tab.active[data-audience="ferienhaus"] {
  background: #1e2535;
  border-color: #1e2535;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

/* 4 cards need more room than the default 1120px container */
.packages .container {
  max-width: 1280px;
}

.pkg__top {
  padding: 26px 22px 18px;
}

.pkg__body {
  padding: 22px 22px 26px;
}

/* Between desktop and the ≤900px accordion layout: 2 x 2 grid.
   Must stay ABOVE the ≤900px block so that block still wins. */
@media (max-width: 1100px) {
  .pkg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.pkg {
  background: var(--parchment);
  border-radius: 16px;
  border: 1px solid var(--warm-mid);
  /*overflow: hidden;*/
  transition: transform .3s var(--ease), box-shadow .3s;
}

.pkg:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26, 25, 22, .09);
}

/* Briefly highlights a package card scrolled to via a deep link from an example page
   (see applyDeepLinkedPackage in scripts.js), so it's clear which card the visitor was sent to. */
.pkg--highlight {
  box-shadow: 0 0 0 3px var(--amber-warm), 0 20px 60px rgba(26, 25, 22, .12);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.pkg-featured {
  background: var(--forest);
  border-color: var(--forest);
  transform: scale(1.03);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pkg-featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 24px 64px rgba(42, 74, 53, .3);
}

.pkg-featured.senioren {
  background: #6B4A0D;
  border-color: #6B4A0D;
}

.pkg-featured.senioren:hover {
  box-shadow: 0 24px 64px rgba(201, 168, 76, .3);
}

.pkg-featured.mieter {
  background: #5A1A1D;
  border-color: #5A1A1D;
}

.pkg-featured.mieter:hover {
  box-shadow: 0 24px 64px rgba(139, 58, 58, .3);
}

.pkg-featured.ferienhaus {
  background: #1e2535;
  border-color: #1e2535;
}

.pkg-featured.ferienhaus:hover {
  box-shadow: 0 24px 64px rgba(30, 42, 77, .3);
}




.pkg__disclaimer {
  display: none;
  font-size: 0.6875em;
  color: var(--ink-4);
  text-align: center;
  margin-top: 0px;
}

.pkg-premium.senioren .pkg__disclaimer,
.pkg-premium.mieter .pkg__disclaimer,
.pkg-premium.ferienhaus .pkg__disclaimer {
  display: block;
}

/* the footnote now sits right under the (collapsible) hardware list it refers to */
.pkg__details .pkg__disclaimer {
  margin: -10px 0 20px;
}



.pkg__top {
  border-bottom: 1px solid var(--rule);
}

.pkg-featured .pkg__top {
  border-color: var(--rule-inv);
}

.pkg__badge {
  display: inline-block;
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.badge-d {
  background: var(--forest-light);
  color: var(--forest);
  position: absolute;
  top: -10px;
  left: 10px;
}

.badge-f {
  background: var(--amber);
  color: var(--ink);
  position: absolute;
  top: -10px;
  left: 10px;
}

.pkg__name {
  font-family: var(--sans);
  font-size: 1.1em;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pkg__highlight {
  color: var(--forest);
  font-weight: 500;
}

.pkg-featured .pkg__name {
  color: var(--parchment);
}

.pkg-featured .pkg__highlight {
  color: var(--amber-warm);
  font-weight: 500;
}

.pkg__tag {
  font-size: 0.75em;
  color: var(--ink-3);
}

.pkg-featured .pkg__tag {
  color: rgba(247, 244, 237, .5);
}

.pkg__pr {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 14px;
}

.pkg__from {
  font-size: 1em;
  color: var(--ink-3);
  align-self: flex-end;
  padding-top: 5px;
}

.pkg-featured .pkg__from {
  color: rgba(232, 192, 106, .6);
}

.pkg__num {
  font-family: var(--sans);
  font-size: 2.5em;
  font-weight: 100;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}

.pkg-featured .pkg__num {
  color: var(--amber-warm);
}

.pkg__mo {
  font-size: 0.75em;
  color: var(--ink-3);
}

.pkg-featured .pkg__mo {
  color: rgba(247, 244, 237, .4);
}

.pkg__body {
  display: block;
}

/* Outcomes: what the customer gets (2-3 lines). Always visible, above the hardware list. */
.pkg__outcomes {
  list-style: none;
  margin: 0 0 12px;
}

.pkg__outcomes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875em;
  color: var(--ink);
  padding: 6px 0;
  line-height: 1.4;
}

.pkg-featured .pkg__outcomes li {
  color: var(--parchment);
}

/* "Details" toggle: shows / hides the hardware list (.pkg__details) on every screen size */
.pkg__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--forest);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.pkg__toggle::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.pkg__toggle[aria-expanded="true"] {
  margin-bottom: 12px;
}

.pkg__toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.pkg__toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pkg__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

.pkg-featured .pkg__toggle {
  color: rgba(232, 192, 106, 0.85);
}

.pkg-featured .pkg__toggle:hover {
  color: var(--amber-warm);
}

.pkg__includes {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.pkg-featured .pkg__includes {
  color: rgba(232, 192, 106, 0.8);
}

.pkg__list {
  list-style: none;
  margin-bottom: 24px;
}

.pkg__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8125em;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.45;
}

.pkg-featured .pkg__list li {
  color: rgba(247, 244, 237, .72);
  border-color: var(--rule-inv);
}

.pkg__list li:last-child {
  border-bottom: none;
}

.chk {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--forest-tint);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 8px;
}

.pkg-featured .chk {
  background: rgba(232, 192, 106, .2);
  color: var(--amber-warm);
}

.pkg__btn {
  width: 100%;
  padding: 13px;
  border-radius: 7px;
  font-size: 0.8125em;
  font-weight: 500;
  text-align: center;
  transition: all .2s var(--ease);
  letter-spacing: .03em;
}

.btn-pkg-d {
  background: var(--cream);
  color: var(--forest);
  border: 1.5px solid var(--forest);
}

.btn-pkg-d:hover {
  background: var(--forest);
  color: var(--parchment);
}

.btn-pkg-f {
  background: var(--amber);
  color: var(--ink);
}

.btn-pkg-f:hover {
  background: var(--amber-warm);
  transform: translateY(-1px);
}

.pkg__note {
  font-size: 0.6875em;
  color: var(--ink-4);
  text-align: center;
  margin-top: 10px;
}

.pkg-featured .pkg__note {
  color: rgba(247, 244, 237, .28);
}

/* Footnote under the grid (shading automation asterisk) */
.pkg__shading-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.75em;
  color: var(--ink-3);
}

/* One-line "not an emergency service" hint under the package grid (audiences: data-audiences) */
.pkg-safety-line {
  text-align: center;
  margin-top: 10px;
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--ink-3);
}

.pkg-safety-line[hidden] {
  display: none;
}

.pkg-safety-line a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Full-width statement below the contact form */
.safety {
  margin-top: 72px;
  padding: 26px 32px 30px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: 10px;
  scroll-margin-top: 96px;
}

.safety__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.safety__icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--parchment);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.0625em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
}
.safety__title em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.safety__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.safety__list li {
  padding-top: 12px;
  border-top: 2px solid var(--rule);
  font-size: 0.875em;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .safety {
    margin-top: 48px;
    padding: 20px 20px 22px;
  }

  .safety__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* FAQ (beside pricing) */
.faq {
  padding: 72px 0 112px;
  background: var(--cream);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--parchment);
  border: 1px solid var(--warm-mid);
  border-radius: 12px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--sans);
  font-size: 0.9375em;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.faq-q:hover {
  color: var(--forest);
}

.faq-q__icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.faq-q[aria-expanded="true"] .faq-q__icon {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-a {
  padding: 0 24px 22px;
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.7;
}

.faq-a[hidden] {
  display: none;
}

.faq-more {
  text-align: center;
  margin-top: 28px;
  font-size: 0.8125em;
  color: var(--ink-4);
}

.faq-more a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .faq {
    padding: 48px 0 56px;
  }

  .faq-q {
    padding: 16px 18px;
    font-size: 0.875em;
  }

  .faq-a {
    padding: 0 18px 18px;
  }
}

/* PROCESS */
.process {
  padding: 112px 0;
  background: var(--cream);
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
}

.proc-eye {
  color: var(--amber);
  margin-bottom: 14px;
}

.proc-h {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.proc-h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.proc-p {
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.75;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.step:last-child {
  border-bottom: none;
}

.step__nc {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest-light);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2em;
  flex-shrink: 0;
}

.step__ln {
  width: 1px;
  flex: 1;
  background: var(--warm-mid);
  margin-top: 8px;
}

.step:last-child .step__ln {
  display: none;
}

.step__c {
  padding-top: 8px;
}

.step__t {
  font-family: var(--sans);
  font-size: 1.25em;
  font-weight: 400;
  margin-bottom: 7px;
  color: var(--ink);
  text-transform: uppercase;
}

.step__b {
  font-size: 1em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.7;
}

.step__tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.step__tag {
  font-size: 0.6875em;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--forest-light);
  color: var(--forest);
}

/* WHY */
.why {
  background: var(--forest);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(61, 107, 79, .4) 0%, transparent 70%);
  pointer-events: none;
}

.why__head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.why__eye {
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 192, 106, .55);
  margin-bottom: 12px;
}

.why__h {
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: -.02em;
}

.why__h em {
  font-style: italic;
  color: var(--amber-warm);
  font-weight: 400;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
  background: rgba(247, 244, 237, .05);
  border-radius: 16px;
  overflow: hidden;
}

.why__item {
  background: rgba(42, 74, 53, .5);
  padding: 34px 140px 34px 30px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
  min-height: 255px;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.why__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--forest);
  background-image: var(--feature-pictogram);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 150px;
  opacity: 0.4;
}

.why__item:hover::before {
  background-color: var(--forest-mid);
  background-image: var(--feature-pictogram);
}

.why__item > * {
  position: relative;
  z-index: 1;
}

.why__item--privacy {
  --feature-pictogram: url("./privacy.png");
}

.why__item--vendor {
  --feature-pictogram: url("./vendor-lock-in.png");
}

.why__item--service {
  --feature-pictogram: url("./personal-service.png");
}

.why__item--quality {
  --feature-pictogram: url("./swiss-quality.png");
}

.why__item--energy {
  --feature-pictogram: url("./energy-efficiency.png");
}

.why__item--future {
  --feature-pictogram: url("./future-proof.png");
}

@media (max-width: 900px) {
  .why__item {
    padding: 34px 160px 34px 30px;
    min-height: 200px;
  }
  .why__item::before {
    background-position: right center;
    background-size: auto 82%;
  }
}


.why__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
}

.why__svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why__svg .fill {
  fill: #fff;
  stroke: none;
}

.why__t {
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 400;
  color: var(--parchment);
  margin: 9px 0;
  text-transform: uppercase;
}

.why__b {
  font-size: 0.8125em;
  font-weight: 400;
  color: rgba(247, 244, 237, .52);
  line-height: 1.7;
}

/* DEVICES */
.devices {
  padding: 112px 0;
  background: var(--cream);
}

.devices__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dev-h {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.dev-h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.dev-p {
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 24px;
}

.dev-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dev-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--parchment);
  border: 1px solid var(--warm-mid);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 0.75em;
  color: var(--ink-2);
  transition: all .2s;
  cursor: pointer;
}

.dev-tag:hover {
  background: var(--forest-tint);
  border-color: var(--forest-mid);
  color: var(--forest);
}

.dev-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest-mid);
  flex-shrink: 0;
}

.hub-box {
  background: var(--forest);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hub-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .06);
}

.hub-lbl {
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, .38);
  margin-bottom: 16px;
}

.hub-logo-svg {
  width: 70px;
  height: 70px;
  overflow: hidden;
  background-image: url('./greenhub.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hub-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hub__text {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
}

.hub__brand {
  font-size: 0.75em;
  color: var(--parchment);
  font-weight: 400;
  letter-spacing: -0.055em;
  margin-left: 35px;
}

.hub__name {
  font-size: 1.75em;
  color: var(--forest-light);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.1em;
}

.hub-sub {
  font-size: 0.75em;
  color: rgba(247, 244, 237, .4);
  margin-bottom: 22px;
  margin-top: 10px;
}

.hub-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.hub-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(247, 244, 237, .06);
  font-size: 0.8125em;
}

.hub-row:last-child {
  border-bottom: none;
}

.hub-row .hl {
  color: rgba(247, 244, 237, .62);
  margin-right: 10px;
}

.hub-row .hv {
  color: rgba(247, 244, 237, .78);
  font-weight: 500;
  text-align: right;
}

.hub-note {
  font-size: 0.6875em;
  color: rgba(232, 192, 106, .5);
  background: rgba(196, 124, 43, .1);
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.55;
}

.brands {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.brands__lbl {
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}

.brands__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-badge {
  font-family: var(--sans);
  font-size: 0.8125em;
  color: var(--ink-3);
  background: var(--parchment);
  border: 1px solid var(--warm-mid);
  padding: 7px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.brand-badge--more {
  font-style: italic;
  color: var(--stone);
  background: none;
  border-style: dashed;
}

/* EXAMPLES CAROUSEL */
.examples {
  padding: 96px 0;
  background: var(--parchment);
}

.examples__track-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 24px auto 0;
}

.examples__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Setting overflow-x alone silently forces overflow-y to clip too (a long-standing CSS
     quirk — overflow-y: visible cannot override it in any browser). The only real fix is
     giving the box-shadow room to render before that clip boundary: generous padding here,
     with the track-wrap's own margin trimmed above to keep the overall gap the same. */
  padding: 24px 28px 48px;
  margin: -24px -24px-48px;
  flex: 1;
  scrollbar-width: none;
}

.examples__track::-webkit-scrollbar {
  display: none;
}

.examples__card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 min(360px, 100%);
  /* Two layers: a cream gradient (guarantees the text stays legible no matter how the photo
     is cropped) sitting on top of the photo itself, anchored left so the crop favours the
     photo's own built-in light-toned margin instead of cutting into it from both sides. */
  border: 1px solid var(--warm-mid);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.examples__card::after {
  content: '';
  position: absolute;
  inset: 0;
  bottom: 0;
  left: 0;
  right: 0;
  top: 90%;
  border-radius: 0 0 16px 16px;
  pointer-events: none;
  box-shadow: inset 0 -4px 0 0 var(--forest-mid);
}

.examples__card--hans {
  background:
    linear-gradient(100deg, var(--cream) 0%, var(--cream) 42%, rgba(237, 233, 223, .82) 58%, rgba(237, 233, 223, 0) 78%),
    url('./isolierter-senior/hans-homepage.jpg') no-repeat right center / cover var(--cream);
}

.examples__card--hans::after {
  box-shadow: inset 0 -4px 0 0 var(--gold-mid);
}

.examples__card--elsa {
  background:
    linear-gradient(100deg, var(--cream) 0%, var(--cream) 42%, rgba(237, 233, 223, .82) 58%, rgba(237, 233, 223, 0) 78%),
    url('./wasserschaden/elsa-homepage.jpg') no-repeat right center / cover var(--cream);
}

.examples__card--elsa::after {
  box-shadow: inset 0 -4px 0 0 var(--burgundy-mid);
}

.examples__card--inge {
  background:
    linear-gradient(100deg, var(--cream) 0%, var(--cream) 42%, rgba(237, 233, 223, .82) 58%, rgba(237, 233, 223, 0) 78%),
    url('./ferienwohnung-management/inge-homepage.jpg') no-repeat right center / cover var(--cream);
}

.examples__card--inge::after {
  box-shadow: inset 0 -4px 0 0 var(--marine-mid);
}

/* TODO: no marc-homepage.jpg yet (unlike inge/hans/elsa) — once a photo is shot/cropped the
   same way as the other three, drop the url('./zu-viele-apps/marc-homepage.jpg') ... /cover
   line in here in place of the plain var(--cream) fallback below. */
.examples__card--marc {
  background:
    linear-gradient(100deg, var(--cream) 0%, var(--cream) 55%, rgba(122, 31, 44, .08) 100%),
    url('./zu-viele-apps/marc-homepage.jpg') no-repeat right center / cover var(--cream);
}

.examples__card--marc::after {
  box-shadow: inset 0 -4px 0 0 var(--burgundy-mid);
}

.examples__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26, 25, 22, .08);
}

.examples__tag {
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber);
}

.examples__name {
  font-family: var(--serif);
  font-size: 1.5em;
  color: var(--ink);
  max-width: 190px;
}

.examples__hook {
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.65;
  flex: 1;
  max-width: 190px;
}

.examples__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--forest);
  margin-top: 4px;
}

.examples__arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--warm-mid);
  background: var(--parchment);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
}

.examples__arrow:hover:not(:disabled) {
  border-color: var(--forest);
  color: var(--forest);
}

.examples__arrow:disabled {
  opacity: .3;
  cursor: default;
}

@media (max-width: 600px) {

  .footer__bottom {
    padding-bottom: 76px; /* clears the floating chat button */
  }
  .examples {
    padding: 64px 0;
  }

  .examples__arrow {
    display: none;
  }
}

/* ABOUT */

.about {
  padding: 112px 0;
  background: var(--parchment);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.about__frame {
  position: relative;
}

.about__pic {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--forest);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-image: url(./me.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.about__pic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(30, 54, 40, .8));
}

.about__init {
  font-family: var(--serif);
  font-size: 196px;
  font-weight: 400;
  color: rgba(247, 244, 237, .1);
  letter-spacing: -.05em;
  user-select: none;
}

.about__tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 1;
  background: rgba(42, 74, 53, .7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 244, 237, .1);
  border-radius: 10px;
  padding: 12px 16px;
}

.about__tag .aname {
  font-family: var(--serif);
  font-size: 1.0625em;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 2px;
}

.about__tag .arole {
  font-size: 0.6875em;
  color: rgba(247, 244, 237, .62);
}

.about__badge {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 50%;
  width: 84px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 24px rgba(196, 124, 43, .3);
}

.about__badge .bnum {
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1;
}

.about__badge .blbl {
  font-size: 0.625em;
  font-weight: 500;
  line-height: 1.3;
}

.about-eye {
  color: var(--amber);
  margin-bottom: 12px;
}

.about-h {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.about-h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.about-p {
  font-size: 1em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-q {
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  margin: 24px 0;
  font-family: var(--serif);
  font-size: 2em;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.55;
}

.about-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.about-chip {
  font-size: 0.75em;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--forest-tint);
  color: var(--forest);
}

/* TESTIMONIALS */
.testi {
  padding: 112px 0;
  background: var(--cream);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.tcard {
  background: var(--parchment);
  border-radius: 14px;
  border: 1px solid var(--warm-mid);
  padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26, 25, 22, .07);
}

.tcard__stars {
  color: var(--amber);
  margin-bottom: 14px;
  font-size: 0.8125em;
  letter-spacing: 2px;
}

.tcard__q {
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 18px;
}

.tcard__author {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.tcard__av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.875em;
  color: var(--forest);
  flex-shrink: 0;
}

.tcard__name {
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--ink-2);
}

.tcard__meta {
  font-size: 0.6875em;
  color: var(--ink-4);
}

/* CTA SECTION */
.cta-sec {
  background: var(--forest);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(30, 54, 40, .8) 0%, transparent 70%);
}

.cta-sec>.container {
  position: relative;
  z-index: 1;
}

.cta-eye {
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(232, 192, 106, .55);
  margin-bottom: 14px;
}

.cta-h {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 18px;
}

.cta-h em {
  font-style: italic;
  color: var(--amber-warm);
  font-weight: 400;
}

.cta-sub {
  font-size: 1em;
  font-weight: 400;
  color: rgba(247, 244, 237, .48);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 0.75em;
  color: rgba(247, 244, 237, .27);
  margin-top: 20px;
  letter-spacing: .04em;
}

/* CONTACT */
.contact {
  padding: 112px 0;
  background: var(--parchment);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.con-h {
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.con-h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.con-p {
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 28px;
}

.con-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.con-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.875em;
  color: var(--ink-2);
}

.con-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1em;
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
}

.fg label {
  font-size: 0.6875em;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.fg input,
.fg select,
.fg textarea {
  font-family: var(--sans);
  font-size: 0.875em;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--warm-mid);
  border-radius: 7px;
  padding: 12px 15px;
  transition: border-color .2s, background .2s;
  resize: none;
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  background: var(--parchment);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--ink-4);
}

.fsub {
  background: var(--forest);
  color: var(--parchment);
  padding: 15px;
  border-radius: 7px;
  font-size: 0.8125em;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  transition: background .2s, transform .2s;
  max-width: 100%;
}

.fsub:hover {
  background: var(--forest-mid);
  transform: translateY(-2px);
}

.fsub:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Honeypot fields: off-screen rather than display:none, since some bots specifically
   skip display:none / visibility:hidden fields. Invisible and unreachable by keyboard
   or screen reader for a real visitor. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.8125em;
  text-align: center;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 7px;
}

.form-status--sending {
  color: var(--ink-3);
}

.form-status--success {
  background: var(--forest-tint);
  color: var(--forest);
}

.form-status--error {
  background: rgba(90, 26, 29, 0.08);
  color: var(--burgundy);
}

.form-status--error a {
  color: var(--burgundy);
  text-decoration: underline;
}

/* FOOTER */
.footer {
  background: var(--forest-deep);
  padding: 60px 0 28px;
}

.footer--senioren {
  background: var(--gold-deep);
}

.footer--mieter {
  background: var(--burgundy-deep);
}

.footer--ferien {
  background: var(--marine-deep);
}


.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247, 244, 237, .06);
  margin-bottom: 28px;
}

.footer__tagline {
  font-size: 0.8125em;
  font-weight: 400;
  color: rgba(247, 244, 237, .38);
  line-height: 1.65;
  margin-top: 14px;
  max-width: 230px;
}

.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer__social a {
  color: rgba(247, 244, 237, .48);
  display: flex;
  transition: color .2s;
}

.footer__social a:hover {
  color: var(--amber-warm);
}

.fcol-title {
  font-size: 0.625em;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, .32);
  margin-bottom: 14px;
}

.flinks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.flinks a {
  font-size: 0.8125em;
  color: rgba(247, 244, 237, .48);
  transition: color .2s;
}

.flinks a:hover {
  color: var(--parchment);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.75em;
  color: rgba(247, 244, 237, .23);
}

.flegal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.flegal a {
  font-size: 0.75em;
  color: rgba(247, 244, 237, .23);
  transition: color .2s;
}

.flegal a:hover {
  color: rgba(247, 244, 237, .6);
}

.fch {
  font-size: 0.6875em;
  color: rgba(247, 244, 237, .2);
}

/* ─────────────────────────────────────────
   HAMBURGER MENU
───────────────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(247, 244, 237, .75);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--forest-deep);
  z-index: 99;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  padding: 84px 0 32px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav__drawer > ul { margin-top: auto; }
.nav__drawer .drawer-cta { margin-bottom: auto; }
.drawer-acc {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.01em;
  color: rgba(247, 244, 237, .78); background: none; border: 0; border-bottom: 1px solid rgba(247, 244, 237, .06);
  padding: 16px 24px; cursor: pointer;
}
.drawer-acc:hover, .drawer-acc[aria-expanded="true"] { color: var(--parchment); }
.drawer-acc .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.drawer-acc[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__drawer .drawer-sub[hidden] { display: none; }
.nav__drawer .drawer-sub { background: rgba(0, 0, 0, .14); padding: 6px 0; }
.nav__drawer .drawer-sub li a { font-family: var(--sans, inherit); font-size: 18px; font-weight: 400; padding: 12px 24px; border-bottom: 0; }
.nav__drawer .nav__badge { font-size: 12px; vertical-align: 4px; font-family: var(--sans, inherit); }
html[data-contrast="high"] .drawer-acc { color: var(--parchment); }


.nav__drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav__drawer ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nav__drawer ul li a {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: rgba(247, 244, 237, .75);
  padding: 16px 24px;
  letter-spacing: -.01em;
  transition: color .2s;
  border-bottom: 1px solid rgba(247, 244, 237, .06);
}

.nav__drawer ul li a:hover {
  color: var(--parchment);
}

.nav__drawer .drawer-cta {
  margin-top: 32px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.875em;
  font-weight: 500;
  padding: 15px 40px;
  border-radius: 6px;
  letter-spacing: .03em;
}

/* ─────────────────────────────────────────
   TABLET  ≤ 900px
───────────────────────────────────────── */
@media (max-width: 900px) {

  html,
  body {
    font-size: 20px;
  }

  .container {
    padding: 0 32px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__drawer {
    display: flex;
  }

  .intro {
    padding: 112px 0 250px;
    background: linear-gradient(
      rgba(247, 244, 237, 1) 0%,
      rgba(247, 244, 237, 0.7) 50%,
      rgba(247, 244, 237, 0.2) 60%,
      rgba(247, 244, 237, 0) 100%
    ), url('./section-1-bg-mobile.jpg') no-repeat right bottom / 100%;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .cards-stack {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .fcard {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
  }

  .fcard-1,
  .fcard-2,
  .fcard-3 {
    width: 100%;
    z-index: auto;
  }

  .fcard__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    margin-bottom: 0;
    font-size: 0.875em;
  }

  .fcard__t {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1em;
  }

  .pkg-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
  }

  .pkg-featured {
    transform: none;
  }

  .pkg-featured:hover {
    transform: translateY(-6px);
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .devices__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__frame {
    max-width: 640px;
  }

  .about__pic {
    aspect-ratio: 4/3;
  }

  .testi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__grid>div {
    max-width: 100%;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .fch {
    display: block;
  }
}

/* ─────────────────────────────────────────
   MOBILE  ≤ 600px
───────────────────────────────────────── */
@media (max-width: 600px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .container {
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
  }

  /* Hero */
  .hero__content {
    max-width: 560px;
    width: 100% !important;
    padding: 90px 0 22px;
  }

  .hero__h1 {
    line-height: 1.3em;
  }


  .hero__h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .hero__sub {
    font-size: 0.9375em;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__deco {
    left: -35%;
    margin: 15% 0 0 50%;
    width: 70%;
  }

  /* Trust */
  .trust__inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 0 4px;
  }

  .trust__dot {
    display: none;
  }

  /* Section spacing */
  .intro,
  .packages,
  .faq,
  .process,
  .why,
  .devices,
  .about,
  .testi,
  .contact {
    padding: 72px 0;
  }
  .intro {
    padding: 72px 0 200px;
    background: linear-gradient(rgba(247, 244, 237, 1) 0%, rgba(247, 244, 237, 0.7) 50%, rgba(247, 244, 237, 0.2) 60%, rgba(247, 244, 237, 0) 100%), url(./section-1-bg-mobile.jpg) no-repeat center bottom / contain;
  }

  .cta-sec {
    padding: 72px 0;
  }

  /* Intro */
  .intro__grid {
    gap: 40px;
  }

  .cards-stack {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .fcard {
    position: static;
    width: 100% !important;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(26, 25, 22, .07);
  }

  /* Packages */

  .pkg-grid {
    max-width: 100%;
  }

  .packages .sec-center {
    margin-bottom: 40px;
  }

  /* Process */
  .process__grid {
    gap: 36px;
  }

  .step {
    grid-template-columns: 44px 1fr;
    gap: 16px;
  }

  /* Why */
  .why__grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .why__head {
    margin-bottom: 40px;
  }

  /* Devices */
  .dev-tags {
    grid-template-columns: 1fr 1fr;
  }

  /* About */
  .about__frame {
    max-width: 100%;
  }

  .about__pic {
    aspect-ratio: 3/2;
  }

  .about__badge {
    top: -12px;
    right: -8px;
    width: 90px;
    height: 90px;
    justify-content: start;
    padding-top: 10px;
  }

  .about__badge .bnum {
    font-size: 20px;
  }

  /* Testimonials */
  .testi-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .cta-btns .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Contact form */
  .frow {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer__tagline {
    max-width: 100%;
  }

  .footer__bottom {
    gap: 8px;
  }

  .flegal {
    justify-content: center;
  }
}

/* ─────────────────────────────────────────
   SMALL MOBILE  ≤ 380px
───────────────────────────────────────── */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .hero__h1 {
    font-size: 2.5em;
  }

  .dev-tags {
    grid-template-columns: 1fr;
  }

  .about-chips {
    gap: 6px;
  }

  .about-chip {
    font-size: 0.6875em;
    padding: 4px 10px;
  }

  .lang-selector {
    padding: 4px 8px;
    font-size: 0.6875em;
  }
}


/* ───────── COOKIE CONSENT (cookie-consent.js) ───────── */
.cc-banner {
  position: fixed;
  z-index: 1000;
  right: 20px; /* bottom-right: keeps the hero call-to-action on the left visible */
  bottom: 20px;
  width: min(440px, calc(100vw - 40px));
  padding: 22px 22px 16px;
  background: var(--parchment);
  color: var(--ink);
  border: 1px solid var(--warm-mid);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 25, 22, .24);
  font-family: var(--sans);
}

.cc-banner[hidden] {
  display: none;
}

.cc-banner__title {
  font-family: var(--serif);
  font-size: 1.375em;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

.cc-banner__text {
  font-size: 0.8125em;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.cc-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cc-banner__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
}

/* buttons: "allow" and "reject" are deliberately the same size */
.cc-btn {
  font-family: var(--sans);
  font-size: 0.8125em;
  font-weight: 500;
  line-height: 1.2;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--forest);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.cc-btn--primary {
  background: var(--forest);
  color: var(--parchment);
}

.cc-btn--primary:hover {
  background: var(--forest-deep);
}

.cc-btn--secondary {
  background: transparent;
  color: var(--forest);
}

.cc-btn--secondary:hover {
  background: var(--forest-tint);
}

.cc-link {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.75em;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cc-link:hover {
  color: var(--forest);
}

.cc-btn:focus-visible,
.cc-link:focus-visible,
.cc-close:focus-visible,
.cc-dialog a:focus-visible,
.cc-switch input:focus-visible+.cc-switch__ui {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* dialog */
html.cc-lock,
body.cc-lock {
  overflow: hidden;
}

body.cc-lock .cc-banner {
  visibility: hidden;
}

.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 28, 23, .58);
}

.cc-overlay[hidden] {
  display: none;
}

.cc-dialog {
  display: flex;
  flex-direction: column;
  width: min(780px, 100%);
  max-height: min(90vh, 920px);
  background: var(--parchment);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  font-family: var(--sans);
  overflow: hidden;
}

.cc-dialog:focus {
  outline: none;
}

.cc-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--rule);
}

.cc-dialog__title {
  font-family: var(--serif);
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.15;
}

.cc-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
}

.cc-close:hover {
  background: var(--warm-mid);
}

.cc-dialog__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 26px 26px;
  font-size: 0.875em;
  line-height: 1.65;
  color: var(--ink-2);
}

.cc-dialog__body p+p {
  margin-top: 10px;
}

.cc-dialog__body a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-sec+.cc-sec {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.cc-sec h3 {
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.cc-status {
  color: var(--ink-3);
  margin-bottom: 8px;
}

.cc-cat {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.cc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.cc-cat__title,
.cc-list__cat {
  font-size: 1em;
  font-weight: 600;
  color: var(--ink);
}

.cc-list__cat {
  margin: 20px 0 8px;
}

.cc-unused {
  margin-top: 14px;
  color: var(--ink-3);
  font-style: italic;
}

/* switch */
.cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cc-switch__ui {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--warm-mid);
  transition: background .2s var(--ease);
}

.cc-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--parchment);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}

.cc-switch input:checked+.cc-switch__ui {
  background: var(--forest);
}

.cc-switch input:checked+.cc-switch__ui::after {
  transform: translateX(18px);
}

.cc-switch input:disabled+.cc-switch__ui {
  opacity: .55;
}

.cc-switch input:disabled~.cc-switch__label {
  cursor: default;
}

.cc-switch__label {
  font-size: 0.8125em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* cookie list */
.cc-tablewrap {
  overflow-x: auto;
}

.cc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8125em;
  line-height: 1.5;
}

.cc-table th,
.cc-table td {
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.cc-table th:nth-child(1) { width: 25%; }
.cc-table th:nth-child(2) { width: 14%; }
.cc-table th:nth-child(3) { width: 31%; }
.cc-table th:nth-child(4) { width: 14%; }
.cc-table th:nth-child(5) { width: 16%; }

.cc-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
}

.cc-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  white-space: nowrap;
}

.cc-domain {
  color: var(--ink-3);
}

.cc-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

@media (max-width: 640px) {
  .cc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 18px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
  }

  .cc-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cc-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .cc-dialog__head,
  .cc-dialog__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cc-dialog__foot {
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    flex-direction: column-reverse;
  }

  .cc-dialog__foot .cc-btn {
    width: 100%;
  }

  /* cookie list: one card per cookie */
  .cc-table {
    table-layout: auto;
  }

  .cc-table thead {
    display: none;
  }

  .cc-table,
  .cc-table tbody,
  .cc-table tr,
  .cc-table td {
    display: block;
    width: 100%;
  }

  .cc-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
  }

  .cc-table td {
    padding: 3px 0;
    border: 0;
  }

  .cc-table code {
    white-space: normal;
    word-break: break-all;
  }

  .cc-table td::before {
    content: attr(data-label) ': ';
    font-weight: 600;
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {

  .cc-btn,
  .cc-switch__ui,
  .cc-switch__ui::after {
    transition: none;
  }
}


/* ───────── EXAMPLE / SCENARIO PAGES (beispiel-*.html) ───────── */
.example-body {
  background: var(--parchment);
}

.example-hero-container.hans {
  background: url('./isolierter-senior/hans-desktop.jpg') no-repeat center center / 100% var(--parchment);
}

.example-hero-container.elsa {
  background: url('./wasserschaden/elsa-desktop.jpg') no-repeat center center / 100% var(--parchment);
}

.example-hero-container.inge {
  background: url('./ferienwohnung-management/inge-desktop.jpg') no-repeat center center / 100% var(--parchment);
}

.example-hero-container.marc {
  background: linear-gradient(to right,
        rgba(247, 244, 237, 0) 2%,
        rgba(247, 244, 237, 1) 30%,
        rgba(247, 244, 237, 1) 70%,
        rgba(247, 244, 237, 0) 90%
      ),url('./zu-viele-apps/marc-desktop.jpg') no-repeat center center / 100% var(--parchment);
}

.example-hero {
  padding: 160px 0 0;
  /*background: var(--parchment);*/
  text-align: center;
}

.example-hero__h {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 14px 0 10px;
}

.example-hero__h em {
  font-style: italic;
  color: var(--forest-mid);
  font-weight: 400;
}

.example-body--mieter .example-hero__h em {
  color: var(--burgundy-mid);
}

.example-body--senioren .example-hero__h em {
  color: var(--gold-mid);
}

.example-body--ferien .example-hero__h em {
  color: var(--marine-mid);
}

.example-hero__sub {
  font-size: 1.0625em;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.example-disclaimer {
  display: block;
  font-size: 0.75em;
  color: var(--ink-4);
  background: var(--cream);
  border: 1px solid var(--warm-mid);
  border-radius: 8px;
  padding: 10px 18px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.example-narrow {
  max-width: 640px;
  margin: 0 auto;
}

.example-mid {
  max-width: 800px;
  margin: 0 auto;
}

.example-section-top {
  padding: 56px 0;
}

.example-section {
  padding: 56px 0;
  background: var(--parchment);
}

.example-section--alt {
  background: var(--cream);
}

.example-h2-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.example-h2 {
  font-family: var(--serif);
  font-size: 1.75em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

.example-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  display: grid;
  place-items: center;
}

.badge--senioren {
  background: var(--gold-mid);
}

.badge--mieter {
  background: var(--burgundy-mid);
}

.badge--ferien {
  background: var(--marine-mid);
}

.example-badge--amber {
  background: var(--amber);
}

.example-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 28px auto 8px;
}

.example-hero__badge .example-badge {
  width: 48px;
  height: 48px;
}

.example-hero__tag {
  font-size: 0.8125em;
  font-weight: 500;
  color: var(--forest);
  text-align: center;
  line-height: 1.5;
}

.example-p {
  font-size: 0.9375em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.75;
}

.example-worry-list {
  list-style: none;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.example-worry-list li {
  font-size: 0.9375em;
  color: var(--ink-3);
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  line-height: 1.5;
}

.example-worry-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--amber);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1em;
}

.example-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.example-sol-card {
  background: var(--cream);
  border: 1px solid var(--warm-mid);
  border-radius: 12px;
  padding: 22px;
}

.example-sol-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--parchment);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.example-sol-t {
  font-family: var(--sans);
  font-size: 0.875em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.example-sol-b {
  font-size: 0.8125em;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.6;
}

.example-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.example-outcomes__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.example-outcomes__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--parchment);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.example-outcomes__t {
  font-family: var(--serif);
  font-size: 1.25em;
  color: var(--forest);
  margin: 0;
}

.example-outcomes__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.example-outcomes__list li {
  font-size: 0.875em;
  color: var(--ink-3);
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}

.example-outcomes__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-size: 0.875em;
}

.example-cta-sec {
  padding: 72px 0 96px;
  background: var(--forest);
  text-align: center;
}

.example-cta-sec--senioren {
  background: var(--gold);
}

.example-cta-sec--mieter {
  background: var(--burgundy);
}

.example-cta-sec--ferien {
  background: var(--marine);
}


.example-cost {
  display: inline-block;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 24px 40px;
  margin-bottom: 40px;
}

.example-cost__lbl {
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, .5);
  margin-bottom: 6px;
}

.example-cost__price {
  font-family: var(--serif);
  font-size: 1.25em;
  color: var(--amber-warm);
}
.example-cost__price .pkg__mo,
.example-cost__price .pkg__from {
  font-size: 0.75em;
  color: var(--amber-warm);
  margin-right: 4px;
}

.example-cost__price .pkg__num {
   font-family: var(--sans);
    font-size: 2.5em;
    font-weight: 100;
    letter-spacing: -.03em;
    color: var(--amber-warm);
    line-height: 1;
}

.example-cost__note {
  font-size: 0.75em;
  color: rgba(247, 244, 237, .5);
  margin-top: 6px;
}

.example-cta__t {
  font-family: var(--serif);
  font-size: 1.875em;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 12px;
}

.example-cta__b {
  font-size: 0.9375em;
  color: rgba(247, 244, 237, .68);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.example-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.example-back-link {
  display: block;
  font-size: 0.8125em;
  color: rgba(247, 244, 237, .5);
}

.example-back-link:hover {
  color: var(--parchment);
}

@media (max-width: 1220px) {
  .example-hero-container.hans {
    background: linear-gradient(to bottom,
        rgba(247, 244, 237, 1) 2%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 0) 60%,
        rgba(247, 244, 237, 1) 95%
      ),url('./isolierter-senior/hans-desktop.jpg') no-repeat center center / 100% var(--parchment);
  }
  .example-hero-container.elsa {
    background: linear-gradient(to bottom,
        rgba(247, 244, 237, 1) 2%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 0) 60%,
        rgba(247, 244, 237, 1) 90%
      ),url('./wasserschaden/elsa-desktop.jpg') no-repeat center 70% / 100% var(--parchment);
  }
  .example-hero-container.marc {
    background: linear-gradient(to bottom,
        rgba(247, 244, 237, 1) 2%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 0) 60%,
        rgba(247, 244, 237, 1) 90%
      ),url('./zu-viele-apps/marc-desktop.jpg') no-repeat center 70% / 100% var(--parchment);
  }
}
@media (max-width: 1380px) {
  .example-hero-container.inge {
    background: linear-gradient(to bottom,
        rgba(247, 244, 237, 1) 2%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 0) 60%,
        rgba(247, 244, 237, 1) 90%
      ),url('./ferienwohnung-management/inge-desktop.jpg') no-repeat center 70% / 100% var(--parchment);
  }
}
@media (max-width: 900px) {
  .example-hero-container.elsa {
    background: linear-gradient(to top,
        rgba(247, 244, 237, 1) 30%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 1) 70%
      ),url('./wasserschaden/elsa-desktop.jpg') no-repeat center center / contain var(--parchment);
  }

  .example-hero-container.inge {
    background: linear-gradient(to top,
        rgba(247, 244, 237, 1) 30%,
        rgba(247, 244, 237, 0) 50%,
        rgba(247, 244, 237, 1) 70%
      ),url('./ferienwohnung-management/inge-desktop.jpg') no-repeat center center / contain var(--parchment);
  }

  .example-hero {
    padding: 130px 0 56px;
  }

  .example-hero__h {
    font-size: 2em;
  }

  .example-sol-grid {
    grid-template-columns: 1fr 1fr;
  }

  .example-outcomes {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .example-hero-container.hans {
    background: linear-gradient(to bottom,
      rgba(247, 244, 237, 0.5) 0%,
      rgba(247, 244, 237, 0.1) 50%,
      rgba(247, 244, 237, 0.5) 60%,
      rgba(247, 244, 237, 1) 100%
    ),url('./isolierter-senior/hans-mobile.jpg') no-repeat center 40% / contain var(--parchment);
  }

  .example-hero-container.elsa {
    background: url('./wasserschaden/elsa-mobile.jpg') no-repeat center bottom  / contain var(--parchment);
    padding-bottom: 70%;
  }

  .example-hero-container.inge {
    background: url('./ferienwohnung-management/inge-mobile.jpg') no-repeat center bottom / contain var(--parchment);
    padding-bottom: 70%;
  }

  .example-hero-container.marc {
    background: url('./zu-viele-apps/marc-mobile.jpg') no-repeat center bottom / contain var(--parchment);
    padding-bottom: 70%;
  }


  .example-hero {
    padding: 130px 0 0;
  }
  .example-sol-grid {
    grid-template-columns: 1fr;
  }
  .example-p {
    background: linear-gradient(to bottom,
        rgba(247, 244, 237, 1) 2%,
        rgba(247, 244, 237, 0.7) 90%,
        rgba(247, 244, 237, 0.4) 100%
      );
    padding-bottom: 20px;  
  }
}

/* ───────── LEGAL PAGES (impressum.html, datenschutz.html, agb.html) ───────── */
.nav--solid {
  background: var(--forest-deep);
  padding: 14px 0;
}

.nav--senioren {
  background: var(--gold);
}

.nav--mieter {
  background: var(--burgundy);
}

.nav--ferien {
  background: var(--marine);
}

.legal-nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-back {
  white-space: nowrap;
  font-size: 0.8125em;
  color: rgba(247, 244, 237, .75);
  text-decoration: none;
  transition: color .2s;
}

.legal-back:hover {
  color: var(--parchment);
}

.legal-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal {
  flex: 1 0 auto;
  background: var(--parchment);
  padding: 132px 0 96px;
}

.legal .container {
  max-width: 860px;
}

.legal h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal__meta {
  font-size: 0.8125em;
  color: var(--ink-3);
  margin-bottom: 34px;
}

.legal__notice {
  margin-bottom: 26px;
  padding: 12px 16px;
  background: var(--amber-tint);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  font-size: 0.875em;
  line-height: 1.55;
  color: var(--ink-2);
}

.legal [hidden] {
  display: none;
}

.legal h2 {
  font-family: var(--serif);
  font-size: 2.5em;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 40px 0 10px;
}

.legal h3 {
  font-size: 1em;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 6px;
}

.legal p,
.legal li {
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-2);
}

.legal p+p {
  margin-top: 12px;
}

.legal a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__block+.legal__block {
  margin-top: 30px;
}

.legal h1+.legal__block {
  margin-top: 28px;
}

.legal__block h2 {
  margin-top: 0;
}

.legal__contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 28px;
  font-size: 1.2em;
  line-height: 1.6;
}

.legal__contact dt {
  font-weight: 400;
  color: var(--ink);
}

.footer--legal {
  padding: 26px 0;
}

.footer--legal .flegal a {
  color: rgba(247, 244, 237, .6);
}

.footer--legal .flegal a:hover {
  color: var(--parchment);
}

/* Larger legal text is for desktop only; tablet/mobile keep the original sizes
   (the base font is already 20px at this breakpoint, see the html, body rule) */
@media (max-width: 900px) {
  .legal h2 {
    font-size: 1.625em;
  }

  .legal p,
  .legal li {
    font-size: 1em;
  }
}

@media (max-width: 640px) {
  .legal {
    padding: 104px 0 64px;
  }

  .legal-nav__right {
    gap: 4px;
  }

  .legal-back {
    font-size: 0.75em;
    margin-left: 10px;
  }

  .legal .lang-selector,
  .nav--solid .lang-selector {
    margin-right: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .legal__contact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal__contact dd {
    margin-bottom: 12px;
  }
}

/* very narrow phones: the logo already links home */
@media (max-width: 480px) {
  .legal-back {
    display: inline-block;
    max-width: 20px;
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 2px;
    margin-left: 4px;
    position: relative;
    color: transparent
  }
  .legal-back::after {
    content: '←';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2em;
    line-height: 1em;
    color: rgba(247, 244, 237, .6);
  }

}

.social-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.social-icon svg {
    display: block;
}

.social-icon--x svg {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 32px;
    height: 32px;
}

/* ── Blog post tables ─────────────────────────────────────────────
   Calm, readable tables for markdown tables in blog posts.
   Scope: adjust the selector list if your post body uses another class. */

:where(.blog-post, .blog-post__content, article) .table-wrap {
  margin: 28px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--warm-mid, #d6cfc0);
  border-radius: 12px;
  background: var(--parchment, #f7f4ed);
}

:where(.blog-post, .blog-post__content, article) table {
  width: 100%;
  min-width: 640px;                 /* below this the wrapper scrolls sideways */
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
  font-variant-numeric: lining-nums;
}

/* header */
:where(.blog-post, .blog-post__content, article) thead th {
  padding: 12px 16px;
  background: var(--cream, #ede9df);
  border-bottom: 1px solid var(--warm-mid, #d6cfc0);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;                 /* the browser default centres th */
  color: var(--ink-3, #6a6860);
  white-space: nowrap;
}

/* cells */
:where(.blog-post, .blog-post__content, article) tbody td {
  padding: 14px 16px;
  vertical-align: top;              /* all columns start on the same line */
  border-bottom: 1px solid var(--rule, rgba(26, 25, 22, 0.10));
  color: var(--ink-2, #3a3830);
}

:where(.blog-post, .blog-post__content, article) tbody tr:last-child td {
  border-bottom: 0;
}

/* first column = the row's name */
:where(.blog-post, .blog-post__content, article) tbody td:first-child {
  font-weight: 500;
  color: var(--ink, #1a1916);
  min-width: 150px;
}

:where(.blog-post, .blog-post__content, article) tbody td:first-child a {
  text-decoration: underline;
  text-decoration-color: var(--warm-mid, #d6cfc0);
  text-underline-offset: 3px;
}

/* columns with figures or prices: avoid breaking mid-number */
:where(.blog-post, .blog-post__content, article) tbody td strong {
  font-weight: 600;
  color: var(--ink, #1a1916);
}

:where(.blog-post, .blog-post__content, article) tbody tr:hover td {
  background: rgba(237, 233, 223, 0.55);
}

/* links inside cells */
:where(.blog-post, .blog-post__content, article) table a {
  color: var(--forest, #2a4a35);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(.blog-post, .blog-post__content, article) table a:hover {
  color: var(--forest-mid, #3d6b4f);
}

/* phones: slightly tighter */
@media (max-width: 700px) {
  :where(.blog-post, .blog-post__content, article) thead th,
  :where(.blog-post, .blog-post__content, article) tbody td {
    padding: 10px 12px;
  }
  :where(.blog-post, .blog-post__content, article) table {
    font-size: 0.8125rem;
  }
}

/* ------------------------------------------------------------------
   Blog navigation: search button, topic dropdown, search overlay
------------------------------------------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav__search {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; cursor: pointer;
  font: inherit; font-size: .92em; color: rgba(247, 244, 237, .85);
  background: rgba(247, 244, 237, .06); border: 1px solid rgba(247, 244, 237, .22); border-radius: 999px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav__search:hover, .nav__search:focus-visible { background: rgba(247, 244, 237, .12); border-color: rgba(247, 244, 237, .45); color: var(--parchment); }
.nav__search kbd {
  font-family: inherit; font-size: .78em; line-height: 1; padding: 2px 6px; border: 1px solid rgba(247, 244, 237, .3); border-radius: 5px; opacity: .8;
}
.nav__sub--wide { min-width: 270px; max-height: calc(100vh - 120px); overflow-y: auto; }
.nav__sub-label {
  padding: 12px 20px 4px; font-size: .72em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 244, 237, .5);
}
.nav__sub-all a { border-top: 1px solid rgba(247, 244, 237, .1); margin-top: 6px; padding-top: 12px; color: var(--amber-warm); font-weight: 600; }
@media (max-width: 1180px) { .nav__search span, .nav__search kbd { display: none; } .nav__search { width: 40px; padding: 0; justify-content: center; } }
.drawer-search {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.01em;
  color: rgba(247, 244, 237, .78); background: none; border: 0; border-bottom: 1px solid rgba(247, 244, 237, .06);
  padding: 16px 24px; cursor: pointer;
}
.drawer-search:hover { color: var(--parchment); }

body.bsearch-open { overflow: hidden; }
.bsearch { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; }
.bsearch[hidden] { display: none; }
.bsearch__backdrop { position: absolute; inset: 0; background: rgba(20, 26, 38, .55); }
.bsearch__panel {
  position: relative; width: min(760px, 100%); max-height: 84vh; display: flex; flex-direction: column;
  background: var(--parchment); color: var(--ink); border-radius: 16px; box-shadow: 0 28px 70px rgba(0, 0, 0, .35); overflow: hidden;
  font-family: var(--sans);
}
.bsearch__bar { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 64px; border-bottom: 1px solid var(--rule); color: var(--forest); flex: none; }
.bsearch__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.15rem; color: var(--ink); height: 100%; -webkit-appearance: none; appearance: none; }
.bsearch__input::-webkit-search-cancel-button { display: none; }
.bsearch__esc { font: inherit; font-size: .78rem; color: var(--ink-3); background: transparent; border: 1px solid var(--warm-mid); border-radius: 6px; padding: 4px 9px; cursor: pointer; min-height: 32px; }
.bsearch__list { overflow-y: auto; padding: 6px 0; flex: 1; }
.bsearch__label { margin: 8px 20px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bsearch__msg { margin: 0; padding: 22px 20px; color: var(--ink-2); font-size: .95rem; }
.bsearch__item { display: flex; gap: 14px; align-items: center; padding: 10px 20px; color: inherit; text-decoration: none; }
.bsearch__item.is-active, .bsearch__item:hover { background: var(--forest-tint); }
.bsearch__thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--cream); }
.bsearch__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bsearch__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bsearch__txt b { font-weight: 500; font-size: 1rem; line-height: 1.3; }
.bsearch__txt small { font-size: .78rem; color: var(--ink-3); }
.bsearch__txt em { font-style: normal; font-size: .82rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsearch mark { background: #f3dca8; color: inherit; border-radius: 3px; padding: 0 2px; }
.bsearch__foot { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-3); flex: none; }
.bsearch__foot[hidden] { display: none; }
.bsearch__all { margin-left: auto; color: var(--forest); font-weight: 600; font-size: .9rem; text-decoration: none; }
@media (max-width: 640px) {
  .bsearch { padding: 0; }
  .bsearch__panel { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .bsearch__hint { display: none; }
  .bsearch__input { font-size: 16px; }
}

/* Compact header search (tablet + phone): centred pill that opens the search overlay */
.nav__searchbar { display: none; }
@media (max-width: 900px) {
  .nav__searchbar {
    display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; margin: 0 auto; flex: 0 1 340px; min-width: 0;
    font: inherit; font-size: 15px; color: rgba(247, 244, 237, .78); cursor: pointer; text-align: left;
    background: rgba(247, 244, 237, .06); border: 1px solid rgba(247, 244, 237, .22); border-radius: 999px;
  }
  .nav__searchbar:hover, .nav__searchbar:focus-visible { background: rgba(247, 244, 237, .12); border-color: rgba(247, 244, 237, .45); color: var(--parchment); }
  .nav__searchbar svg { flex: none; }
  .nav__searchbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav__inner:has(.nav__searchbar) { gap: 0; }
  .drawer-search { display: none; }
  .nav__drawer li:has(> .drawer-search) { display: none; }
}
@media (max-width: 640px) {
  .nav__inner:has(.nav__searchbar) .wordmark { display: none; }
  .nav__searchbar { flex: 1 1 auto; margin: 0 12px; }
}

/* Blog header: centre the link row on the page itself (not just between logo and language switch) */
@media (min-width: 901px) {
  .nav__inner { position: relative; }
  .nav__inner > .nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; width: max-content; }
}
/* Blog header: vertically centre every link/button in the row (text links sat above the search button) */
.nav__inner > .nav__links { align-items: center; }
.nav__inner > .nav__links > li { display: flex; align-items: center; height: 40px; }
/* Compact header: logo + wordmark never wrap; the search pill gives way instead */
@media (max-width: 900px) {
  .nav__inner > a.logo { flex: none; }
  .nav__inner > a.logo .wordmark { white-space: nowrap; }
  .nav__searchbar { flex: 0 1 340px; }
}
@media (max-width: 640px) {
  .nav__searchbar { flex: 1 1 auto; }
}

/* Crisper type: grayscale antialiasing, kerning/ligatures on, and no hairline weight for the serif headlines
   (Cormorant 300 is very thin and looks jagged on Windows screens at normal zoom). */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
}

.tm { font-size: .4em; font-weight: 400; letter-spacing: 0; vertical-align: super; line-height: 0; margin-left: .08em; }

/* Copyright notice (end of every post and of the insights list) */
.copyright-note {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(26, 25, 22, 0.72);
}
.copyright-note p { margin: 0 0 0.4rem; }
.copyright-note__title { font-weight: 600; color: var(--ink); }
.copyright-note a { color: inherit; text-decoration: underline; }
.copyright-note--list { margin: 3rem 0 0; padding-bottom: 3rem; }


/* Safe Swiss Cloud storage badge (footer, imprint) */
.footer__host { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:20px; font-size:.75rem; line-height:1.4; color:rgba(247,244,237,.72); text-decoration:none; }
.footer__host:hover { color:rgba(247,244,237,.95); }
.footer__host img { display:block; height:26px; width:auto; border-radius:4px; }
.legal__partner { display:inline-block; margin-top:12px; }
.legal__partner img { display:block; height:44px; width:auto; border-radius:6px; }
