/* Hier oben lassen sich Farben und Schrift für die ganze Seite ändern. */
:root {
  --papier: #fbf6ec;
  --tinte: #1d2a26;
  --tinte-leise: #55635e;
  --akzent: #0f6b57;
  --akzent-text: #ffffff;
  --linie: #ddd3c0;
  --markierung: #ffe08a;
  --notiz: #ffe680;
  --notiz-blau: #cfe8fb;
  --handschrift: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

mark {
  background: var(--markierung);
  color: var(--tinte);
  padding: 0 .2em;
  border-radius: .2em;
}

/* Kopfbereich */
.hero {
  background: var(--akzent);
  color: var(--akzent-text);
  padding: 4rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 14vw, 5.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}

.lead {
  margin: 1.5rem 0;
  font-size: 1.4rem;
  line-height: 1.35;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.facts span {
  display: block;
  font-size: .85rem;
  opacity: .85;
}

.button {
  display: inline-block;
  max-width: 100%;
  padding: .75rem 1.4rem;
  border-radius: .5rem;
  background: var(--tinte);
  color: var(--akzent-text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover,
.button:focus-visible { background: #000; }

.portrait {
  display: block;
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.5rem;
  border: 4px solid var(--akzent-text);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

/* Abziehbare Notiz */
[hidden] { display: none !important; }

body { overflow-x: clip; }

.lead { max-width: 26rem; }

.notiz {
  position: relative;
  display: block;
  width: min(26rem, 100%);
  margin: 2.5rem auto 0;
  padding: 1.1rem 1rem 1.25rem;
  border: 0;
  border-radius: 2px;
  background: var(--notiz);
  color: #27302c;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: .95rem;
  line-height: 1.45;
  text-align: left;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: rotate(-3deg);
  transform-origin: top center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Die leicht gelöste Ecke zeigt, dass man daran ziehen kann. */
.notiz::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #f3d468 0 50%, #c9a53f 50%);
  box-shadow: -3px -3px 5px rgba(0, 0, 0, .18);
}

.notiz:hover { transform: rotate(-1.5deg) translateY(-3px); }

.notiz:focus-visible { outline: 3px solid var(--akzent-text); outline-offset: 3px; }

.notiz img { display: block; width: 100%; height: auto; pointer-events: none; }

.notiz-hinweis {
  position: absolute;
  right: 2.75rem;
  bottom: .45rem;
  color: #5c4a10;
  font-size: .9rem;
  font-weight: 700;
  pointer-events: none;
}

.notiz-gefasst {
  cursor: grabbing;
  box-shadow: 0 22px 30px rgba(0, 0, 0, .35);
  transition: none;
}

.notiz-fliegt { transition: transform .5s ease-in, opacity .5s ease-in; }

.notiz-zurueck {
  display: block;
  margin: 1.5rem 0 0;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: var(--akzent-text);
  font: inherit;
  font-size: .95rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (min-width: 48rem) {
  .hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    column-gap: 2rem;
  }

  .portrait {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    margin: 0;
  }

  .hero .eyebrow,
  .hero h1 { grid-column: 1 / -1; }

  .hero .lead,
  .hero .facts,
  .hero .button { grid-column: 1; }

  .hero .button { justify-self: start; }

  .hero .facts { flex-direction: column; }

  main section:first-child { padding-top: 4rem; }

  .notiz {
    grid-column: 2;
    grid-row: 3 / span 3;
    align-self: end;
    width: 24rem;
    margin: 0 0 -5rem;
    z-index: 2;
  }

  .notiz-zurueck {
    grid-column: 2;
    grid-row: 3 / span 3;
    align-self: end;
    justify-self: end;
    margin: 0;
  }
}

/* Auf grossen Bildschirmen darf die Notiz über den Inhaltsbereich hinausragen. */
@media (min-width: 64rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 23rem; }

  .notiz { width: 28rem; }

  .portrait {
    top: 0;
    right: -5rem;
    width: 13rem;
    height: 13rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notiz, .notiz-fliegt { transition: none; }
}

/* Post-it für Fragen: Erscheint nach der gelben Notiz und bleibt beim Scrollen sichtbar. */
.fragen {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  width: min(20rem, calc(100% - 2rem));
  padding: .9rem 1.1rem 1.1rem;
  border-radius: 2px;
  background: var(--notiz-blau);
  color: #1f2c38;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
  animation: fragen-rein .35s ease-out;
}

@keyframes fragen-rein {
  from { opacity: 0; transform: translateY(14px) rotate(-3deg) scale(.94); }
}

/* Platz schaffen, damit das Post-it am Seitenende nichts verdeckt. */
.fragen-offen main { padding-bottom: 15rem; }

.fragen-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.fragen-titel {
  font-family: var(--handschrift);
  font-size: 1.15rem;
  font-weight: 700;
}

.fragen-klappen {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid rgba(31, 44, 56, .45);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.fragen-inhalt { margin-top: .5rem; }

.fragen-eingeklappt .fragen-inhalt { display: none; }

.fragen textarea {
  display: block;
  width: 100%;
  height: 7rem;
  padding: 0 .2rem;
  border: 0;
  border-radius: 0;
  outline: 0;
  resize: none;
  color: inherit;
  font-family: var(--handschrift);
  font-size: 1rem;
  line-height: 1.75rem;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(1.75rem - 1px),
    rgba(31, 44, 56, .22) calc(1.75rem - 1px) 1.75rem
  );
}

.fragen textarea::placeholder { color: rgba(31, 44, 56, .68); }

.fragen:focus-within { outline: 3px solid var(--akzent); outline-offset: 3px; }

.fragen-button {
  display: inline-block;
  margin-top: .85rem;
  padding: .45rem .8rem;
  border: 1.5px solid #1f2c38;
  border-radius: .4rem;
  background: #1f2c38;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.fragen-button[aria-disabled="true"] {
  border-color: rgba(31, 44, 56, .45);
  background: transparent;
  color: rgba(31, 44, 56, .72);
  cursor: not-allowed;
}

.fragen-hinweis {
  margin: .6rem 0 0;
  font-size: .8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Breite Bildschirme: rechts neben dem Text, ohne ihn zu verdecken. */
@media (min-width: 72rem) {
  .fragen {
    right: .75rem;
    bottom: 1rem;
    width: 14.5rem;
    transform: rotate(1.5deg);
  }

  .fragen textarea { height: 10.5rem; }

  .fragen-offen main { padding-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fragen { animation: none; }
}

/* Inhalt */
main { padding-top: 1rem; padding-bottom: 1rem; }

section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--linie);
}

section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 .75rem;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}

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

p { margin: 0 0 .75rem; }

.timeline {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
  border-left: 2px solid var(--linie);
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: -.45rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--akzent);
}

.meta { color: var(--tinte-leise); font-size: .95rem; }

.freunde-titel { margin-top: 1.5rem; }

.foto {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: .75rem;
}

.projekt-titel { margin: 1.5rem 0 .4rem; }

h2 + .projekt-titel { margin-top: .75rem; }

.freunde {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
}

.freunde li {
  padding: .3rem .8rem;
  border-radius: 2px;
  background: var(--notiz);
  font-family: var(--handschrift);
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .14);
}

.freunde li:nth-child(odd) { transform: rotate(-1.2deg); }
.freunde li:nth-child(even) { transform: rotate(1deg); }

.button-outline {
  margin-top: .5rem;
  background: transparent;
  border: 2px solid var(--akzent);
  color: var(--akzent);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--akzent);
  color: var(--akzent-text);
}

.split img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-top: 1.25rem;
  border-radius: .75rem;
}

@media (min-width: 40rem) {
  .split {
    display: grid;
    grid-template-columns: 1fr 16rem;
    gap: 2.5rem;
    align-items: start;
  }

  .split img { margin-top: 0; }
}

.contact .button { background: var(--akzent); }
.contact .button:hover,
.contact .button:focus-visible { background: var(--tinte); }

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  color: var(--tinte-leise);
  font-size: .9rem;
}

footer p { margin: 0; }
