/* =========================================================
   ESA Steuerberatung – Styles
   Farben, Typografie und Komponenten nach dem Figma-Design
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --green:        #34594a;   /* Primärgrün (Buttons, CTA-Flächen)   */
  --green-dark:   #2c4c40;   /* Kontaktleiste, dunkle Akzente       */
  --green-accent: #4e8069;   /* Labels / Eyebrow-Text               */
  --green-soft:   #dce9e3;   /* helle grüne Info-Box                */
  --mint-bg:      #e9f1ee;   /* helle Abschnitts-Hintergründe       */
  --icon-bg:      #eef2f0;   /* Icon-Kacheln (hellgrau-grün)        */

  --text:         #1f2a26;   /* Haupttext / Überschriften           */
  --text-muted:   #6b7671;   /* Fließtext, sekundär                 */
  --text-light:   #93a29b;   /* Hilfstexte                          */

  --white:        #ffffff;
  --border:       #e6ebe8;
  --shadow-sm:    0 2px 10px rgba(28, 54, 44, .05);
  --shadow-md:    0 12px 34px rgba(28, 54, 44, .09);
  --shadow-card:  0 10px 30px rgba(28, 54, 44, .06);

  --radius:       18px;
  --radius-lg:    28px;
  --radius-pill:  999px;

  --wrap:         1200px;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-accent:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ar:      'Noto Sans Arabic', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout-Helfer ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section        { padding-block: 96px; }
.section--mint  { background: var(--mint-bg); }

.eyebrow {
  color: var(--green-accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.h-xl { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.h-lg { font-size: clamp(2rem, 4vw, 3rem);     font-weight: 300; line-height: 1.1;  letter-spacing: -.01em; }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.2; }

.lead { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #2c4c40; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--white { background: #fff; color: var(--green); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.nav__logo img { height: 60px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 38px; }
.nav__links a {
  color: #5a6560;
  font-size: 1rem;
  font-weight: 400;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--text); font-weight: 500; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: .95rem;
  font-family: var(--font-ar);
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.lang-btn:hover { background: #2c4c40; transform: translateY(-1px); }
.lang-btn svg { width: 18px; height: 18px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
}

/* =========================================================
   HERO (Startseite)
   ========================================================= */
.hero { padding-block: 72px 90px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--green);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.hero__text { color: var(--text-muted); font-size: 1.1rem; max-width: 30em; margin-bottom: 30px; }

.hero__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-bottom: 28px;
}
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  display: grid;
  place-items: center;
}
.feature__check svg { width: 13px; height: 13px; }
.feature b { display: block; font-weight: 600; font-size: 1rem; color: var(--text); }
.feature span { font-size: .9rem; color: var(--text-muted); }

.lang-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.lang-box__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(52,89,74,.12);
  color: var(--green);
  display: grid; place-items: center;
}
.lang-box b { display: block; color: var(--text); font-weight: 600; }
.lang-box span { font-family: var(--font-ar); color: var(--green); font-size: .95rem; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  top: 22px; right: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.hero__badge svg { width: 22px; height: 22px; margin-bottom: 2px; }
.hero__badge small { display: block; font-size: .75rem; letter-spacing: .05em; }

/* =========================================================
   KONTAKTLEISTE (grüner Streifen)
   ========================================================= */
.contactbar { background: var(--green-dark); color: #fff; }
.contactbar__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-block: 26px;
}
.contactbar__item { display: flex; align-items: center; gap: 14px; flex: 1 1 220px; }
.contactbar__item .ic {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
}
.contactbar__item .ic svg { width: 20px; height: 20px; }
.contactbar__item small { display: block; opacity: .7; font-size: .8rem; }
.contactbar__item b { font-weight: 500; }

/* =========================================================
   LEISTUNGEN
   ========================================================= */
.services__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 54px;
}
.services__head .lead { text-align: right; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card::after {           /* dezenter Deko-Kreis oben rechts */
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--mint-bg);
  opacity: .6;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--green);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.icon-tile svg { width: 24px; height: 24px; }

.service-card h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 12px; }
.service-card p  { color: var(--text-muted); font-size: .97rem; }

/* =========================================================
   MEINE WERTE
   ========================================================= */
.values__head { text-align: center; margin-bottom: 50px; }
.values__head .eyebrow { margin-bottom: 10px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.value-card .icon-tile { border-radius: 12px; }
.value-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }
.value-card p  { color: var(--text-muted); font-size: .97rem; }

/* =========================================================
   CTA – Startseite (voll breit)
   ========================================================= */
