/* Variante 3 "Klartext": Rapsgelb, Pflaume, Bricolage Grotesque mit schmaler Display-Breite. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-full.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --gelb: #F2CF3E;
  --pflaume: #2A1730;
  --weiss: #FFFFFF;
  --himmel: #CFE2F5;
  --routine: #6F6175;
  --grau: #5B4C60;
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--pflaume);
  font-family: var(--font);
  font-size: 1.15rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--pflaume); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--pflaume); color: var(--gelb); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.h-xl {
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5rem);
  font-weight: 800; font-stretch: 78%;
  line-height: .95; letter-spacing: -0.02em;
}

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; background: var(--gelb); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: grid; gap: .1rem; text-decoration: none; padding-block: .6rem; }
.brand__name { font-weight: 800; font-size: 1.25rem; font-stretch: 85%; line-height: 1.1; }
.brand__sub { font-size: .8rem; font-weight: 500; color: var(--grau); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-size: 1rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: .5rem; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.nav .nav__cta { background: var(--pflaume); color: var(--gelb); padding: .5rem 1rem; border-radius: 6px; font-weight: 700; }
.nav .nav__cta:hover { text-decoration: none; background: #3D2445; }
@media (max-width: 47.99rem) { .nav li:not(:last-child) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--pflaume); color: var(--gelb);
  font-weight: 700; font-size: 1.1rem;
  padding: 1rem 1.6rem; border-radius: 6px;
}
.btn:hover { background: #3D2445; }
.link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* Hero */
.hero { background: var(--gelb); overflow: hidden; padding-top: clamp(2rem, 5vw, 4rem); }
.hero__inner { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 56rem) {
  .hero__inner { grid-template-columns: 1fr minmax(16rem, 24rem); }
  .hero h1 { grid-column: 1; }
  .hero__copy { grid-column: 1; }
  .hero__sketch { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
.hero h1 {
  font-size: clamp(3.2rem, 0.8rem + 8vw, 8.5rem);
  font-weight: 800; font-stretch: 75%;
  line-height: .86; letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (min-width: 56rem) { .hero__copy { padding-bottom: clamp(3rem, 6vw, 5rem); } }
.lead { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); max-width: 30em; }
.hero__sketch {
  width: min(24rem, 70vw); justify-self: end;
  mix-blend-mode: multiply;
  margin-bottom: -1px;
}

/* Wiederkehrende Abstände */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--plum { background: var(--pflaume); color: var(--weiss); }
.section--sky { background: var(--himmel); }

/* Aussage */
.statement__inner { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 60rem) { .statement__inner { grid-template-columns: 16rem 1fr; } }
.statement h2 { font-size: 1.15rem; font-weight: 700; padding-top: .6rem; }
.statement__big { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; max-width: 24em; font-stretch: 90%; }

/* Beispielwoche */
.week { background: var(--himmel); }
.week__head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
@media (min-width: 60rem) { .week__head { grid-template-columns: 1fr auto; } }
.week__head h2 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.4rem); font-weight: 800; font-stretch: 78%; line-height: .95; letter-spacing: -0.02em; }
.week__intro { grid-column: 1; margin: 0; color: var(--grau); max-width: 34em; }
@media (min-width: 60rem) { .switch { grid-column: 2; grid-row: 1 / span 2; } }

.switch {
  display: inline-flex; align-items: center; gap: .9rem; justify-self: start;
  font: inherit; font-weight: 700; font-size: 1.2rem; color: var(--pflaume);
  background: var(--weiss); border: 2px solid var(--pflaume); border-radius: 6px;
  padding: .6rem 1.2rem .6rem .7rem; cursor: pointer;
}
.switch[hidden] { display: none; }
.switch__track { width: 3.2rem; height: 1.8rem; border-radius: 999px; background: var(--routine); position: relative; transition: background-color .25s ease; }
.switch__thumb { position: absolute; top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--weiss); transition: transform .25s ease; }
.switch[aria-pressed="true"] .switch__track { background: var(--pflaume); }
.switch[aria-pressed="true"] .switch__thumb { transform: translateX(1.4rem); background: var(--gelb); }

