/* =========================================================
   ARTIQ Musikschule — design system
   Dark, cinematic, editorial. Red #e32b3d.
   ========================================================= */

:root {
  /* — color: warm daylight editorial — */
  --bg:        #F7F4EF;
  --bg-1:      #F0EDE7;
  --bg-2:      #E9E4DC;
  --card:      #FFFFFF;
  --card-2:    #F5F2EC;
  --ink:       #1C1814;
  --ink-dim:   #5A534A;
  --ink-faint: #9B9389;
  --line:        rgba(0,0,0,0.09);
  --line-strong: rgba(0,0,0,0.16);

  /* — brand red — */
  --red:        #e32b3d;
  --red-bright: #f0364a;
  --red-deep:   #c01f2e;
  --red-ink:    #e32b3d;
  --red-glow:   rgba(227,43,61,0.35);
  --red-soft:   rgba(227,43,61,0.10);

  /* — type — */
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;

  /* — layout — */
  --container: 1240px;
  --gutter: clamp(22px, 5vw, 80px);
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.dark {
  --bg:        #0F0D0B;
  --bg-1:      #141210;
  --bg-2:      #1A1714;
  --card:      #1E1B18;
  --card-2:    #252119;
  --ink:       #F0EDE6;
  --ink-dim:   #9B9389;
  --ink-faint: #5A534A;
  --line:        rgba(255,255,255,0.07);
  --line-strong: rgba(255,255,255,0.13);
  --red-soft:   rgba(227,43,61,0.15);
}

html.dark .nav,
html.dark .legal .nav {
  background: rgba(15,13,11,0.92);
}
html.dark .nav.scrolled {
  background: rgba(15,13,11,0.88);
}
html.dark .hero-bg .veil {
  background: linear-gradient(180deg, rgba(15,13,11,0.10) 0%, rgba(15,13,11,0.55) 60%, var(--bg) 100%);
}
html.dark .hero-bg .vignette {
  box-shadow: inset 0 0 180px 40px rgba(15,13,11,0.4);
}
html.dark .gallery-inner {
  box-shadow: inset 0 -100px 80px -30px rgba(15,13,11,0.85);
}
html.dark .mobile-nav {
  background: rgba(15,13,11,0.97);
}
html.dark .price-card:not(.featured) .btn:hover {
  background: rgba(255,255,255,0.05);
}
html.dark .price-card.featured {
  background: linear-gradient(160deg, rgba(227,43,61,0.18) 0%, rgba(30,27,24,0.95) 55%);
}

/* Dark mode toggle button */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  color: var(--ink-dim);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.dark-toggle:hover {
  color: var(--ink);
  background: var(--line);
}
.dark-toggle svg { display: block; }
.dark-toggle .icon-sun  { display: block; }
.dark-toggle .icon-moon { display: none; }
html.dark .dark-toggle .icon-sun  { display: none; }
html.dark .dark-toggle .icon-moon { display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film-grain texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- shared layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(90px, 13vw, 168px); }

/* eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}
.kicker.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}

/* display type */
.display {
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.display em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.25em;
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: var(--red);
}

.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 56ch;
  text-wrap: pretty;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s, color .3s;
  will-change: transform;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 24px -6px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--red-glow);
}
.btn-primary .arrow { transition: transform .4s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.legal .nav {
  background: rgba(247,244,239,0.97);
  border-bottom-color: rgba(0,0,0,0.07);
  backdrop-filter: blur(12px);
}
.nav.scrolled {
  padding-block: 14px;
  background: rgba(247,244,239,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links nav {
  display: flex;
  gap: 34px;
}
.nav-links a.navlink {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  transition: color .25s;
  position: relative;
}
.nav-links a.navlink:hover { color: var(--ink); }
.nav-links a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--red);
  transition: width .35s var(--ease);
}
.nav-links a.navlink:hover::after { width: 100%; }

.nav-cta {
  padding: 11px 22px;
  font-size: 13px;
}
.nav-menu-btn { display: none; }

/* logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark  { height: 38px; width: auto; flex: none; display: block; }
.logo-word  { display: flex; flex-direction: column; gap: 5px; justify-content: center; align-items: flex-start; }
.logo-artiq { height: 18px; width: auto; display: block; flex: none; }
.logo-ms    { height: 10px; width: auto; display: block; flex: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg .bokeh {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  will-change: transform, filter;
}
.bokeh.b1 { width: 720px; height: 720px; left: -10%; top: -15%; background: radial-gradient(circle, rgba(227,43,61,0.36), transparent 60%); animation: drift1 32s ease-in-out infinite; }
.bokeh.b2 { width: 840px; height: 840px; right: -14%; top: 5%;  background: radial-gradient(circle, rgba(227,43,61,0.28), transparent 60%); animation: drift2 44s ease-in-out infinite; animation-delay: -14s; }
.bokeh.b3 { width: 560px; height: 560px; left: 28%; bottom: -20%; background: radial-gradient(circle, rgba(227,43,61,0.22), transparent 60%); animation: drift3 38s ease-in-out infinite; animation-delay: -22s; }
.bokeh.b4 { width: 400px; height: 400px; left: 52%; top: 38%; background: radial-gradient(circle, rgba(227,43,61,0.18), transparent 60%); animation: drift4 28s ease-in-out infinite; animation-delay: -6s; }
/* blur range: 55px (nah/deutlich) → 130px (fern/weich) */
@keyframes drift1 {
  0%   { transform: translate(0px,   0px)   scale(1);    filter: blur(80px); }
  20%  { transform: translate(80px, -60px)  scale(1.14); filter: blur(55px); }
  45%  { transform: translate(40px,  70px)  scale(0.90); filter: blur(120px); }
  70%  { transform: translate(-70px, 30px)  scale(1.08); filter: blur(65px); }
  100% { transform: translate(0px,   0px)   scale(1);    filter: blur(80px); }
}
@keyframes drift2 {
  0%   { transform: translate(0px,   0px)    scale(1);    filter: blur(90px); }
  25%  { transform: translate(-90px,  70px)  scale(1.12); filter: blur(60px); }
  55%  { transform: translate(60px,  -80px)  scale(0.88); filter: blur(130px); }
  80%  { transform: translate(30px,   40px)  scale(1.06); filter: blur(72px); }
  100% { transform: translate(0px,   0px)    scale(1);    filter: blur(90px); }
}
@keyframes drift3 {
  0%   { transform: translate(0px,    0px)   scale(1);    filter: blur(100px); }
  35%  { transform: translate(-60px, -80px)  scale(1.10); filter: blur(58px); }
  65%  { transform: translate(70px,   50px)  scale(0.92); filter: blur(125px); }
  100% { transform: translate(0px,    0px)   scale(1);    filter: blur(100px); }
}
@keyframes drift4 {
  0%   { transform: translate(0px,  0px)   scale(1);    filter: blur(85px); }
  30%  { transform: translate(70px, 60px)  scale(1.16); filter: blur(55px); }
  60%  { transform: translate(-50px,40px)  scale(0.88); filter: blur(115px); }
  85%  { transform: translate(30px,-50px)  scale(1.05); filter: blur(70px); }
  100% { transform: translate(0px,  0px)   scale(1);    filter: blur(85px); }
}
/* vignette + base gradient */
.hero-bg .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(247,244,239,0.10) 0%, rgba(247,244,239,0.55) 60%, var(--bg) 100%);
}
.hero-bg .vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(247,244,239,0.4);
}