.cta-band {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding-block: 90px;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: .95rem;
  margin-bottom: 26px;
}
.cta-pill svg { width: 18px; height: 18px; }
.cta-pill .ar { font-family: var(--font-ar); }
.cta-band h2 { font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; margin-bottom: 20px; }
.cta-band p  { max-width: 34em; margin: 0 auto 36px; opacity: .85; font-size: 1.1rem; }
.cta-band__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA – kontrastierte Box (Über mich) */
.cta-box-wrap { padding-block: 40px 96px; }
.cta-box {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 70px 40px;
}
.cta-box h2 { font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.cta-box p  { max-width: 40em; margin: 0 auto 22px; opacity: .85; }
.cta-box__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .95rem; margin-bottom: 30px; opacity: .9;
}
.cta-box__badge svg { width: 18px; height: 18px; }
.cta-box__badge .ar { font-family: var(--font-ar); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); padding-block: 60px 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo img { height: 74px; margin-bottom: 18px; }
.footer__about { color: var(--text-muted); font-size: .95rem; max-width: 26em; }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 18px; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { color: var(--text-muted); transition: color .2s; }
.footer__links a:hover { color: var(--green); }
.footer__contact li {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); margin-bottom: 14px; font-size: .95rem;
}
.footer__contact svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: .9rem;
}
.footer__bottom .legal { display: flex; gap: 28px; }
.footer__bottom .legal a:hover { color: var(--green); }

/* =========================================================
   SEITEN-HERO (Über mich / Kontakt)
   ========================================================= */
.page-hero { background: var(--mint-bg); text-align: center; padding-block: 70px 96px; }
.page-hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.page-hero .pill svg { width: 18px; height: 18px; color: var(--green); }
.page-hero .pill .ar { font-family: var(--font-ar); }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p  { color: var(--text-muted); font-size: 1.15rem; max-width: 34em; margin: 0 auto; }

/* =========================================================
   ÜBER MICH – Inhalt
   ========================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-split--reverse .about-split__media { order: 2; }
.about-split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1/1;
  object-fit: cover;
}
.about-split h2 { margin-bottom: 22px; }
.about-split p { color: var(--text-muted); margin-bottom: 18px; }
.about-split p:last-child { margin-bottom: 0; }

/* Mehrsprachige Beratung – Info-Karte */
.multilang {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 860px;
  margin-inline: auto;
}
.multilang .icon-tile { flex: none; }
.multilang h2 { font-weight: 400; font-size: 1.7rem; margin-bottom: 14px; }
.multilang p  { color: var(--text-muted); margin-bottom: 22px; }
.multilang .badge {
  display: inline-flex; gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: .92rem;
}
.multilang .badge .ar { font-family: var(--font-ar); color: var(--text-muted); }
.multilang .badge .sep { color: var(--text-light); }

/* =========================================================
   TIMELINE (Werdegang)
   ========================================================= */
.timeline { max-width: 900px; margin-inline: auto; }
.tl-item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 38px;
}
.tl-item::before {           /* Linie */
  content: "";
  position: absolute;
  left: 5px; top: 16px; bottom: -6px;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-item::after {            /* Punkt */
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-accent);
}
.tl-date { color: var(--green-accent); font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.tl-title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 500; margin-bottom: 8px; }
.tl-title svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.tl-item p { color: var(--text-muted); }

/* =========================================================
   KONTAKT – Info-Karten
   ========================================================= */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: -60px;               /* überlappt Seiten-Hero leicht */
  position: relative;
  z-index: 2;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
}
.contact-card .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card b { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: .95rem; }
.contact-card a:hover { color: var(--green); }

/* Kontakt – Formular + Seitenkarte */
.contact-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 30px;
  align-items: start;
}
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}
.form-card h2 { font-size: 1.9rem; font-weight: 400; margin-bottom: 8px; }
.form-card > p { color: var(--text-muted); margin-bottom: 30px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 8px; }
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #f7faf8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-light); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  background: #f2f6f4;
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 24px;
}
.form-card .btn { width: 100%; justify-content: center; }

.side-card {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.side-card .icon-tile { background: rgba(255,255,255,.15); color: #fff; }
.side-card h3 { font-size: 1.4rem; font-weight: 400; margin-bottom: 12px; }
.side-card p  { opacity: .85; margin-bottom: 12px; }
.side-card .ar { font-family: var(--font-ar); opacity: .85; }

/* Karte / Standort */
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
  padding: 70px 30px;
}
.map-card .icon-tile { margin: 0 auto 18px; }
.map-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.map-card p  { color: var(--text-muted); }
.map-card small { display: block; color: var(--text-light); margin-top: 6px; }

/* Bestätigungs-Meldung Formular */
.form-success {
  display: none;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .section { padding-block: 72px; }

  .nav__menu {
    position: fixed;
    inset: 82px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .lang-btn { margin-top: 16px; justify-content: center; }
  .nav__toggle { display: block; }

  .hero__grid,
  .about-split,
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-split--reverse .about-split__media { order: 0; }
  .hero__media { max-width: 480px; margin-inline: auto; }

  .card-grid   { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .services__head { grid-template-columns: 1fr; }
  .services__head .lead { text-align: left; }

  .contact-cards { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .footer__grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .hero__features { grid-template-columns: 1fr; }
  .card-grid, .contact-cards, .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 22px; }
  .cta-box { padding: 50px 24px; }
  .multilang { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
