:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9f9f9;
  --ink: #0d0d0d;
  --ink-soft: #4d4d4d;
  --accent: #c1ff72;
  --accent-dark: #b3f25c;
  --border: #e6e6e6;
  --radius-s: 6px;
  --radius-m: 14px;
  --max-page: 1160px;
  --max-text: 860px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* ---------- Barrierefreiheit ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  text-decoration: none;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Seitenrahmen ---------- */
.aniko-page {
  padding: 48px 24px;
  overflow-x: hidden;
}

.aniko-header {
  max-width: var(--max-page);
  margin: 0 auto 48px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Logo ---------- */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
.logo-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.logo-underline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.logo-rules { display: flex; align-items: center; gap: 3px; }
.logo-rule { display: block; height: 2px; }
.logo-rule-black { width: 26px; background-color: var(--ink); }
.logo-rule-yellow { width: 18px; background-color: var(--accent); }
.logo-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Navigation ---------- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-tab {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav-tab:hover { border-color: var(--ink); background-color: #f5f5f5; }
.nav-tab.active,
.nav-tab[aria-current="page"] {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #fff;
}
.nav-tab.contact-btn { background-color: transparent; }
.nav-tab.contact-btn:hover { border-color: var(--ink); background-color: var(--accent); }

/* ---------- Trennlinien ---------- */
.accent-lines {
  max-width: var(--max-page);
  margin: 0 auto 48px auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accent-lines .line { display: block; height: 3px; border-radius: 2px; width: 100%; }
.accent-lines .line-long { background-color: var(--ink); }
.accent-lines .line-short { background-color: var(--accent); }

/* ---------- Textseiten ---------- */
.content-section { max-width: var(--max-text); margin: 0 auto; }

.page-title {
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px 0;
}
.page-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 48px 0;
  max-width: 62ch;
}
.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px 0;
  max-width: 72ch;
}
.about-text strong { color: var(--ink); }

.highlight-box {
  background-color: var(--surface-soft);
  border-left: 4px solid var(--accent);
  padding: 24px;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  margin: 32px 0;
}
.highlight-box h2 { margin: 0 0 12px 0; font-size: 1.2rem; }
.highlight-box p { margin: 0; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Leistungen ---------- */
.services-grid { display: flex; flex-direction: column; gap: 24px; }
.service-card {
  position: relative;
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-m);
  background-color: var(--surface);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.service-card:hover { border-color: var(--ink); box-shadow: 0 14px 30px rgba(13,13,13,.08); }
.service-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .45;
  pointer-events: none;
}
.service-card h2 { font-size: 1.3rem; margin: 0 0 12px 0; max-width: 34ch; }
.service-card p { line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* ---------- FAQ (details/summary: tastaturbedienbar, ohne JS) ---------- */
.faq-accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: #fafafa; }
.faq-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform .25s ease, background-color .25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--ink); }
.faq-item[open] summary { background-color: #fafafa; }
.faq-text { padding: 0 12px 24px 12px; margin: 0; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Rechtstexte ---------- */
.legal-block { margin-bottom: 32px; }
.legal-block h2 { font-size: 1.3rem; margin: 0 0 12px 0; }
.legal-block h3 { font-size: 1.1rem; font-weight: 600; margin: 16px 0 8px 0; }
.legal-block p, .legal-block ul, .legal-block address {
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: normal;
  margin: 0 0 12px 0;
}
.legal-block ul { padding-left: 20px; }
.legal-block a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-block a:hover { background-color: var(--accent); }
.legal-footer-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ---------- Buttons & CTA ---------- */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--ink);
  padding: 15px 30px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.cta-button:hover { background-color: var(--accent-dark); }

.cta-bottom-section {
  position: relative;
  max-width: 720px;
  margin: 90px auto 20px auto;
  padding: 52px 48px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.cta-bottom-section h2 { font-size: 1.8rem; margin: 0 0 12px 0; }
.cta-bottom-section p { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 28px 0; line-height: 1.55; }

/* ---------- Startseite ---------- */
.hero-grid {
  max-width: var(--max-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 24px 0;
  min-height: 2.5em;
  text-rendering: optimizeLegibility;
}
.tw-char { display: inline; opacity: 0; animation: aniko-char-in .15s ease forwards; }
@keyframes aniko-char-in { to { opacity: 1; } }
.typewriter-cursor { display: inline-block; color: var(--accent-dark); animation: aniko-blink .9s steps(1) infinite; }
@keyframes aniko-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-subtitle { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); margin: 0 0 34px 0; max-width: 46ch; }
.hero-image-wrapper { display: flex; justify-content: flex-end; overflow: hidden; }
.profile-img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(32,29,25,.14);
  border: 1px solid var(--border);
  animation: aniko-slide-in 1s cubic-bezier(.16,1,.3,1) .2s both;
}
@keyframes aniko-slide-in { from { opacity: 0; transform: translateX(120px); } to { opacity: 1; transform: translateX(0); } }

.services-section { max-width: 1100px; margin: 120px auto 90px auto; }
.section-title { font-size: 2rem; margin: 0 0 12px 0; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 34px; height: 3px; background: var(--accent); }
.section-intro { font-size: 1.05rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 42px 0; line-height: 1.6; }

.process-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.process-item {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: #fff;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.js .process-item.reveal-on-scroll { opacity: 0; transform: translateY(28px); }
.js .process-item.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.process-item:hover, .process-item:focus-within { border-color: var(--ink); box-shadow: 0 14px 30px rgba(13,13,13,.08); }
.process-item::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .45;
  transition: transform .35s ease;
  pointer-events: none;
}
.process-item:hover::after { transform: scale(1.35); }
.process-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.process-number {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.process-toggle {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.process-item.open .process-toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--ink); }
.process-content h3 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 12px 0; max-width: 28ch; }
.process-content p { font-size: .98rem; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 48ch; }
.process-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease, margin-top .35s ease; }
.process-item.open .process-detail { grid-template-rows: 1fr; margin-top: 18px; }
.process-detail-inner { overflow: hidden; font-size: .94rem; line-height: 1.6; color: var(--ink-soft); padding-right: 10px; }
.process-detail-inner strong { color: var(--ink); }