.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 90px;
  padding-bottom: 100px;
}
.hero .hero-headline {
  font-size: clamp(50px, 9.2vw, 138px);
  margin-top: 30px;
}
.hero .hero-headline .line { display: block; overflow: hidden; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.hero .hero-headline .line > span {
  display: block;
  animation: riseIn 1.05s var(--ease) both;
}
.hero .hero-headline .line:nth-child(1) > span { animation-delay: .15s; }
.hero .hero-headline .line:nth-child(2) > span { animation-delay: .29s; }
.hero .hero-headline .line:nth-child(3) > span { animation-delay: .43s; }
@keyframes riseIn {
  from { transform: translateY(140%); }
  to   { transform: none; }
}
.hero .hero-headline em { line-height: 0; position: relative; top: 0.05em; }

.hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .72s forwards;
}
.hero-sub .lead { margin: 0; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .86s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* — Hero: Google-Trust-Badge — */
.hero-trust {
  margin-top: clamp(30px, 4vw, 44px);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 0.92s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-trust { animation: none; opacity: 1; transform: none; }
}
a.hero-trust-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hero-g-mark {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}
.hero-trust-stars {
  display: inline-flex;
  gap: 2px;
  color: #f5a623;
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.hero-trust-rate {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-trust-sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
  flex: none;
}
.hero-trust-lbl {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
}
.hero-trust-lbl b {
  color: var(--ink);
  font-weight: 600;
}
a.hero-trust-link:hover .hero-trust-lbl b {
  color: var(--red);
  transition: color 0.25s var(--ease);
}

.hero-meta {
  position: absolute;
  left: 0; right: 0;
  bottom: 34px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero-meta .loc {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: max(40px, 3vw);
}
.scroll-hint .track {
  width: 1px; height: 46px;
  background: var(--line-strong);
  position: relative; overflow: hidden;
}
.scroll-hint .track::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--red);
  animation: scrolldot 2.2s var(--ease) infinite;
}
@keyframes scrolldot { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* =========================================================
   VISION
   ========================================================= */
.vision { background: var(--bg-1); }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 760px;
}
.section-head h2 { font-size: clamp(34px, 5vw, 62px); }

.vision-grid {
  margin-top: clamp(48px, 7vw, 86px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.vision-card {
  padding: 40px 30px 44px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.vision-card:not(:last-child) { border-right: 1px solid var(--line); padding-right: 34px; }
.vision-card:not(:first-child) { padding-left: 34px; }
.vision-card .vicon {
  width: 38px; height: 38px;
  color: var(--red);
  margin-bottom: 30px;
}
.vision-card .vnum {
  position: absolute; top: 40px; right: 22px;
  font-size: 12px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0.1em;
}
.vision-card:last-child .vnum { right: 0; }
.vision-card h3 {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 14px;
  min-height: 3em;
}
.vision-card p { font-size: 15px; color: var(--ink-dim); line-height: 1.6; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.portrait-wrap { position: relative; }
.portrait-wrap image-slot {
  width: 100%;
  min-height: 380px;
  max-height: 600px;
  aspect-ratio: 3 / 4;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  border: 1px solid var(--line);
  display: block;
}
.portrait-wrap::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -100px 80px -30px rgba(247,244,239,0.85);
  border-radius: var(--radius-lg);
}
.portrait-badge {
  position: absolute;
  left: -1px; bottom: -1px;
  background: var(--red);
  color: #fff;
  padding: 16px 22px;
  z-index: 3;
}
.portrait-badge b { display: block; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.portrait-badge span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.9; }

.about-body h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 22px 0 26px;
}
.about-body .story { display: flex; flex-direction: column; gap: 18px; }
.about-body .story-mobile { display: none; }
.about-body .story p { color: var(--ink-dim); font-size: 16.5px; line-height: 1.7; max-width: 54ch; }
.about-body .story p .hl { color: var(--ink); font-weight: 500; }

.cred-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.cred-tags .tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.cred-tags .tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}
.about-stats {
  display: flex; gap: clamp(28px, 4vw, 56px);
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.about-stats .stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1;
}
.about-stats .stat b em { font-family: var(--serif); font-style: italic; color: var(--red); font-weight: 400; }
.about-stats .stat span { font-size: 13px; color: var(--ink-faint); margin-top: 8px; display: block; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--bg-2); overflow: hidden; }
.gallery .section-head { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 24px; flex-wrap: wrap; }
.gallery .section-head .left { max-width: 620px; display: grid; gap: 20px; }
.gallery-track-wrap {
  margin-top: clamp(40px, 6vw, 70px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.gallery-track {
  display: flex;
  gap: 18px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track image-slot {
  flex: none;
  height: clamp(320px, 46vw, 540px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.g-tall { width: clamp(280px, 34vw, 420px); }
.g-wide { width: clamp(440px, 56vw, 720px); }
.gallery-hint {
  margin-top: 24px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing { background: var(--bg-1); }
.pricing .section-head { margin-inline: auto; text-align: center; justify-items: center; }
.pricing .kicker { justify-content: center; }
.price-grid {
  margin-top: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, auto);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  transition: transform .5s var(--ease), border-color .5s, background .5s, box-shadow .5s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 12px 40px rgba(0,0,0,0.10); }
.price-card.featured {
  background: linear-gradient(160deg, rgba(227,43,61,0.08) 0%, #fff 50%);
  border-color: rgba(227,43,61,0.45);
  box-shadow: 0 8px 40px -8px var(--red-glow), 0 2px 16px rgba(0,0,0,0.06);
}
.price-card.featured::before {
  content: "Beliebteste Wahl";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  white-space: nowrap;
}
.price-card .p-name {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.price-card.featured .p-name { color: var(--red); }
.price-card .p-dur {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  margin: 18px 0 4px;
}
.price-card .p-dur span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-dim); font-size: 0.42em; letter-spacing: 0; }
.price-card .p-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.price-card .p-price b { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.price-card .p-price span { font-size: 14px; color: var(--ink-faint); }
.price-card .p-desc { font-size: 14.5px; color: var(--ink-dim); margin-top: 12px; line-height: 1.55; }
.price-card ul { list-style: none; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 10px; }
.price-card li { display: flex; gap: 12px; font-size: 14.5px; color: var(--ink); }
.price-card li svg { flex: none; color: var(--red); margin-top: 3px; }
.price-card .btn { width: 100%; align-self: end; }
.price-card:not(.featured) .btn { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.price-card:not(.featured) .btn:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); transform: translateY(-2px); }
.price-foot {
  text-align: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  opacity: 0.75;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.testi-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.google-badge {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 28px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--card);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.testi-stars { display: flex; gap: 4px; color: #f5a623; font-size: 24px; letter-spacing: 1px; }
.google-badge b { font-size: 20px; font-weight: 800; color: var(--ink); display: block; letter-spacing: -0.02em; }
.google-badge span { font-size: 13px; color: var(--ink-dim); margin-top: 1px; }
.testi-grid {
  margin-top: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 440px;
  gap: 20px;
}

/* Review cards */
.flip-card {
  height: 100%;
  perspective: 1000px;
}

.quote-card {
  background: var(--card);
  border: 1px solid rgba(227,43,61,0.15);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  display: flex; flex-direction: column;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.05),
    0 0 28px 6px rgba(227,43,61,0.07);
  height: 100%;
  box-sizing: border-box;
  will-change: transform;
}
.flip-card:hover .quote-card {
  box-shadow:
    0 6px 24px rgba(0,0,0,0.09),
    0 0 40px 10px rgba(227,43,61,0.11);
}

/* Horizontal card flip */
@keyframes flipOutX {
  0%   { transform: rotateY(0deg);  }
  100% { transform: rotateY(90deg); }
}
@keyframes flipInX {
  0%   { transform: rotateY(-90deg); }
  100% { transform: rotateY(0deg);   }
}
.flip-card.flipping-out .quote-card {
  animation: flipOutX 0.2s ease-in forwards;
}
.flip-card.flipping-in .quote-card {
  animation: flipInX 0.2s ease-out forwards;
}
.quote-card .stars { display: flex; gap: 3px; color: #f5a623; font-size: 15px; margin-bottom: 18px; }
.quote-card blockquote {
  font-size: 15.5px; line-height: 1.65; color: var(--ink);
  letter-spacing: -0.01em; flex: 1;
}
.quote-card blockquote::before { content: "\201C"; }
.quote-card blockquote::after { content: "\201D"; }
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-card .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--ink-dim);
  flex: none;
}
.quote-card .who b { font-size: 14px; font-weight: 600; display: block; color: var(--ink); }
.quote-card .who span { font-size: 12px; color: var(--ink-faint); }

.testi-dots { display: none; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--bg-1); }
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .3s;
}
.faq-q:hover { color: var(--red); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--red);
  left: 50%; top: 50%;
}
.faq-icon::before { width: 16px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1.5px; height: 16px; transform: translate(-50%,-50%); transition: transform .4s var(--ease); }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s var(--ease);
}
.faq-a p {
  padding: 0 4px 28px;
  color: var(--ink-dim);
  font-size: 16px; line-height: 1.66; max-width: 60ch;
}
.faq-aside h2 { font-size: clamp(30px, 4vw, 50px); margin: 20px 0 18px; }
.faq-aside .lead { margin-bottom: 28px; }

/* =========================================================
   CONTACT / CTA
   ========================================================= */
.cta {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 100% at 50% 0%, rgba(227,43,61,0.07), transparent 60%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.cta h2 {
  font-size: clamp(42px, 6.2vw, 86px);
  letter-spacing: -0.04em; line-height: 0.98;
}
.cta .lead { margin: 28px 0 38px; }
.cta-direct { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line); }
.cta-direct-mobile { display: none; }
.cta-direct a.phone { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.03em; transition: color .3s; }
.cta-direct a.phone:hover { color: var(--red); }
.cta-direct .addr { font-size: 14.5px; color: var(--ink-dim); margin-top: 14px; line-height: 1.6; }

/* form */
/* Spam-Schutz: Honeypot komplett aus Layout & Sicht entfernen, aber für Bots im DOM */
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cta-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field-row .field { margin-bottom: 0; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: var(--card);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c746b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.cta-form .btn { width: 100%; margin-top: 8px; }
.field input.field-error, .field textarea.field-error {
  border-color: var(--red);
  background: #fff5f5;
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}
.form-note { font-size: 12px; color: var(--ink-faint); margin-top: 16px; text-align: center; line-height: 1.5; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-1); border-top: 1px solid var(--line); padding-block: 64px 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer .logo-artiq { height: 22px; }
.footer .logo-ms    { height: 12px; }
.footer-tagline { max-width: 30ch; font-size: 14px; color: var(--ink-dim); margin-top: 18px; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: var(--ink-dim); margin-bottom: 11px; transition: color .25s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: 13px; color: var(--ink-faint); }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ink-dim); }

/* =========================================================
   IMAGE SLOT PLACEHOLDERS
   ========================================================= */
.img-slot {
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Kein Rahmen wenn Bild vorhanden */
.img-slot:has(img) { border: none; background: none; }
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.img-slot-label {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px;
  pointer-events: none;
  z-index: 1;
}
.img-slot.has-image .img-slot-label { display: none; }

/* Gallery slots */
.gallery-track .img-slot {
  flex: none;
  height: clamp(320px, 46vw, 540px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Portrait slot */
.portrait-wrap .img-slot,
.portrait-img-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
}

/* Teacher card slots */
.teacher-card .img-slot {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
}

/* =========================================================
   MOBILE NAV
   ========================================================= */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-menu-btn.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 70px;
  z-index: 999;
  background: rgba(247,244,239,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  padding: 40px var(--gutter);
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav .navlink {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-nav .btn {
  margin-top: 12px;
  width: 100%;
}
/* Dark-Mode-Schalter als Menü-Zeile */
.dark-toggle-mobile {
  width: 100%;
  height: auto;
  border-radius: 0;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
}
.dark-toggle-mobile:hover { background: transparent; color: var(--ink); }
.dark-toggle-mobile .dt-icons { display: flex; flex-shrink: 0; }
.dark-toggle-mobile .dt-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-card:nth-child(2) { border-right: none; }
  .vision-card { padding-inline: 26px !important; }
  .vision-card:nth-child(odd) { padding-left: 0 !important; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-card.featured { order: -1; }
  .price-card { display: block; padding: 20px 20px 22px; }
  .price-card .p-name { margin-bottom: 4px; }
  .price-card .p-dur { font-size: 52px; margin: 10px 0 10px; }
  .price-card .p-price { margin-top: 6px; padding-top: 6px; }
  .price-card .p-price b { font-size: 44px; }
  .price-card .p-desc { margin-top: 6px; }
  .price-card ul { margin: 12px 0 16px; }
  .testi-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 100%; }
  .portrait-img-wrap { height: 260px !important; aspect-ratio: unset !important; }
  .portrait-badge { padding: 10px 14px; left: 0; right: 0; display: flex; align-items: baseline; gap: 10px; }
  .portrait-badge b { font-size: 15px; }
  .portrait-badge span { font-size: 9px; display: inline; margin-top: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-direct-desktop { display: none; }
  .cta-direct-mobile { display: flex; margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); grid-column: 1; align-items: center; text-align: center; }
  .cta-direct-mobile a.phone { font-size: clamp(16px, 5.5vw, 26px); white-space: nowrap; }
  .cta-direct-mobile .addr { font-size: 13px; margin-top: 8px; }
  .cta h2 { font-size: clamp(32px, 9vw, 52px); }
  .cta .lead { margin: 14px 0 0; }
}
@media (max-width: 900px) {
  /* Nav: nur Logo + Hamburger */
  .nav-links nav { display: none; }
  .nav .nav-cta { display: none !important; }
  .nav-links .dark-toggle { display: none; }
  .nav { padding-inline: 20px; }
  .nav-menu-btn { display: flex; }

  /* Logo: feste Größe, kein Stauchen */
  .logo-mark  { height: 32px; }
  .logo-artiq { height: 15px; }
  .logo-ms    { height: 9px; }

  /* Hero-Buttons: gestapelt, volle Breite */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .vision-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .vision-card { border-right: none !important; padding: 24px 16px 28px !important; }
  .vision-card:nth-child(1),
  .vision-card:nth-child(2) { border-bottom: 1px solid var(--line); }
  .vision-card:nth-child(1),
  .vision-card:nth-child(3) { border-right: 1px solid var(--line) !important; }
  .vision-card .vicon { width: 28px; height: 28px; margin-bottom: 18px; }
  .vision-card h3 { font-size: 16px; margin-bottom: 8px; }
  .vision-card p { font-size: 13.5px; }
  .vision-card .vnum { top: 24px; right: 16px; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }
  .hero-inner { padding-bottom: 100px; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .section-pad { padding-block: 52px; }
  .vision-grid { margin-top: 32px; }
  .about-body .story-desktop { display: none; }
  .about-body .story-mobile { display: flex; }
  .cred-tags { gap: 6px; margin-top: 20px; }
  .cred-tags .tag { padding: 6px 10px; font-size: 11px; gap: 5px; }
  .cred-tags .tag::before { width: 5px; height: 5px; }
  .about-stats { margin-top: 24px; padding-top: 24px; gap: 0; justify-content: space-between; }
  .about-stats .stat b { font-size: 32px; }
  .about-stats .stat span { font-size: 12px; margin-top: 4px; }
  .footer-top { flex-direction: column; gap: 20px; padding-bottom: 24px; }
  .footer { padding-block: 36px 24px; }
  .footer .logo-mark { height: 22px; }
  .footer .logo-artiq { height: 12px; }
  .footer .logo-ms { height: 7px; }
  .footer-tagline { font-size: 12px; margin-top: 10px; max-width: none; }
  .footer-cols { gap: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-col { margin-bottom: 0; }
  .footer-col h4 { font-size: 10px; margin-bottom: 8px; }
  .footer-col a, .footer-col p { font-size: 13px; margin-bottom: 6px; }
  .footer-col:first-child { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
  .footer-col:first-child h4 { display: none; }
  .footer-col:first-child a { display: inline; margin-bottom: 0; font-size: 13px; color: var(--ink-faint); }
  .footer-col:first-child a::after { content: "\00B7"; margin: 0 8px; color: var(--ink-faint); opacity: 0.5; }
  .footer-col:first-child a:last-child::after { display: none; }
  .footer-col:last-child { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 20px; }
  .footer-col:last-child h4 { width: 100%; }
  .footer-col:last-child a { margin-bottom: 4px; }
  .footer-bottom { padding-top: 16px; font-size: 11px; flex-direction: column; gap: 6px; }

}


/* =========================================================
   TEACHERS
   ========================================================= */
.teachers { background: var(--bg-1); padding-bottom: clamp(14px, 2vw, 24px); }
.teachers .section-head { max-width: none; margin-bottom: clamp(44px, 6vw, 64px); }
.teachers .lead { max-width: none; margin-top: 0; margin-bottom: 0; }

.gallery-track .img-slot img { filter: grayscale(100%); }

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.teacher-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow .5s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.teacher-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); }
.teacher-card image-slot {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  filter: grayscale(1) contrast(1.06);
}
.teacher-info {
  padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1;
  position: relative; z-index: 2; /* liegt VOR dem Badge → deckt dessen unteren Rand ab */
  background: var(--card);
  box-shadow: 0 -5px 10px -4px rgba(0,0,0,0.24); /* wirft feinen Schatten nach oben aufs Badge → 3D-Tuck */
}

/* Lehrer-Badge: gleitet hinter der weißen Kachel hervor */
.teacher-badge-anchor {
  position: relative; height: 0; z-index: 1; /* unter .teacher-info */
}
.teacher-badge {
  position: absolute;
  left: 18px; right: 18px; bottom: -9px; /* unterer Rand 9px hinter dem Weiß getuckt */
  display: block; text-align: center;
  padding: 5px 14px 14px; border-radius: 12px; /* nochmal einen Hauch flacher; +9px unten gleicht den Tuck aus → Text optisch mittig */
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.005em;
  color: var(--red);
  background: rgba(250,221,224,0.56); /* weniger weißlich + durchsichtiger → näher am rosé-glasigen Original (Milchglas) */
  border: 1px solid rgba(227,43,61,0.38);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); /* Foto schimmert durch */
  pointer-events: none;
  transform: translateY(135%); /* Startzustand: komplett hinter dem Weiß versteckt */
  transition: transform .8s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.teacher-badge.is-shown { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .teacher-badge { transition: none; transform: translateY(0); }
}
.teacher-info h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 0;
}
.teacher-role {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 4px; margin-bottom: 14px;
}
.teacher-bio {
  font-size: 14.5px; color: var(--ink-dim);
  line-height: 1.6; margin-bottom: 18px;
  flex: 1;
}
.teacher-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.teacher-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg);
}
.no-teachers-hint {
  color: var(--ink-faint); font-size: 15px;
  font-style: italic; padding: 40px 0;
}



/* =========================================================
   TEACHERS — expanded availability panel
   ========================================================= */
.teacher-name-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.teacher-name-row > h3 { min-width: 0; flex: 1; }
.teacher-fill {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  white-space: nowrap; flex: none;
  line-height: 1.4;
}
.teacher-fill.fill-full { background: rgba(227,43,61,0.10); color: var(--red); border: 1px solid rgba(227,43,61,0.25); }
.teacher-fill.fill-high { background: rgba(210,100,0,0.07); color: #b35a00; border: 1px dashed rgba(210,100,0,0.45); }
.teacher-fill.fill-med  { background: rgba(200,160,0,0.09); color: #8a6e00; border: 1px solid rgba(200,160,0,0.22); }
.teacher-fill.fill-low  { background: rgba(40,160,80,0.09); color: #1a7a40; border: 1px solid rgba(40,160,80,0.22); }

.teacher-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}
.teacher-toggle-btn:hover { background: var(--bg-2); border-color: var(--ink-faint); color: var(--ink); }
.teacher-toggle-btn.is-open { color: var(--ink); border-color: var(--ink-faint); }
.teacher-toggle-btn.is-open .toggle-chevron { transform: rotate(180deg); }
.toggle-chevron { transition: transform .3s var(--ease); }

.teacher-full-note {
  margin-top: 18px; font-size: 13px;
  color: var(--ink-faint); font-style: italic;
}

/* Availability panel — absolut unter der Karte, beeinflusst Nachbarn nicht */
.teacher-avail-panel {
  position: absolute;
  top: 100%;
  left: -1px; right: -1px;
  z-index: 20;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 20px 26px 22px;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  animation: panelOpen .35s var(--ease) both;
  /* Clip the top corners flush with the card bottom */
  clip-path: none;
}
@keyframes panelOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.tlegend {
  display: flex; gap: 16px; margin-bottom: 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.tlegend span { display: flex; align-items: center; gap: 6px; }
.tlegend-dot { width: 8px; height: 8px; border-radius: 50%; }
.tlegend-dot.free { background: var(--red); }
.tlegend-dot.ask  { background: transparent; border: 1.5px dashed var(--ink-faint); }
.tlegend-dot.busy { background: var(--line-strong); }

.tschedule {
  display: flex; flex-direction: column; gap: 14px;
}
.tday-block {
  display: flex; align-items: flex-start; gap: 14px;
}
.tday-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
  min-width: 28px; padding-top: 7px;
}
.tday-slots {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  gap: 7px;
}

/* Slot chips */
.tslot {
  padding: 5px 0;
  width: 52px;
  text-align: center;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
  font-family: inherit;
}
.tslot.is-free {
  border-color: rgba(227,43,61,0.25);
  color: var(--red);
  background: rgba(227,43,61,0.05);
}
.tslot.is-free:hover {
  background: var(--red); color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}
.tslot.is-selected {
  background: var(--red); color: #fff;
  border-color: var(--red); font-weight: 600;
}
.tslot.is-ask {
  border: 1.5px dashed rgba(227,43,61,0.35);
  color: var(--ink-dim);
  background: transparent;
  cursor: pointer;
}
.tslot.is-ask:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(227,43,61,0.05);
}
.tslot.is-busy {
  color: var(--ink-faint);
  text-decoration: line-through;
  background: transparent;
  border-color: var(--line);
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}


/* form banner */
.form-slot-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--red-soft);
  border: 1px solid rgba(227,43,61,0.22);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px; color: var(--ink);
  margin-bottom: 20px;
}
.form-slot-banner strong { color: var(--red); }
.form-slot-banner .banner-ask-note { color: var(--ink-faint); font-size: 13px; }
.form-slot-banner button {
  margin-left: auto;
  font-size: 13px; color: var(--ink-faint);
  background: none; border: none; cursor: pointer;
  padding: 0 4px; line-height: 1;
  transition: color .2s; font-family: inherit;
}
.form-slot-banner button:hover { color: var(--red); }

/* instrument selector */
.instrument-selector {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 9px;
}
.instrument-selector.instr-push { padding-top: 0; }
.instr-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.instr-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.instr-pill {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.instr-pill:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}
.instr-pill.is-selected {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-weight: 600;
}
.instr-pill.is-solo {
  cursor: default;
  pointer-events: none;
}
.instr-pill.is-solo.is-selected {
  background: var(--red-soft);
  border-color: rgba(227,43,61,0.3);
  color: var(--red);
  font-weight: 500;
}

@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 32px));
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  animation: cookieIn 0.4s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cookie-inner p { flex: 1; min-width: 240px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.8); margin: 0; }
.cookie-inner p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-decline {
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: var(--sans); transition: border-color .2s, color .2s;
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-cookie-accept {
  padding: 9px 20px; border-radius: 999px; border: none;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--sans); transition: opacity .2s;
}
.btn-cookie-accept:hover { opacity: 0.88; }
@media (max-width: 480px) {
  .cookie-inner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .btn-cookie-decline, .btn-cookie-accept { flex: 1; text-align: center; }
}

/* Availability panel: auf Mobile im normalen Fluss, schiebt Karten nach unten */
@media (max-width: 900px) {
  .teacher-avail-panel {
    position: static;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: none;
    margin: 0 -1px -1px;
  }
}

/* Reviews: auf Mobile nur erste Kachel zeigen, die flippt wie auf Desktop */
@media (max-width: 680px) {
  .flip-card:not(:first-child) { display: none; }
}
