@import url("fonts/fonts.css");

/* —— Tokens —— */
:root {
  --bg: #faf8f5;
  --bg-alt: #f3f0eb;
  --text: #1a1a1a;
  --muted: #555;
  --petrol: #2b6777;
  --petrol-light: #dce9ec;
  --heute-bg: #f1eee9;
  --max: 680px;
  --wide: 960px;
  --radius-pill: 999px;
  --space: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(3.5rem, 10vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--petrol);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Type —— */
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  margin: 0 0 1.25rem;
  text-align: center;
}

h2 em,
h1 em,
.hero__sub em {
  font-style: italic;
  color: var(--petrol);
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.section__lead {
  text-align: center;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* —— Layout —— */
.wrap {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--space), var(--max));
}

.section {
  padding: var(--section) 0;
  background: var(--bg);
  position: relative;
}

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

.section-doodled {
  overflow: visible;
}

.section-doodled > .wrap,
.hero > .wrap {
  position: relative;
  z-index: 1;
}

.section--narrow .wrap {
  width: min(100% - 2 * var(--space), var(--max));
}

/* —— Version note —— */
.version-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.4rem var(--space);
  border-bottom: 1px solid var(--petrol-light);
  background: var(--bg);
  margin: 0;
}

.version-note a {
  color: var(--muted);
  text-decoration: none;
}

.version-note a:hover {
  color: var(--petrol);
  text-decoration: underline;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--petrol);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--petrol);
}

.nav-mobile {
  position: relative;
}

.nav-mobile__toggle {
  list-style: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--petrol);
  border: 1px solid var(--petrol);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
}

.nav-mobile__toggle::-webkit-details-marker {
  display: none;
}

.nav-mobile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--bg);
  border: 1px solid var(--petrol-light);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 12rem;
  z-index: 60;
}

.nav-mobile__panel a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--petrol);
  color: #fff;
  border-color: var(--petrol);
}

.btn--primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--petrol);
  border-color: var(--petrol);
}

.btn--secondary:hover {
  background: var(--petrol-light);
  color: var(--petrol);
}

.btn--small {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3.5rem, 10vw, 5.5rem);
  background: var(--bg);
  position: relative;
  overflow: visible;
}

.hero .wrap {
  width: min(100% - 2 * var(--space), var(--max));
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--petrol);
  background: var(--petrol-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin: 0 0 1.5rem;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36em;
  margin-inline: auto;
}

.hero .btn {
  margin-bottom: 0.75rem;
}

.hero__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.cta-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.cta-inline .hero__meta {
  margin: 0;
}

.cta-inline .btn {
  margin-bottom: 0;
}

/* —— Topic chips + slider —— */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.topic-chips a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--petrol-light);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topic-chips a:hover,
.topic-chips a.is-active {
  color: #fff;
  background: var(--petrol);
  border-color: var(--petrol);
}

.slider-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--space));
}

@media (min-width: 960px) {
  .slider-wrap {
    margin: 0;
  }
}

.slider {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Horizontal peeks come from cloned neighbor cards (circular loop), not empty padding */
  padding: 1.35rem 0 1.75rem;
  scrollbar-width: none;
}

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

.slide-card {
  flex: 0 0 min(78vw, 300px);
  scroll-snap-align: center;
  position: relative;
  isolation: isolate;
  background: color-mix(in srgb, #fff 88%, var(--petrol-light) 12%);
  border: 1px solid color-mix(in srgb, var(--petrol-light) 70%, #fff);
  border-radius: 1.05rem;
  padding: 1.25rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0.38;
  transform: scale(0.9);
  transform-origin: center center;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset,
    0 6px 16px color-mix(in srgb, var(--text) 6%, transparent);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.slide-card.is-side {
  opacity: 0.55;
  transform: scale(0.94);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 75%, transparent) inset,
    0 10px 24px color-mix(in srgb, var(--text) 8%, transparent);
}

.slide-card.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: color-mix(in srgb, var(--petrol) 28%, var(--petrol-light));
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 88%, transparent) inset,
    0 -1px 0 color-mix(in srgb, var(--petrol) 8%, transparent) inset,
    0 22px 44px color-mix(in srgb, var(--text) 14%, transparent),
    0 8px 18px color-mix(in srgb, var(--petrol) 12%, transparent),
    0 2px 4px color-mix(in srgb, var(--text) 6%, transparent);
  z-index: 2;
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, #fff 55%, transparent) 0%,
    transparent 42%,
    color-mix(in srgb, var(--petrol-light) 35%, transparent) 100%
  );
  opacity: 0.7;
  z-index: 0;
}

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

