/* philippweiser.de · Farben und Schriften wie in den Unterrichtsmaterialien (siehe DESIGN.md im Material-Projekt) */

@font-face {
  font-family: "Sniglet";
  src: url("../fonts/Sniglet-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Sniglet";
  src: url("../fonts/Sniglet-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Itim";
  src: url("../fonts/Itim-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --flieder: #bfbced;
  --flieder-hell: #ecebf8;
  --flieder-dunkel: #6c65c9;
  --blau: #5271ff;
  --blau-dunkel: #3552d9;
  --ink: #1a1a1a;
  --text: #33333d;
  --leise: #6b6b7b;
  --paper: #ffffff;
  --mint: #b8e6d0;
  --pfirsich: #ffd3b8;
  --rose: #f7c6d6;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Itim", "Comic Sans MS", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--blau-dunkel); }
a:hover { color: var(--blau); }

h1, h2, h3 {
  font-family: "Sniglet", "Itim", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}
h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.8rem); }
h2 { font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
h3 { font-weight: 400; font-size: 1.45rem; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- Kopf */

.hero {
  position: relative;
  height: clamp(190px, 34vw, 380px);
  margin: 0 auto;
  width: min(1400px, 100%);
  border-radius: 0 0 50% 50% / 0 0 30% 30%;
  overflow: hidden;
  background: #2b2b2b url("../img/tafel-1100.jpg") center / cover no-repeat;
}
@media (min-width: 900px) {
  .hero { background-image: url("../img/tafel-1800.jpg"); }
}

.portrait {
  width: clamp(140px, 22vw, 210px);
  aspect-ratio: 1;
  margin: calc(clamp(140px, 22vw, 210px) / -2) auto 0;
  position: relative;
  border-radius: 50%;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 4px var(--blau-dunkel), 0 10px 30px rgba(40, 30, 120, 0.18);
  overflow: hidden;
  background: var(--flieder);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.intro { text-align: center; padding: 22px 0 8px; }
.intro h1 { text-shadow: 3px 3px 0 var(--flieder); }
.tagline {
  font-family: "Sniglet", "Itim", sans-serif;
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  color: var(--blau);
  margin: 10px 0 18px;
}
.intro p { margin: 0 auto 14px; max-width: 640px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
}
.facts li {
  background: var(--flieder-hell);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blau);
  color: #fff;
  font-family: "Sniglet", "Itim", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--flieder-dunkel);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--flieder-dunkel); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--flieder-dunkel); }
.button svg { width: 20px; height: 20px; flex: none; }
.button.ghost { background: var(--paper); color: var(--blau-dunkel); border: 2px solid var(--blau-dunkel); }
.button.ghost:hover { color: var(--blau-dunkel); }

/* ---------------------------------------------------------------- Bereiche */

section { padding: 56px 0; }

.angebot { background: var(--flieder); margin-top: 48px; }
.angebot h2 { text-align: center; margin-bottom: 30px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 6px 6px 0 rgba(108, 101, 201, 0.35);
}
.card .icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.card .icon svg { width: 40px; height: 40px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 1.05rem; }
.i-mint { background: var(--mint); }
.i-pfirsich { background: var(--pfirsich); }
.i-rose { background: var(--rose); }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--blau-dunkel);
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%233552d9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feedback { text-align: center; }
.feedback p { margin: 14px auto 24px; max-width: 620px; }

/* ---------------------------------------------------------------- Fuss */

footer {
  border-top: 2px dashed var(--flieder);
  padding: 26px 0 34px;
  font-size: 0.95rem;
  color: var(--leise);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--leise); }

/* ---------------------------------------------------------------- Rechtstexte */

.legal { padding: 40px 0 60px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.4rem; font-weight: 400; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 1.05rem; }
.legal .back { display: inline-block; margin-bottom: 26px; font-family: "Sniglet", sans-serif; }

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

@media (max-width: 420px) {
  .button { font-size: 1.1rem; padding: 12px 20px; }
}
