@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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 {
  --paper: #EDE7DC;
  --ink: #2E1B13;
  --brown: #4A2E22;
  --orange: #F26B21;
  --lilac: #A58FD0;
  --rust: #9E3D1B;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
}
.skip:focus { left: 0; top: 0; z-index: 10; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: var(--pad); max-width: 90rem; margin-inline: auto; }

/* kopf */
.site { border-bottom: 2px solid var(--ink); }
.site .bar { display: flex; justify-content: space-between; align-items: baseline; gap: var(--gap); padding-block: .6rem; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; padding-block: .5rem; }
.site nav ul { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); flex-wrap: wrap; align-items: baseline; }
.site nav a { display: inline-block; padding-block: .5rem; text-decoration: none; font-weight: 500; }
.site nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.site nav .sprache { font-weight: 800; padding-inline: .6rem; background: var(--ink); color: var(--paper); }
.site nav .sprache:hover { background: var(--orange); color: var(--ink); text-decoration: none; }

/* einstieg */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); text-align: center; overflow: hidden; }
.hero-inner { display: grid; justify-items: center; gap: 1.25rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero-inner > p { max-width: 36rem; }


.over { position: relative; isolation: isolate; display: block; width: fit-content; font-weight: 900; font-stretch: 62%; font-size: clamp(4rem, 14vw, 10rem); line-height: .9; letter-spacing: -.02em; color: var(--rust); }
.over::before, .over::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; }
.over::before { color: var(--lilac); transform: translate(-.03em, -.025em); }
.over::after { color: var(--orange); transform: translate(.03em, .025em); }

.lead { font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }

.btn { display: inline-block; width: fit-content; background: var(--ink); color: var(--paper); padding: .9rem 1.4rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.btn:hover { background: var(--orange); color: var(--ink); }

/* blasse Blumen hinter Start und Leistungen */
.blumen { position: relative; isolation: isolate; overflow: hidden; }
.blumenfeld { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blume { position: absolute; display: block; }
.blume.f-orange { fill: var(--orange); }
.blume.f-lilac { fill: var(--lilac); }
.blume.f-brown { fill: var(--brown); }
.blume.f-rust { fill: var(--rust); }
.b1  { width: min(15rem, 38vw); left: -3rem;  top: 1.5rem;  opacity: .15; transform: rotate(12deg); }
.b2  { width: min(13rem, 34vw); right: -2.5rem; top: 4rem;   opacity: .24; transform: rotate(-16deg); }
.b3  { width: min(5rem, 14vw);  left: 15%;    top: 24rem;   opacity: .13; transform: rotate(30deg); }
.b4  { width: min(4rem, 12vw);  right: 21%;   top: 19rem;   opacity: .11; transform: rotate(-8deg); }
.b5  { width: min(4.5rem, 13vw); right: 7%;   top: 33rem;   opacity: .15; transform: rotate(20deg); }
.b6  { width: min(8rem, 22vw);  left: 5%;     top: 37rem;   opacity: .26; transform: rotate(-24deg); }
.b7  { width: min(8.5rem, 24vw); left: -2.5rem; bottom: 5rem; opacity: .14; transform: rotate(40deg); }
.b8  { width: min(5rem, 14vw);  left: 31%;    bottom: 2.5rem; opacity: .24; transform: rotate(-12deg); }
.b9  { width: min(7rem, 20vw);  right: 11%;   bottom: 9rem; opacity: .10; transform: rotate(15deg); }
.b10 { width: min(4rem, 12vw);  right: 3%;    bottom: 2rem; opacity: .13; transform: rotate(-30deg); }
@media (max-width: 34rem) { .b3, .b4, .b5, .b9, .b10 { display: none; } }

/* leistungen */
.leistungen { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 7vw, 6rem); border-bottom: 2px solid var(--ink); }
.felder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap); }
.js .felder:not(.bereit) { visibility: hidden; animation: zeigen 0s 2s forwards; }
@keyframes zeigen { to { visibility: visible; } }
.feld { display: flex; flex-direction: column; gap: 1.1rem; }
.zelle { height: 16.5rem; display: flex; align-items: center; }
.box { position: relative; container-type: inline-size; max-width: 100%; transform-origin: 0 0; }
.box svg { display: block; width: 100%; height: auto; overflow: visible; }
.box path { stroke-width: .8; stroke-linejoin: round; }
.box-a { width: 9.5rem; }
.box-b { width: 9rem; }
.box-c { width: 16rem; }
.box-d { width: 14rem; }
.f-orange { fill: var(--orange); stroke: var(--orange); }
.f-lilac { fill: var(--lilac); stroke: var(--lilac); }
.f-brown { fill: var(--brown); stroke: var(--brown); }
.f-rust { fill: var(--rust); stroke: var(--rust); }
.box h2 { position: absolute; inset: 0; margin: 0; display: flex; font-weight: 900; font-stretch: 62%; line-height: .92; letter-spacing: -.01em; hyphens: manual; color: var(--ink); }
.box-a h2 { align-items: center; justify-content: flex-start; padding-left: 7cqw; font-size: 25cqw; }
.box-b h2 { align-items: center; justify-content: flex-end; padding-right: 7cqw; font-size: 25cqw; color: var(--paper); }
.box-c h2 { align-items: flex-end; justify-content: center; padding-bottom: 9cqw; font-size: 21cqw; color: var(--paper); }
.box-d h2 { align-items: flex-start; justify-content: center; padding-top: 6cqw; font-size: 15cqw; }

