/* Kunstschule Nila — recreated from the Claude Design prototype.
   Palette, type and spacing mirror Zeichenschule Nila.dc.html. */

:root {
  --lilac:   #E6E0F4;
  --ink:     #16130E;
  --cream:   #F7ECC6;
  --accent:  #9A4A1E;
  --ph1:     #D9D1EC;
  --ph2:     #EEE9DC;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: clamp(20px,3vw,38px); padding-right: clamp(20px,3vw,38px); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- doodles ---- */
.doodle { color: var(--ink); overflow: visible; }
.doodle path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.doodle.is-drawn path {
  animation: nila-draw var(--dur,3s) cubic-bezier(.45,0,.2,1) var(--del,.2s) forwards;
}
@keyframes nila-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .doodle path { stroke-dashoffset: 0; }
  .doodle.is-drawn path { animation: none; }
}

/* ---- header ---- */
.site-header {
  position: static; z-index: 60; background: var(--lilac);
}
.header-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: clamp(20px,2.6vw,30px); padding-bottom: clamp(20px,2.6vw,30px);
}
.nav {
  display: flex; align-items: baseline; gap: clamp(18px,3vw,42px); flex-wrap: wrap;
  font-family: var(--serif); font-size: clamp(15px,1.55vw,19px);
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { font-family: var(--serif); font-size: clamp(15px,1.55vw,19px); white-space: nowrap; }
.lang a { text-decoration: none; color: #9A9382; font-weight: 400; }
.lang a.is-active { color: var(--ink); font-weight: 600; }
.lang-sep { opacity: .4; }

.doodle-corner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 70; pointer-events: none;
}
.doodle-corner .wrap { position: relative; }
.doodle-corner .doodle {
  position: absolute; top: 4px; right: clamp(20px,3vw,38px);
  width: clamp(160px,24vw,300px); height: auto;
}

/* ---- hero ---- */
.hero { position: relative; background: var(--lilac); overflow: hidden; }
.hero-inner { position: relative; padding-top: clamp(30px,5vw,58px); padding-bottom: clamp(44px,6vw,76px); }
.doodle-hero { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-headline {
  position: relative; z-index: 2; margin: clamp(20px,5vw,64px) 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px,5.2vw,60px); line-height: 1.07; letter-spacing: -.005em;
  max-width: 17ch; text-wrap: balance;
}
.hero-tagline {
  position: relative; z-index: 2; margin: 6px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px,3.4vw,40px); line-height: 1.12; color: #332C46;
  max-width: 24ch; text-wrap: balance;
}
.today {
  position: relative; z-index: 2; text-align: center;
  font-weight: 500; font-size: clamp(17px,1.9vw,23px); line-height: 1.4; color: var(--accent);
  margin: clamp(46px,7vw,84px) 0 clamp(24px,3.5vw,40px);
  min-height: 1.4em;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: clamp(20px,3vw,40px); align-items: start;
}
.hero-figure { position: relative; z-index: 1; }
.hero-figure:has(img) { aspect-ratio: 3/4; background: var(--ph1); }
.hero-figure img { aspect-ratio: 3/4; width: 100%; object-fit: cover; background: var(--ph1); }
/* Multiple hero photos: only the active one is shown (JS picks a random one on
   load and advances to the next when the hero scrolls out of view). With JS off
   the first photo stays visible. */