.slide-card .block-heute,
.slide-card .block-ordnung {
  box-shadow: 0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset;
}

@media (min-width: 480px) {
  .slide-card {
    flex-basis: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide-card {
    transition: none;
  }
}

.slide-card__doodle {
  width: 56px;
  height: 56px;
  color: var(--petrol);
}

.slide-card__doodle svg {
  width: 56px;
  height: 56px;
  display: block;
}

.slide-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}

.block-heute,
.block-ordnung {
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.block-heute {
  background: var(--heute-bg);
}

.block-ordnung {
  background: var(--petrol-light);
}

.block-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
}

.block-heute .block-label {
  color: var(--muted);
  background: #e8e4de;
}

.block-ordnung .block-label {
  color: var(--petrol);
  background: #fff;
}

.block-heute p,
.block-ordnung p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.block-heute p {
  color: var(--muted);
}

.block-ordnung p {
  color: var(--petrol);
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.block-ordnung p::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 600;
}

.slide-arrow-down {
  display: flex;
  justify-content: center;
  color: var(--petrol);
  opacity: 0.7;
}

.slider-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.15rem 0 0.65rem;
}

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.slider-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: var(--petrol);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--petrol) 32%, transparent);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.slider-btn:hover {
  background: var(--text);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 22%, transparent);
}

.slider-btn:active {
  transform: scale(0.96);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 16rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--petrol) 28%, var(--petrol-light));
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, width 0.15s ease;
}

.slider-dots button.is-active {
  background: var(--petrol);
  width: 1.15rem;
  border-radius: 999px;
}

.transition-block {
  text-align: center;
  margin-top: 3rem;
  padding: 0 var(--space);
}

.transition-doodle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--petrol);
}

.transition-line {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.4;
  color: var(--text);
  max-width: var(--max);
  margin: 0 auto;
}

/* —— Quiet / umstellen —— */
.quiet-block {
  text-align: center;
}

.quiet-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  flex-wrap: wrap;
}

.quiet-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  width: 5.5rem;
}

.quiet-icon svg {
  width: 48px;
  height: 48px;
  color: var(--petrol);
}

.quiet-icon span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

.quiet-line {
  width: 2rem;
  height: 1px;
  background: var(--petrol);
  opacity: 0.4;
  flex-shrink: 0;
  margin-bottom: 1.4rem;
}

.quiet-block p {
  font-size: 1.1rem;
  max-width: 36em;
  margin-inline: auto;
}

/* —— Solution —— */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.steps li {
  text-align: center;
  padding: 0 0.5rem;
}

.steps__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  color: var(--petrol);
}

.steps__icon svg {
  width: 48px;
  height: 48px;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--petrol-light);
  color: var(--petrol);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

.section-subhead {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hints {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.5rem;
  max-width: var(--max);
}

.hints li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hints__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--petrol);
  margin-top: 0.1rem;
}

.hints__icon svg {
  width: 28px;
  height: 28px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .before-after {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
  }
}

.mock-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 0.5rem;
  text-align: center;
}

.before-after__arrow {
  display: flex;
  justify-content: center;
  transform: rotate(90deg);
}

@media (min-width: 768px) {
  .before-after__arrow {
    transform: none;
  }
}

.excel-mock {
  border: 1px solid #c5c5c5;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fff;
  font-size: 0.7rem;
}

.excel-mock__toolbar {
  display: flex;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  background: #ececec;
  border-bottom: 1px solid #c5c5c5;
}

.excel-mock__toolbar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #bbb;
}

.excel-mock table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, system-ui, sans-serif;
}

.excel-mock th,
.excel-mock td {
  border: 1px solid #e0e0e0;
  padding: 0.3rem 0.35rem;
  white-space: nowrap;
  color: var(--muted);
}

.excel-mock th {
  background: #f3f3f3;
  font-weight: 500;
  color: var(--text);
}

.excel-mock__dup td {
  background: #f0efed;
  color: #888;
}

.app-mock {
  border: 1px solid var(--petrol-light);
  border-radius: 0.65rem;
  background: #fff;
  display: grid;
  grid-template-columns: 56px 1fr;
  overflow: hidden;
  min-height: 160px;
}