/* zusammengesteckt: die Teile bilden zusammen ein Quadrat */
.felder .feld p { transition: opacity .5s ease .55s; }
.felder.gesamt .feld p { opacity: 0; pointer-events: none; transition-delay: 0s; }
.felder .box { cursor: pointer; will-change: transform; }
/* Der Knopf ist für Tastatur und Screenreader da und erscheint nur, wenn man ihn per Tab erreicht. */
.steuerung { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steuerung:focus-within { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-top: 1.5rem; text-align: center; }
.steuerung .btn { border: 0; font-family: inherit; cursor: pointer; }
.feld p { font-size: 1rem; max-width: 30ch; }

/* abschnitte */
.abschnitt { padding-block: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); border-bottom: 2px solid var(--ink); }
.abschnitt h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.abschnitt .text { max-width: 40rem; display: grid; gap: 1.1rem; }

.refs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap); padding-block: 1rem; border-top: 2px solid var(--ink); }
.refs li:last-child { border-bottom: 2px solid var(--ink); }
.refs strong { font-weight: 700; }
.refs a { font-weight: 500; text-underline-offset: 4px; }
.refs a:hover { background: var(--orange); }

.mail { font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.5rem); letter-spacing: -.02em; text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.mail:hover { background: var(--orange); }

/* über mich */
.mich-band { background: var(--lilac); border-bottom: 2px solid var(--ink); }
.mich-inner { padding-block: clamp(3rem, 7vw, 6rem); display: grid; gap: clamp(2rem, 5vw, 4rem); }
.mich-inner > h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.mich-kopf { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: center; }
.bild { position: relative; width: 100%; max-width: 26rem; aspect-ratio: 1; }
.bild::before { content: ""; position: absolute; right: 0; bottom: 0; width: 56%; height: 56%; background: var(--brown); border-radius: 100% 0 0 0; }
.bild::after { content: ""; position: absolute; right: 6%; top: 2%; width: 24%; height: 24%; background: var(--orange); border-radius: 50%; }
.bild img { position: absolute; left: 0; top: 6%; width: 82%; height: 82%; object-fit: cover; object-position: center 20%; border-radius: 50%; }
.mich-text { display: grid; gap: 1.1rem; max-width: 38rem; }
.mich-text .lead { font-weight: 900; font-stretch: 62%; font-size: clamp(3rem, 7vw, 6rem); line-height: .92; letter-spacing: -.01em; }
.mich-text p:not(.lead) { font-size: 1.125rem; max-width: 34rem; }

/* werdegang */
.stationen { }
.stationen ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.station { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); align-items: start; padding: clamp(1rem, 2.5vw, 1.75rem); }
.station .jahre { font-weight: 900; font-stretch: 62%; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -.01em; }
.station h3 { font-size: 1.375rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.station p { margin-top: .5rem; max-width: 46ch; font-size: 1rem; }
.station.orange { background: var(--orange); }
.station.braun { background: var(--brown); color: var(--paper); }
.station.rost { background: var(--rust); color: var(--paper); }
.station.papier { background: var(--paper); }

/* kontaktformular */
.kontakt-form { display: grid; gap: 1.1rem; max-width: 40rem; margin-top: .5rem; }
.kontakt-form label { display: grid; gap: .35rem; font-weight: 700; }
.kontakt-form input[type="text"], .kontakt-form input[type="email"], .kontakt-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: .7rem .8rem; width: 100%; }
.kontakt-form textarea { min-height: 9rem; resize: vertical; }
.kontakt-form .check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; font-weight: 400; font-size: .9375rem; }
.kontakt-form .check input { width: 1.5rem; height: 1.5rem; margin-top: .1rem; accent-color: var(--ink); }
.kontakt-form button { font: inherit; font-weight: 700; font-size: 1.125rem; cursor: pointer; border: 0; width: fit-content; }
.hp { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5rem; font-weight: 700; }
.mailzeile { font-size: .9375rem; }

/* rechtstexte */
.legal { padding-block: clamp(2rem, 5vw, 4rem); max-width: 48rem; display: grid; gap: 1rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: .5rem; }
.legal h2 { font-size: 1.375rem; font-weight: 800; margin-top: 1.25rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .35rem; }
.todo { background: var(--orange); padding: 0 .25rem; font-weight: 700; }

/* fuss */
.foot { padding-block: 1.5rem 2.5rem; display: flex; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; font-size: .9375rem; }
.foot ul { display: flex; gap: 1.5rem; }
.foot a { display: inline-block; padding-block: .35rem; }

@media (max-width: 62rem) {
  .felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .abschnitt, .refs li, .station { grid-template-columns: 1fr; }
  .mich-kopf { grid-template-columns: 1fr; }
  .bild { max-width: 20rem; }
  .station { gap: .5rem; }
}

@media (max-width: 34rem) {
  /* Kopf: Name links, Sprachwahl rechts daneben, darunter eine Zeile Menü */
  .site .bar { position: relative; row-gap: 0; }
  .brand { padding-block: .35rem; }
  .site nav { width: 100%; }
  .site nav ul { gap: .25rem 1rem; }
  .site nav a { font-size: .9375rem; padding-block: .4rem; }
  .site nav .sprache { position: absolute; top: .6rem; right: var(--pad); padding-block: .3rem; }

  /* Puzzle: zwei Spalten, die Teile passen sich der Spaltenbreite an */
  .felder { gap: 1.25rem .9rem; }
  .zelle { height: 11rem; }
  .box-a { width: 6.5rem; }
  .box-b { width: 6rem; }
  .box-c, .box-d { width: 100%; }
  .feld p { font-size: .9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .felder .feld p { transition: none; }
}

@media (forced-colors: active) {
  .over::before, .over::after { display: none; }
  .box path, .bild::before, .bild::after { forced-color-adjust: none; }
}