.week__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.week__grid[hidden] { display: none; }
.day__name { font-weight: 700; margin: 0 0 .5rem; font-size: 1rem; }
.day__col { display: flex; flex-direction: column; gap: 4px; height: clamp(22rem, 46vw, 30rem); }
.blk {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  border-radius: 8px; padding: .5rem .6rem;
  border: 2px solid var(--pflaume);
  font-size: .9rem; line-height: 1.2; font-weight: 600;
  transition: flex-grow .7s cubic-bezier(.6, 0, .2, 1), padding .7s ease;
}
.blk.is-empty { padding-block: 0; border-width: 0; }
.blk--belege, .blk--bank, .blk--mahn, .blk--report { background: var(--routine); color: var(--weiss); }
.blk--fragen { background: var(--weiss); color: var(--pflaume); }
.blk--analyse { background: var(--gelb); color: var(--pflaume); }
@media (prefers-reduced-motion: reduce) { .blk, .switch__track, .switch__thumb { transition: none; } }
.day__short { display: none; }
@media (max-width: 40rem) {
  .week__grid { gap: .35rem; }
  .blk { color: transparent; padding: 0; border-radius: 6px; }
  .day__long { display: none; }
  .day__short { display: inline; }
}

.week__sum { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 700; margin: 2rem 0 0; }
.week__sum[hidden] { display: none; }

.week__details { margin-top: 1.5rem; }
.week__details summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; padding-block: .4rem; }
.week__table { border-collapse: collapse; width: 100%; max-width: 40rem; margin-top: 1rem; }
.week__table caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.week__table td { font-variant-numeric: tabular-nums; }
.week__table th, .week__table td { text-align: left; padding: .5rem 1rem .5rem 0; border-bottom: 1px solid var(--pflaume); }

.legend { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; font-size: 1rem; }
.legend[hidden] { display: none; }
.legend li { display: flex; align-items: center; gap: .5rem; }
.sw { width: 1.1rem; height: 1.1rem; border-radius: 4px; border: 2px solid var(--pflaume); }
.sw--routine { background: var(--routine); }
.sw--fragen { background: var(--weiss); }
.sw--analyse { background: var(--gelb); }

/* Angebot: was ich einrichte, was ich nicht mache */
.offer { display: grid; gap: 3rem 5rem; margin-top: 3rem; }
@media (min-width: 56rem) { .offer { grid-template-columns: 1.2fr 1fr; } }
.offer h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; margin-bottom: 1rem; }
.areas { margin: 0; }
.areas div { padding: 1.1rem 0; border-top: 3px solid var(--pflaume); }
.areas dt { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; font-stretch: 80%; line-height: 1.05; }
.areas dd { margin: .35rem 0 0; font-size: 1.15rem; }
.offer__col--no { background: var(--gelb); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 6px; align-self: start; }
.nolist { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; font-size: 1.15rem; }
.nolist li { position: relative; padding-left: 1.6rem; }
.nolist li::before { content: "\2715"; position: absolute; left: 0; top: 0; font-weight: 700; }

/* Schaffhausen */
.home { display: grid; gap: 3rem 5rem; align-items: start; }
@media (min-width: 60rem) { .home { grid-template-columns: 1fr 26rem; } }
.home__text h2 { margin-bottom: 1.5rem; }
.home__text .home__lead { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; line-height: 1.25; max-width: 24em; }
.home__text p { max-width: 36em; }
.home__creds { font-weight: 600; border-top: 3px solid var(--pflaume); padding-top: 1rem; margin-top: 2rem; }
.home__photo { border-radius: 6px; width: 100%; max-width: 26rem; }

/* Wie es losgeht */
.start { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 60rem) { .start { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.start p { font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); line-height: 1.45; margin: 0; max-width: 30em; color: color-mix(in srgb, var(--weiss) 90%, var(--pflaume)); }
.section--plum :focus-visible { outline-color: var(--gelb); }

/* Kontakt */
.contact { background: var(--gelb); padding-block: clamp(4rem, 10vw, 8rem); }
.contact h2 { font-size: clamp(2.6rem, 1rem + 6vw, 7rem); font-weight: 800; font-stretch: 75%; line-height: .9; letter-spacing: -0.025em; max-width: 14ch; }
.contact__mail { font-weight: 600; }
.contact__note { margin-top: 1.5rem; color: var(--grau); }

/* Fuss */
.foot { background: var(--pflaume); color: color-mix(in srgb, var(--weiss) 78%, var(--pflaume)); font-size: .95rem; padding-block: 1.75rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot :focus-visible { outline-color: var(--gelb); }