.app-mock__side {
  background: var(--petrol-light);
  padding: 0.75rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.app-mock__side span {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.3rem;
  border: 1.2px solid var(--petrol);
  opacity: 0.7;
}

.app-mock__body {
  padding: 0.85rem 1rem;
}

.app-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-family: Fraunces, Georgia, serif;
}

.app-mock__header strong {
  font-weight: 400;
}

.pill {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.pill--light {
  background: var(--petrol-light);
  color: var(--petrol);
}

.app-mock__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-mock__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--petrol-light);
  font-size: 0.9rem;
}

.app-mock__title {
  color: var(--text);
}

.status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.status--gemeldet {
  background: var(--petrol-light);
  color: var(--petrol);
}

.status--beauftragt {
  background: #e8f0f2;
  color: var(--petrol);
  border: 1px solid var(--petrol);
}

.status--erledigt {
  background: var(--petrol);
  color: #fff;
}

/* —— Price —— */
.price-wrap {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}

.price-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--petrol-light);
  border-radius: 0.85rem;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: visible;
}

.price-card__hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  min-height: 3.5rem;
  padding-right: min(7.5rem, 42vw);
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Arrow from 690€ → Caveat note; always near the amount, all breakpoints */
.price-card__hero .doodle--preis {
  display: block;
  position: absolute;
  left: 52%;
  top: -0.65rem;
  width: min(175px, 48vw);
  height: auto;
  margin: 0;
  transform: rotate(3deg);
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 480px) {
  .price-card__hero {
    padding-right: 9rem;
  }

  .price-card__hero .doodle--preis {
    left: 54%;
    width: 190px;
    top: -0.85rem;
  }
}

.price-card__old {
  font-size: 1.15rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-card__new {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--petrol);
}

.price-card__intro {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.price-card .btn {
  margin-top: 1.25rem;
}

/* —— About —— */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about__grid {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    text-align: left;
  }
}

.about__photo-wrap {
  justify-self: center;
}

.about__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--petrol-light);
}

@media (min-width: 640px) {
  .about__photo {
    width: 180px;
    height: 180px;
  }
}

.about__grid p {
  margin: 0;
}

/* —— FAQ —— */
.faq {
  max-width: var(--max);
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--petrol-light);
  padding: 0.85rem 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--petrol);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.65rem 0 0.35rem;
  padding-right: 1.5rem;
}

/* —— CTA —— */
.section--cta {
  text-align: center;
  padding-bottom: calc(var(--section) + 1rem);
}

.cta-sketch {
  max-width: 280px;
  margin: 0 auto 1.5rem;
}

.cta-sketch svg {
  width: 100%;
  height: auto;
}

.section--cta .btn {
  margin: 0.5rem 0 1.25rem;
}

.cta-alt {
  font-size: 0.98rem;
}

.cta-alt a {
  text-decoration: none;
}

.cta-alt a:hover {
  text-decoration: underline;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--petrol-light);
  padding: 1.5rem var(--space) 2rem;
  text-align: center;
  background: var(--bg);
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--petrol);
}

/* —— Legal pages —— */
.legal-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 var(--section);
}

.legal-page h1 {
  text-align: left;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  text-align: left;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* —— Hand-drawn doodles (rough.js + Caveat) ——
   Side doodles live only in the outer gutters outside --wide/--max,
   so they never cover headings, chips, slider, or CTAs. */
.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  height: auto;
}

/* In-flow sketches (never absolute over copy) */
.doodle--inline {
  position: relative;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

.slide-card__doodle svg {
  width: 56px;
  height: 56px;
  display: block;
}

.loesung-doodle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0 var(--space);
  overflow: visible;
}

.doodle--scissors {
  width: min(220px, 70vw);
  margin-bottom: 1rem;
  transform: rotate(-3deg);
}

.doodle--loesung {
  width: min(440px, 100%);
  max-width: 100%;
  height: auto;
  transform: rotate(-1deg);
}

.doodle--cta {
  width: min(260px, 80vw);
  margin-bottom: 1.25rem;
  transform: rotate(2deg);
}

.price-wrap {
  position: relative;
}

/* Default: hide absolute margin doodles — shown when gutter can fit ~180px+ */
.doodle--hero-wild,
.doodle--hero-sticky,
.doodle--mieten,
.doodle--formeln,
.doodle--nebenkosten,
.doodle--maengel,
.doodle--zusammenarbeit,
.doodle--urlaub {
  display: none;
}

