/* ESZ Emder Schulungszentrum GmbH - styles */
:root {
  --bg: #f3efe8;
  --paper: #fbf9f5;
  --ink: #1c1b19;
  --muted: #6b6760;
  --line: #d9d2c6;
  --accent: #7e2634;
  --dark: #22201d;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --max: 1240px;
  --ease: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
h3 { font-size: 1.6rem; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Buttons and links */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 0.9rem 1.6rem; font: 500 0.95rem var(--sans); cursor: pointer; border-radius: 2px; transition: background var(--ease), color var(--ease); }
.btn:hover { background: transparent; color: var(--accent); }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.link { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color var(--ease); }
.link:hover { color: var(--accent); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background var(--ease), border-color var(--ease); border-bottom: 1px solid transparent; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; transition: height var(--ease); }
.site-header.scrolled { background: var(--bg); border-color: var(--line); }
.site-header.scrolled .bar { height: 3.75rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-mark { font: 400 2rem/1 var(--serif); color: var(--accent); }
.logo-sub { font-size: 0.72rem; line-height: 1.25; color: var(--muted); border-left: 1px solid var(--line); padding-left: 0.75rem; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.92rem; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width var(--ease); }
.nav a:not(.btn):hover::after { width: 100%; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform var(--ease), top var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Placeholder image blocks (replace with real photos using <img>) */
.ph { position: relative; overflow: hidden; background: var(--line); }
.ph::after { content: attr(data-label); position: absolute; left: 0.9rem; bottom: 0.75rem; font-size: 0.72rem; color: rgba(28, 27, 25, 0.55); }
.ph--stage { background: radial-gradient(circle at 68% 32%, var(--accent) 0 15%, transparent 15.4%), linear-gradient(to top, var(--dark) 0 24%, #cfc3ae 24%); }
.ph--stage::after, .ph--ink::after { color: rgba(255, 255, 255, 0.7); }
.ph--solid { background: var(--accent); }
.ph--solid::after { color: rgba(255, 255, 255, 0.75); }
.ph--gallery { background: repeating-linear-gradient(90deg, #d8cfbe 0 46px, #cfc4af 46px 92px); aspect-ratio: 16 / 10; }
.ph--ink { background: radial-gradient(circle at 30% 62%, transparent 0 22%, #5a5148 22% 23%, transparent 23.4%), var(--dark); aspect-ratio: 4 / 5; margin-top: 3rem; }

/* Hero */
.hero { padding: 9rem 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.tag { display: inline-block; font-size: 0.85rem; color: var(--accent); border: 1px solid var(--accent); padding: 0.25rem 0.75rem; margin-bottom: 2rem; border-radius: 2px; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: 0.98; letter-spacing: -0.02em; max-width: 11ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 2rem 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; }
.hero-visual .ph--stage { position: absolute; inset: 0 0 14% 20%; }
.hero-visual .ph--solid { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; border: 8px solid var(--bg); }
.stamp { position: absolute; right: 0; bottom: 0; font: italic 1.2rem/1.2 var(--serif); text-align: right; }

/* About */
.about { padding: var(--section) 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem 2rem; }
.about-grid h2 { grid-column: 1 / 8; }
.about-text { grid-column: 8 / 13; display: grid; gap: 1.2rem; color: var(--muted); align-self: end; }
.about-img { grid-column: 1 / 8; }
.statement { grid-column: 8 / 13; align-self: center; margin-left: -4rem; background: var(--paper); border-left: 3px solid var(--accent); padding: 2rem; font: 1.65rem/1.25 var(--serif); }
.facts { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.facts dt { font: 2.8rem/1 var(--serif); color: var(--accent); }
.facts dd { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; max-width: 16rem; }

/* Services */
.services { background: var(--paper); padding: var(--section) 0; border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(2rem, 6vw, 6rem); }
.svc-intro { position: sticky; top: 6rem; align-self: start; }
.svc-intro p { color: var(--muted); margin-top: 1.25rem; max-width: 22rem; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { display: grid; grid-template-columns: 3rem 1fr 2.5rem; gap: 1.25rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); transition: padding var(--ease); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { padding-left: 0.75rem; }
.svc:hover .num, .svc:hover .ico { color: var(--accent); }
.num { font: 1.25rem/1.5 var(--serif); color: var(--muted); transition: color var(--ease); }
.svc p { color: var(--muted); margin-top: 0.5rem; max-width: 36rem; }
.ico { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); transition: color var(--ease); }

/* Approach / benefits */
.approach { background: var(--dark); color: #efe9de; padding: var(--section) 0; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 6vw, 6rem); margin-top: 4rem; }
.benefit { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1rem; padding: 2rem 0 2.5rem; border-top: 1px solid rgba(239, 233, 222, 0.22); }
.benefit:nth-child(even) { margin-top: 3rem; }
.big { grid-row: 1 / 3; font: 5.5rem/0.9 var(--serif); color: #c98a94; }
.benefit h3 { margin-bottom: 0.6rem; }
.benefit p { color: rgba(239, 233, 222, 0.72); max-width: 26rem; }

/* Contact */
.contact { padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); }
.contact-info > p { color: var(--muted); margin: 1.25rem 0 2.5rem; max-width: 26rem; }
.details { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.details div { border-top: 1px solid var(--line); padding-top: 0.9rem; display: grid; grid-template-columns: 6rem 1fr; }
.details dt { font-size: 0.85rem; color: var(--muted); }
.details a { color: var(--accent); border-bottom: 1px solid currentColor; }
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.2rem; align-content: start; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 500; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 0.6rem 0; border-radius: 0; transition: border-color var(--ease); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); border-bottom-width: 2px; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: 0.82rem; min-height: 1em; }
.form .btn { justify-self: start; }
.status { font-size: 0.95rem; }
.status.ok { color: #2d6a3e; }
.status.fail { color: #b3261e; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 4rem; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-name { font: 1.6rem/1.1 var(--serif); margin-bottom: 0.75rem; }
.foot-brand p:last-child { color: var(--muted); max-width: 22rem; }
.footer h4 { font: 600 0.85rem var(--sans); margin-bottom: 0.9rem; }
.footer nav, .footer .foot-grid > div:not(.foot-brand) { color: var(--muted); }
.footer nav a, .footer .foot-grid > div:last-child a { display: block; padding: 0.15rem 0; }
.footer a:hover { color: var(--accent); }
.foot-bottom { margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* Reveal on scroll (only active when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .svc-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .hero-visual { max-width: 460px; aspect-ratio: 1; }
  .about-grid h2, .about-text, .about-img, .statement { grid-column: 1 / 13; }
  .statement { margin-left: 0; }
  .svc-intro { position: static; }
  .ph--ink { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.5rem var(--pad) 2rem; display: none; }
  .nav.open { display: flex; }
  .site-header.menu-open { background: var(--bg); }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .benefits { grid-template-columns: 1fr; }
  .benefit:nth-child(even) { margin-top: 0; }
  .big { font-size: 4rem; }
  .benefit { grid-template-columns: 4rem 1fr; }
  .svc { grid-template-columns: 2.25rem 1fr; }
  .svc .ico { display: none; }
  .details div { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