.hero-photo { display: none; }
.hero-photo.is-active { display: block; }
.hero-card { background: var(--cream); padding: clamp(22px,2.6vw,34px); position: relative; z-index: 3; }
.hero-card .prose p { font-size: 15.5px; line-height: 1.62; color: #2E2A22; margin: 0 0 16px; }
.hero-card .prose p:last-child { margin-bottom: 28px; }
.hero-link {
  position: relative; display: inline-block; font-family: var(--serif);
  font-size: clamp(18px,2vw,22px); text-decoration: none; color: var(--ink); padding-bottom: 14px;
}
.doodle-underline { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 14px; }

/* ---- eyebrows / headings ---- */
.eyebrow { font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: #8A8270; margin-bottom: 10px; }
.eyebrow-accent { color: var(--accent); }
.eyebrow-lilac { color: #6A6385; }
.section-title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px,3.6vw,44px);
  letter-spacing: -.01em; margin: 0 0 clamp(28px,4vw,46px);
}
.lede { font-size: 16.5px; line-height: 1.62; color: #3A352B; max-width: 62ch; margin: -6px 0 clamp(28px,4vw,44px); }
.section { padding-top: clamp(50px,7vw,96px); padding-bottom: clamp(50px,7vw,96px); }

/* ---- courses ---- */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(232px,1fr));
  gap: 1px; background: rgba(22,19,14,.1); border: 1px solid rgba(22,19,14,.1);
  margin-bottom: clamp(50px,7vw,90px);
  counter-reset: course;
}
.course { background: #fff; padding: 24px 22px; display: flex; flex-direction: column; gap: 9px; min-height: 158px; }
.course::before {
  counter-increment: course; content: counter(course, decimal-leading-zero);
  font-family: var(--serif); font-size: 15px; color: #8A8270;
}
.course-title { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.14; margin: 0; }
.course-text { margin: 0; font-size: 14px; line-height: 1.55; color: #5C5648; }
.course-tag { margin-top: auto; font-size: 12.5px; color: #8A8270; }

/* ---- offers ---- */
.offers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1px; background: rgba(22,19,14,.1);
}
.offer { background: var(--cream); padding: clamp(24px,3vw,40px); display: flex; flex-direction: column; gap: 14px; }
.offer-title { font-family: var(--serif); font-weight: 400; font-size: clamp(21px,2.4vw,28px); line-height: 1.14; margin: 0; }
.offer-text { margin: 0; font-size: 15px; line-height: 1.6; color: #3A352B; max-width: 46ch; }
.offer-tag { font-size: 13px; color: #7C7460; margin-top: auto; }

/* Beyond-the-menu invitation: a subtle centered note under the two cards (not a
   third card), so it reads as "there's more, just ask". */
.offer-custom {
  margin: clamp(28px,4vw,44px) 0 clamp(50px,7vw,90px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.offer-custom-title { font-family: var(--serif); font-weight: 400; font-size: clamp(19px,2.1vw,24px); margin: 0; }
.offer-custom-text { margin: 0; font-size: 15px; line-height: 1.62; color: #3A352B; max-width: 52ch; }
.offer-custom .btn { align-self: center; }

.btn {
  align-self: flex-start; display: inline-block; white-space: nowrap;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 11px 22px; border-radius: 999px; font-size: 14.5px;
}
.btn:hover { background: #2a2419; }

/* ---- upcoming / termine ---- */
.upcoming-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(14px,2vw,22px); }
.upcoming-head .section-title { margin: 0; font-size: clamp(24px,3vw,36px); }
.upcoming-hint { font-size: 13.5px; color: #8A8270; }

.termine { border-top: 1px solid rgba(22,19,14,.18); }
.termin { border-bottom: 1px solid rgba(22,19,14,.18); }
.termin-summary {
  -webkit-appearance: none; appearance: none;
  background: none; border: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  width: 100%; cursor: pointer; display: grid;
  grid-template-columns: clamp(118px,18vw,220px) 1fr auto; align-items: center;
  gap: clamp(12px,3vw,28px); padding: clamp(18px,2.4vw,26px) 2px;
}
.termin-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.termin-date { font-family: var(--serif); font-size: clamp(14px,1.5vw,18px); color: var(--accent); }
.termin-head { display: flex; flex-direction: column; gap: 3px; }
.termin-title { font-family: var(--serif); font-size: clamp(18px,2.1vw,25px); line-height: 1.12; }
.termin-meta { font-size: 13px; color: #7C7460; }
.termin-sign { font-family: var(--serif); font-size: 26px; line-height: 1; width: 22px; text-align: center; }
.termin-sign::before { content: "+"; }
.termin[data-open="true"] .termin-sign::before { content: "\2013"; }

/* Accordion fold: a grid whose single row animates 0fr <-> 1fr. Browser-driven
   and composited — no JS height/scroll math. The inner clip lets the row
   collapse fully (and keeps content from bleeding into the next item). site.js
   toggles data-open (exclusive) and scrolls the opened item to the top. With JS
   off there is no .has-js, so every reveal stays open (all content visible). */
.termin-reveal {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.termine.has-js .termin[data-open="false"] .termin-reveal { grid-template-rows: 0fr; }
.termin-body-clip { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .termin-reveal { transition: none; } }

.termin-body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: clamp(20px,3vw,40px); padding: 2px 2px clamp(30px,4vw,46px); align-items: start;
}
.termin-figure img { aspect-ratio: 4/5; width: 100%; object-fit: cover; background: var(--ph2); }
.termin-detail { display: flex; flex-direction: column; }
.termin-desc { font-size: 15px; line-height: 1.62; color: #2E2A22; margin: 0 0 22px; }
/* Explicit shared line-height: dt is serif, dd is sans; without it each uses its
   font's own "normal" line-height, so the label sits a hair higher than its
   value. Equal line-height puts both on the same baseline. */
.facts { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 0 22px; line-height: 1.45; }
.facts dt { font-family: var(--serif); font-size: 14.5px; color: #9A9277; border-top: 1px solid rgba(22,19,14,.13); padding: 10px 0; }
.facts dd { margin: 0; font-size: 14.5px; color: #2C271E; border-top: 1px solid rgba(22,19,14,.13); padding: 10px 0; }
.termin-foot { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.termin-price { font-family: var(--serif); font-size: 24px; }

/* ---- empty state ---- */
.empty {
  border-top: 1px solid rgba(22,19,14,.18); border-bottom: 1px solid rgba(22,19,14,.18);
  padding: clamp(34px,5vw,58px) 2px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.empty-title { font-family: var(--serif); font-size: clamp(20px,2.4vw,28px); line-height: 1.32; margin: 0; max-width: 28ch; text-wrap: balance; }
.empty-body { font-size: 15.5px; line-height: 1.62; color: #5C5648; margin: 0; max-width: 54ch; }

/* ---- split (standort / about) ---- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: clamp(24px,4vw,60px); align-items: center; }
.split-figure img { aspect-ratio: 4/5; width: 100%; object-fit: cover; background: var(--ph2); }

/* ---- about ---- */
.about { position: relative; background: var(--lilac); overflow: hidden; }
.about-inner { position: relative; padding-top: clamp(52px,7vw,100px); padding-bottom: clamp(52px,7vw,100px); }
.doodle-about { position: absolute; bottom: 34px; right: 18px; width: clamp(150px,22vw,260px); height: auto; z-index: 5; pointer-events: none; }
.about-split { position: relative; z-index: 2; }
.about-lead { font-family: var(--serif); font-weight: 400; font-size: clamp(21px,2.5vw,30px); line-height: 1.34; margin: 0 0 22px; color: #221E33; text-wrap: pretty; }
.about-body { font-size: 15.5px; line-height: 1.68; color: #3B3650; margin: 0; max-width: 54ch; }
.about-figure { margin: 0; position: relative; }
.about-figure img { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: var(--ph1); }
.about-figure figcaption { margin-top: 8px; font-size: 11.5px; letter-spacing: .02em; color: #7A7494; }

/* ---- contact ---- */
.contact { background: var(--lilac); }
.contact-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(28px,5vw,56px); padding-top: clamp(52px,7vw,100px); padding-bottom: clamp(52px,7vw,100px); }
.contact-title { font-size: clamp(30px,4.4vw,56px); letter-spacing: -.012em; line-height: 1.04; margin: 0 0 18px; }
.contact .lede { max-width: 44ch; margin: 0; }
.contact-card { background: #fff; padding: clamp(24px,3vw,40px); display: flex; flex-direction: column; gap: clamp(22px,3vw,32px); }
.contact-email { position: relative; font-family: var(--serif); font-size: clamp(23px,3.2vw,36px); line-height: 1.08; text-decoration: none; padding-bottom: 10px; display: inline-block; align-self: flex-start; }
.doodle-email { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.contact-links a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; font-size: 16px; }
.contact-link-label { color: #6A6385; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.contact-link-note { font-family: var(--serif); }
.arrow { color: var(--accent); }
.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 16px; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-input {
  flex: 1 1 200px; min-width: 0;
  font: inherit; font-family: var(--serif); font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 8px 2px;
}
.newsletter-input::placeholder { color: #8A8398; }
.newsletter-input:focus-visible { outline: none; border-bottom-color: var(--accent); }
.newsletter-submit { border: 0; font: inherit; font-size: 14.5px; cursor: pointer; }
.newsletter-submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.newsletter-trap { position: absolute; left: -5000px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid rgba(22,19,14,.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: clamp(24px,4vw,52px); align-items: start; padding-top: clamp(36px,4.5vw,56px); padding-bottom: clamp(38px,5vw,54px); }
.footer-brand { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.footer-brand .ital { font-style: italic; }
.footer-tagline { font-size: 13.5px; color: #7C7460; }
.imprint { font-style: normal; font-size: 13.5px; color: #3A352B; line-height: 1.7; }
.imprint-note { font-size: 12px; color: #A89A86; margin-top: 10px; max-width: 34ch; line-height: 1.5; }
/* Each legal link on its own line (Kursbedingungen above Datenschutz), not in a
   row. block puts each on its own line; fit-content keeps the underline to the
   text width, not the whole column. */
.legal-link { display: block; width: fit-content; font-size: 13.5px; color: #3A352B; text-decoration: none; border-bottom: 1px solid rgba(22,19,14,.22); padding-bottom: 2px; margin-bottom: 8px; }
.copyright { font-size: 12.5px; color: #9A9382; margin-top: 18px; }

/* ---- legal / Datenschutz (full-screen modal, CSS :target) ---- */
.legal-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.legal-modal:target { display: block; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(22,19,14,.45); }
.legal-modal-card {
  position: absolute; inset: 0; background: var(--lilac);
  display: flex; flex-direction: column;
}
.legal-modal-close {
  position: absolute; top: clamp(14px,2vw,22px); right: clamp(16px,2.4vw,28px);
  z-index: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; border-radius: 50%;
}
.legal-modal-close:hover { background: rgba(22,19,14,.08); }
.legal-modal-scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch; height: 100%;
  padding: clamp(48px,6vw,80px) clamp(20px,3vw,38px) clamp(40px,5vw,60px);
}
.legal-inner { max-width: 640px; margin: 0 auto; }
.legal-title { font-family: var(--serif); font-size: clamp(24px,3.2vw,34px); margin: 0 0 20px; }
.legal-body { font-size: 14.5px; line-height: 1.7; color: #3A352B; }
.legal-body h3 { font-family: var(--serif); font-size: 17px; margin: 26px 0 6px; }
.legal-body p { margin: 0 0 12px; }
.legal-body a { color: var(--accent); }