/*
  Gutter centering:
  left gutter center  = (100% - column) / 4
  right gutter center = 100% - (100% - column) / 4
  Width ≈ gutter − padding, clamped to brief range 180–320px.
*/

/* Hero column --max 680 → gutter ≥ ~200px from ~1100px */
@media (min-width: 1100px) {
  .doodle--hero-wild {
    display: block;
    top: 1.25rem;
    left: auto;
    right: calc((100% - var(--max)) / 4);
    width: min(240px, calc((100% - var(--max)) / 2 - 1.5rem));
    transform: translateX(50%) rotate(6deg);
  }

  .doodle--hero-sticky {
    display: block;
    bottom: 2rem;
    left: calc((100% - var(--max)) / 4);
    right: auto;
    width: min(200px, calc((100% - var(--max)) / 2 - 1.5rem));
    transform: translateX(-50%) rotate(-7deg);
  }
}

@media (min-width: 1400px) {
  .doodle--hero-wild {
    width: min(300px, calc((100% - var(--max)) / 2 - 1.25rem));
  }

  .doodle--hero-sticky {
    width: min(240px, calc((100% - var(--max)) / 2 - 1.25rem));
  }
}

/* Wide column --wide 960 → gutter ≥ ~200px from ~1400px */
@media (min-width: 1400px) {
  .doodle--mieten {
    display: block;
    top: 9rem;
    left: auto;
    right: calc((100% - var(--wide)) / 4);
    width: min(220px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(50%) rotate(5deg);
  }

  .doodle--zusammenarbeit {
    display: block;
    top: 24rem;
    left: auto;
    right: calc((100% - var(--wide)) / 4);
    width: min(210px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(50%) rotate(7deg);
  }

  .doodle--formeln {
    display: block;
    top: 40rem;
    left: calc((100% - var(--wide)) / 4);
    right: auto;
    width: min(220px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(-50%) rotate(-6deg);
  }

  .doodle--nebenkosten {
    display: block;
    top: 56rem;
    left: auto;
    right: calc((100% - var(--wide)) / 4);
    width: min(220px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(50%) rotate(4deg);
  }

  .doodle--maengel {
    display: block;
    top: 72rem;
    left: calc((100% - var(--wide)) / 4);
    right: auto;
    width: min(210px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(-50%) rotate(-5deg);
  }

  .doodle--urlaub {
    display: block;
    bottom: 12rem;
    left: calc((100% - var(--wide)) / 4);
    right: auto;
    width: min(230px, calc((100% - var(--wide)) / 2 - 1.5rem));
    transform: translateX(-50%) rotate(-4deg);
  }

}

@media (min-width: 1600px) {
  .doodle--hero-wild {
    width: min(320px, calc((100% - var(--max)) / 2 - 1rem));
  }

  .doodle--hero-sticky {
    width: min(260px, calc((100% - var(--max)) / 2 - 1rem));
  }

  .doodle--mieten,
  .doodle--formeln,
  .doodle--nebenkosten,
  .doodle--maengel,
  .doodle--zusammenarbeit,
  .doodle--urlaub {
    width: min(280px, calc((100% - var(--wide)) / 2 - 1.25rem));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .doodle--keep {
    animation: doodle-wiggle 7s ease-in-out infinite;
  }
}

@keyframes doodle-wiggle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

/* Mobile: keep-set in document flow only — never absolute over copy */
@media (max-width: 767px) {
  .doodle--hero-wild,
  .doodle--hero-sticky,
  .doodle--mieten,
  .doodle--formeln,
  .doodle--nebenkosten,
  .doodle--maengel,
  .doodle--zusammenarbeit,
  .doodle--urlaub {
    display: none;
  }

  .doodle--hero-wild.doodle--keep {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 82%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    transform: rotate(-2deg);
  }

  .doodle--scissors,
  .doodle--loesung,
  .doodle--cta {
    display: block;
    position: relative;
    width: 82%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .doodle--loesung {
    width: min(100%, 100%);
    max-width: min(100%, 380px);
  }

  /* Keep price arrow anchored to 690€ on narrow screens */
  .price-card__hero .doodle--preis {
    display: block;
    left: 46%;
    top: -0.5rem;
    width: min(155px, 46vw);
    transform: rotate(2deg);
  }

  .price-card__hero {
    padding-right: min(6.5rem, 40vw);
    min-height: 3.75rem;
  }
}


