:root {
  color-scheme: light;
  --paper: #f8f2df;
  --paper-light: #fbf7ea;
  --paper-white: #fffaf0;
  --ink: #294a32;
  --green-dark: #365a3d;
  --green: #718c58;
  --green-soft: #a6b58a;
  --terracotta: #b85835;
  --rust: #9f4f35;
  --yellow: #e7b84b;
  --wood: #8b5a37;
  --sky: #afc9d4;
  --muted: #596453;
  --line: #c8c7a7;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: url("assets/paper-grain.svg") repeat;
  content: "";
  opacity: .17;
  pointer-events: none;
  mix-blend-mode: multiply;
}
a { color: var(--green-dark); text-underline-offset: .2em; }
a:hover { color: var(--terracotta); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.masthead, main, footer { position: relative; z-index: 1; width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.masthead {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #b8b995;
}
.wordmark { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.17rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.school-name { color: var(--muted); font-size: .85rem; line-height: 1.4; text-align: right; }
.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 26px;
  min-height: 470px;
  padding: 58px 12px 76px;
  overflow: hidden;
}
.intro::before {
  position: absolute;
  z-index: -1;
  top: 34px;
  right: 5%;
  width: 47%;
  height: 82%;
  border-radius: 51% 44% 48% 53% / 43% 49% 48% 57%;
  background: radial-gradient(ellipse at 45% 45%, rgba(231,184,75,.2), rgba(231,184,75,.07) 58%, transparent 75%);
  content: "";
  transform: rotate(4deg);
}
.intro-copy { position: relative; z-index: 1; max-width: 550px; }
.welcome, .eyebrow { margin: 0 0 14px; color: var(--terracotta); font-size: .88rem; font-weight: 700; letter-spacing: .015em; }
h1, h2, .whatsapp-box legend { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 570px; margin: 0; color: var(--ink); font-size: clamp(3.2rem, 6.5vw, 5.65rem); letter-spacing: -.045em; line-height: 1.02; }
.lead { max-width: 530px; margin: 24px 0 12px; color: #3f5141; font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; line-height: 1.65; }
.invitation { max-width: 510px; margin: 0; color: var(--muted); }
.logo-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 400px);
  margin: 0;
  padding: 0;
  transform: rotate(1.2deg);
}
.logo-art::before {
  position: absolute;
  z-index: -1;
  inset: 7% 4% 3% 3%;
  border-radius: 47% 53% 48% 52%;
  background: rgba(166,181,138,.3);
  content: "";
  filter: blur(15px);
}
.logo-art img { display: block; width: 100%; height: auto; border-radius: 50%; }
.signup {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  padding: 59px 56px 62px;
  border: 1px solid rgba(139,90,55,.24);
  border-radius: 30px 22px 34px 25px / 24px 34px 26px 31px;
  background: rgba(255,250,240,.88);
  box-shadow: 0 12px 28px rgba(93,75,44,.07);
}
.section-heading h2 { margin: 0 0 14px; color: var(--green-dark); font-size: clamp(2.05rem, 3.1vw, 2.85rem); letter-spacing: -.025em; line-height: 1.14; }
.section-heading > p:last-child { max-width: 355px; margin: 0; color: var(--muted); }
form { min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; color: var(--green-dark); font-size: .89rem; font-weight: 600; }
.field input { width: 100%; min-height: 49px; padding: 11px 14px; border: 1px solid #aeb594; border-radius: 12px 10px 13px 9px; background: #fffdf6; color: var(--ink); font: inherit; font-weight: 400; }
.field input::placeholder { color: #858a76; }
.field input:focus { border-color: var(--green); }
.choice { display: flex; align-items: center; gap: 13px; margin-top: 23px; padding: 15px 17px; border: 1px solid rgba(113,140,88,.2); border-radius: 16px 12px 18px 13px; background: rgba(166,181,138,.14); }
.choice-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 48% 52% 46% 54%; background: var(--green-dark); color: var(--paper-light); font-size: 1.12rem; }
.choice strong, .radio-copy strong { display: block; color: var(--green-dark); font-size: .92rem; }
.choice p { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.required-tag { margin-left: auto; color: var(--green-dark); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; color: #4b5745; font-size: .82rem; line-height: 1.5; }
.consent input, .radio-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-dark); }
.whatsapp-box { display: grid; gap: 13px; margin: 25px 0 0; padding: 17px 17px 15px; border: 1px dashed #aeb594; border-radius: 18px 14px 20px 13px; }
.whatsapp-box legend { padding: 0 9px; color: var(--green-dark); font-size: 1.32rem; }
.radio-choice { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.radio-copy small { display: block; max-width: 450px; margin-top: 3px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.phone-field { padding: 3px 0 0 29px; }
.phone-field .field { max-width: 310px; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }
.whatsapp-privacy { margin: 0 0 0 29px; }
.optional { color: var(--muted); font-size: .79rem; font-weight: 400; }
.privacy-consent { margin-top: 19px; }
.submit-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 25px;
  border: 1px solid rgba(41,74,50,.2);
  border-radius: 48% 39% 45% 42% / 49% 46% 40% 48%;
  background: var(--green-dark);
  color: var(--paper-light);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(41,74,50,.12);
  transition: background .18s ease, transform .18s ease;
}
.submit-button:hover { background: #496b49; color: white; transform: translateY(-1px) rotate(-.5deg); }
.submit-button:disabled { cursor: wait; opacity: .68; }
.submit-button span { color: #f1c85a; font-size: 1.15rem; }
.form-note { margin: 9px 0 0; color: #68715e; font-size: .75rem; }
.form-message { margin-top: 15px; padding: 12px 14px; border-left: 3px solid var(--green); border-radius: 5px 12px 12px 5px; background: rgba(166,181,138,.2); color: var(--green-dark); font-size: .88rem; }
.form-message.error { border-color: var(--rust); background: #f7e8db; color: #772f25; }
.privacy { max-width: 780px; padding: 58px 0 65px; }
.privacy h2 { margin: 0 0 10px; color: var(--green-dark); font-size: 1.88rem; }
.privacy p { margin: 7px 0; color: var(--muted); font-size: .87rem; }
.privacy-contact:empty { display: none; }
.imprint-page { max-width: 740px; min-height: 60vh; padding: 62px 8px 80px; }
.imprint-page h1 { margin: 0 0 30px; color: var(--ink); font-size: clamp(3rem, 6vw, 4.7rem); }
.imprint-page h2 { margin: 24px 0 6px; color: var(--green-dark); font-size: 1.35rem; }
.imprint-page p { color: var(--muted); }
.imprint-address { white-space: pre-line; }
.privacy-page { max-width: 780px; margin: 0 auto; padding: 58px 0 72px; }
.privacy-page h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(2.8rem, 6vw, 4.6rem); }
.privacy-page h2 { margin: 29px 0 8px; color: var(--green-dark); font-size: 1.48rem; }
.privacy-page p { color: var(--muted); }
.privacy-page .notice-note { margin-top: 32px; padding: 14px 17px; border-left: 3px solid var(--terracotta); background: rgba(231,184,75,.12); }
.back-link { display: inline-block; margin-top: 16px; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 23px 0 29px; border-top: 1px dashed #b8b995; color: #66715d; font-size: .77rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.result-page { min-height: calc(100vh - 170px); display: grid; align-items: start; padding-block: 70px; }
.result-box { max-width: 700px; padding: 40px; border: 1px solid rgba(139,90,55,.24); border-radius: 28px 22px 30px 24px; background: var(--paper-white); box-shadow: 0 12px 28px rgba(93,75,44,.07); }
.result-box h1 { margin: 0 0 17px; color: var(--ink); font-size: clamp(2.5rem, 6vw, 4.5rem); }
.result-box p { color: var(--muted); }
.admin-panel { width: min(1200px, calc(100vw - 48px)); padding: 30px 0 60px; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; color: var(--ink); font-size: clamp(2.4rem, 5vw, 4rem); }
.admin-head p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); }
.admin-head .submit-button { flex: 0 0 auto; text-decoration: none; }
.table-wrap { overflow: auto; border-radius: 14px; background: var(--paper-white); }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(139,90,55,.18); text-align: left; vertical-align: top; white-space: nowrap; }
th { background: #e9ead8; color: var(--green-dark); font-size: .76rem; }
td { color: #445047; }

@media (max-width: 780px) {
  .intro { grid-template-columns: 1fr; min-height: auto; padding: 50px 4px 35px; }
  .intro-copy { max-width: 650px; }
  .logo-art { width: min(68vw, 340px); margin-top: 13px; }
  .intro::before { top: auto; right: 11%; bottom: 22px; width: 72%; height: 47%; }
  .signup { grid-template-columns: 1fr; gap: 28px; padding: 39px 30px 43px; }
  .section-heading > p:last-child { max-width: 570px; }
}
@media (max-width: 540px) {
  .masthead, main, footer { width: min(100% - 32px, 1100px); }
  .masthead { min-height: 78px; }
  .wordmark { font-size: 1.02rem; }
  .school-name { font-size: .73rem; }
  .intro { padding-top: 43px; }
  h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .lead { font-size: 1.04rem; }
  .logo-art { width: min(74vw, 290px); }
  .signup { margin-inline: -2px; padding: 31px 19px 35px; border-radius: 23px 18px 26px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .required-tag { display: none; }
  .submit-button { width: 100%; }
  .whatsapp-privacy { margin-left: 0; }
  footer { flex-direction: column; gap: 5px; }
  .admin-head { align-items: flex-start; flex-direction: column; }
  .result-box { padding: 27px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