.dynamic-showcase { max-width: 1100px; margin: 0 auto 110px; }
.showcase-copy { border-radius: var(--radius-m); padding: 40px; background: var(--ink); color: #fff; max-width: 700px; }
.showcase-copy h2 { font-size: 1.8rem; margin: 0 0 12px 0; color: #fff; }
.showcase-copy p { color: #d0d0d0; line-height: 1.65; margin: 0 0 24px 0; }
.showcase-copy .section-kicker { color: var(--accent); }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-metric { padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.mini-metric strong { display: block; color: var(--accent); font-size: 1.4rem; overflow-wrap: anywhere; }
.mini-metric span { font-size: .78rem; color: #d0d0d0; }

.cta-bottom-section.is-featured {
  max-width: 1100px;
  padding: 56px;
  background: var(--accent);
  border-color: var(--ink);
  overflow: hidden;
}
.cta-bottom-section.is-featured::after {
  content: "ANIKÓ";
  position: absolute;
  right: -18px;
  bottom: -34px;
  font-size: 7rem;
  font-weight: 800;
  color: rgba(13,13,13,.08);
  pointer-events: none;
}
.cta-bottom-section.is-featured .cta-button { position: relative; z-index: 1; background: var(--ink); color: #fff; }
.cta-bottom-section.is-featured .cta-button:hover { background: #333; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .aniko-header { gap: 12px; }
  .logo-title { font-size: 1.5rem; }
  .hero-grid, .process-list { grid-template-columns: 1fr; }
  .hero-image-wrapper { margin-top: 30px; order: -1; justify-content: center; }
  .process-item { padding: 26px; }
  .cta-bottom-section { padding: 40px 28px; }
}
@media (max-width: 480px) {
  .aniko-page { padding: 32px 16px; }
  .page-title { font-size: 1.8rem; }
  .hero-title { font-size: 1.8rem; }
  .logo-title { font-size: 1.2rem; }
  .service-card { padding: 24px; }
  .faq-item summary { font-size: 1rem; }
  .showcase-copy, .cta-bottom-section, .cta-bottom-section.is-featured { padding: 28px 22px; }
  .mini-metrics { grid-template-columns: 1fr; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .js .process-item.reveal-on-scroll { opacity: 1; transform: none; }
  .typewriter-cursor { display: none; }
}