/* ==========================================================================
   Lehrerfinanzen mit Alex — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color: warm, grounded in the brand's existing orange/gold identity */
  --ink: #1D1811;
  --ink-soft: #6B5F50;
  --ink-faint: #9A8D7A;
  --paper: #FBF7EF;
  --paper-alt: #F1E4CC;
  --card: #FFFDF9;
  --border: rgba(29, 24, 17, 0.12);
  --border-soft: rgba(29, 24, 17, 0.07);

  --orange: #C25E0F;
  --orange-deep: #9C4A0B;
  --orange-tint: #F3DDC3;
  --gold: #AC821F;
  --gold-tint: #EFE1B8;
  --green: #2E7A54;
  --green-tint: #DCEEE2;
  --red: #B23A2A;
  --red-tint: #F5DDD8;

  --font-display: 'Calistoga', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-hero: clamp(2.6rem, 4vw + 1.4rem, 4.4rem);
  --text-h2: clamp(1.9rem, 1.6vw + 1.3rem, 2.75rem);
  --text-h3: clamp(1.25rem, 0.6vw + 1.05rem, 1.5rem);
  --text-lead: clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --text-body: 1.0625rem;
  --text-small: 0.9rem;
  --text-label: 0.78rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;

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

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(194, 94, 15, 0.55);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(194, 94, 15, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
}

.logo-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.main-nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-soft);
  background: var(--paper);
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--orange-tint) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: var(--space-lg);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--orange-tint);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  font-weight: 600;
}

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: 1.3rem;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  font-size: var(--text-lead);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.trust-list {
  list-style: none;
  margin: 0 0 2.3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.trust-list .check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.trust-list .check svg { width: 11px; height: 11px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-figure {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 882 / 980;
  box-shadow: 0 30px 60px -25px rgba(29, 24, 17, 0.4);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: 1.6rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  box-shadow: 0 18px 40px -20px rgba(29, 24, 17, 0.35);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 230px;
}

.hero-badge .seal {
  flex: none;
  width: 38px;
  height: 38px;
}

.hero-badge strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.hero-badge span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   Stats bar
   ------------------------------------------------------------------------- */

.stats {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--card);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.stat {
  text-align: center;
  padding: 0 0.5rem;
  border-left: 1px solid var(--border-soft);
}

.stat:first-child { border-left: none; }

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.1rem);
  font-weight: 700;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------------------- */

section { padding: var(--space-xl) 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section-head .eyebrow { margin-bottom: 1rem; }

.section-head h2 { font-size: var(--text-h2); margin-bottom: 1rem; }

.section-head p {
  color: var(--ink-soft);
  font-size: var(--text-lead);
}

.section-alt { background: var(--paper-alt); }

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(29, 24, 17, 0.35);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--orange-deep);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1.2rem;
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-tint);
  background: var(--gold-tint);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */

.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -30px rgba(29, 24, 17, 0.4);
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 78% 12%;
}

.credential-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.credential-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.credential-list .dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 0.55rem;
}

.credential-list strong { display: block; font-size: 1rem; }
.credential-list span { color: var(--ink-soft); font-size: 0.92rem; }

.about h2 { font-size: var(--text-h2); margin-bottom: 1rem; }
.about > .container > div:last-child > p { color: var(--ink-soft); font-size: var(--text-lead); }

/* -------------------------------------------------------------------------
   Process timeline
   ------------------------------------------------------------------------- */

.process-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin: -1.2rem auto var(--space-lg);
  max-width: 640px;
}

.process-note .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding-bottom: var(--space-lg);
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-num {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--orange);
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-body h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
}

.timeline-body p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* -------------------------------------------------------------------------
   Testimonial strip (quiet, honest — no fabricated review scores)
   ------------------------------------------------------------------------- */

.honesty-note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 2.4rem 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.honesty-note p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */

.contact .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-lg);
}

.contact-info h2 { font-size: var(--text-h2); margin-bottom: 1rem; }

.contact-info p {
  color: var(--ink-soft);
  font-size: var(--text-lead);
  margin-bottom: 1.8rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.contact-detail .icon-circle {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .icon-circle svg { width: 18px; height: 18px; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  box-shadow: 0 30px 60px -35px rgba(29, 24, 17, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-tint);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.is-visible { display: block; }
.contact-form.is-submitted form { display: none; }

.form-success .seal { width: 56px; height: 56px; margin: 0 auto 1rem; }

/* -------------------------------------------------------------------------
   Sticky CTA (mobile)
   ------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: none;
  width: calc(100% - 2rem);
  max-width: 420px;
}

.sticky-cta .btn {
  width: 100%;
  box-shadow: 0 18px 40px -14px rgba(194, 94, 15, 0.6);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(251, 247, 239, 0.14);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.site-footer .logo { color: var(--paper); }
.site-footer .logo-word small { color: var(--gold); }

.footer-tagline {
  color: rgba(251, 247, 239, 0.6);
  font-size: 0.92rem;
  margin-top: 0.6rem;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.5);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-links a {
  text-decoration: none;
  color: rgba(251, 247, 239, 0.85);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(251, 247, 239, 0.45);
}

.footer-bottom a { color: rgba(251, 247, 239, 0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* -------------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; margin: 0 auto; order: -1; }
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .contact .container { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: none; }
  .sticky-cta { display: block; }
  section { padding: var(--space-lg) 0; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 1rem; max-width: none; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .header-cta .btn-primary { display: none; }
}
