/* =========================================================
   ELUVIA – Stylesheet
   CI: Gold #dcaf5b · Tiefes Grün #013532
   ========================================================= */

:root {
  --gold: #dcaf5b;
  --gold-soft: #e7c684;
  --gold-deep: #c5994a;
  --green: #013532;
  --green-700: #024a45;
  --green-900: #002825;
  --cream: #faf6ee;
  --cream-2: #f3ecdd;
  --ink: #1c2b29;
  --muted: #5d6f6c;
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -28px rgba(1, 53, 50, 0.35);
  --shadow-soft: 0 14px 40px -22px rgba(1, 53, 50, 0.28);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.95em 2em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--green-900);
  box-shadow: 0 14px 30px -14px rgba(220, 175, 91, 0.7);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -16px rgba(220, 175, 91, 0.85);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(220, 175, 91, 0.55);
  color: var(--gold);
}
.btn-ghost:hover {
  background: rgba(220, 175, 91, 0.1);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(1, 53, 50, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  color: var(--cream);
}
.brand-wordmark {
  height: 22px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .brand-wordmark { height: 19px; }
.brand-mark { color: var(--gold); font-size: 1.1em; }
.brand-mark-img {
  width: 40px;
  height: 40px;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.site-header.scrolled .brand-mark-img { width: 34px; height: 34px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

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

/* ---------- Sprachumschalter ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(220, 175, 91, 0.28);
  border-radius: 999px;
  background: rgba(1, 40, 37, 0.25);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(250, 246, 238, 0.7);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-btn .fi {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.lang-btn:hover { color: var(--cream); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--green-900);
}

/* Mobile-Switcher standardmäßig aus (nur im Menü sichtbar) */
.lang-switch-mobile { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(220, 175, 91, 0.6);
  border-radius: 999px;
  padding: 0.5em 1.3em !important;
  color: var(--gold) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: rgba(220, 175, 91, 0.12); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 80% 10%, var(--green-700) 0%, var(--green) 45%, var(--green-900) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(220, 175, 91, 0.10) 0, transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(220, 175, 91, 0.08) 0, transparent 30%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(220, 175, 91, 0.28) 0%, transparent 60%);
  filter: blur(20px);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.05); }
}

.hero-inner { position: relative; max-width: 760px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 1.4em;
  font-weight: 400;
}
.hero-title {
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  font-weight: 500;
  margin-bottom: 0.5em;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(250, 246, 238, 0.82);
  max-width: 580px;
  margin-bottom: 2.2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(220, 175, 91, 0.5);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Section base ---------- */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.76rem;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 1em;
}
.section-eyebrow.light { color: var(--gold); }

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  color: var(--green);
}
.section-title.light { color: var(--cream); }

.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
}

.section-head.center {
  text-align: center;
  margin: 0 auto clamp(48px, 7vw, 72px);
  max-width: 720px;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- Über mich ---------- */
.section-about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.about-media { position: relative; }
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 120% at 30% 20%, var(--green-700), var(--green) 60%, var(--green-900));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(220, 175, 91, 0.4);
  border-radius: calc(var(--radius-lg) - 10px);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 28%;
}
.portrait-symbol {
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.85;
}
.about-accent {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  z-index: -1;
  opacity: 0.55;
  filter: blur(2px);
}

.about-text p { color: #3a4a48; font-size: 1.06rem; }
.about-text em { color: var(--gold-deep); font-style: italic; }

.about-quote {
  margin: 1.8em 0 0;
  padding: 1.2em 0 1.2em 1.6em;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--green);
}

/* ---------- Angebot ---------- */
.section-offer { background: var(--cream-2); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(1, 53, 50, 0.07);
  border-radius: var(--radius);
  padding: 42px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(220, 175, 91, 0.14);
  color: var(--gold-deep);
  font-size: 1.8rem;
  margin-bottom: 1.2em;
}
.card h3 { color: var(--green); font-size: 1.55rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Ablauf ---------- */
.section-process { background: var(--cream); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), #fbf8f1);
  border: 1px solid rgba(1, 53, 50, 0.06);
  transition: transform 0.4s var(--ease);
}
.step:hover { transform: translateY(-6px); }
.step-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3em;
}
.step h3 { color: var(--green); font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Kontakt ---------- */
.section-contact {
  background:
    radial-gradient(120% 100% at 15% 0%, var(--green-700) 0%, var(--green) 50%, var(--green-900) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(220, 175, 91, 0.22) 0%, transparent 62%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-lead { color: rgba(250, 246, 238, 0.8); font-size: 1.1rem; max-width: 420px; }
.contact-info { list-style: none; margin: 2em 0 0; padding: 0; }
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.9em;
  color: rgba(250, 246, 238, 0.9);
}
.contact-info span { color: var(--gold); font-size: 1.2rem; }
.contact-info a:hover { color: var(--gold); }

/* ---------- Form ---------- */
.contact-form {
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(220, 175, 91, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(6px);
}
.form-row { margin-bottom: 1.2em; }
.form-row label,
.form-consent label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.5em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(1, 40, 37, 0.55);
  border: 1px solid rgba(220, 175, 91, 0.25);
  border-radius: 12px;
  padding: 0.85em 1em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(220, 175, 91, 0.18);
}
.contact-form textarea { resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  margin: 0.4em 0 1.6em;
}
.form-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: 0 0 auto; }
.form-consent label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.75);
  margin: 0;
}

.form-status { margin: 1em 0 0; font-size: 0.95rem; min-height: 1.2em; }
.form-status.ok { color: var(--gold-soft); }
.form-status.error { color: #f3b6a0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(250, 246, 238, 0.7);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4em;
  text-align: center;
}
.brand-footer { gap: 0; }
.footer-logo { width: 170px; height: auto; }
.footer-person {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-soft);
  margin: -0.4em 0 0;
  letter-spacing: 0.02em;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-nav a { font-size: 0.95rem; letter-spacing: 0.04em; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: 0.85rem; margin: 0; opacity: 0.75; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Arabische Schrift (Tajawal) wenn lang="ar"
   ========================================================= */
html[lang="ar"] body { font-family: "Tajawal", "Segoe UI", sans-serif; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .about-quote,
html[lang="ar"] .footer-person,
html[lang="ar"] .step-num {
  font-family: "Tajawal", sans-serif;
}
html[lang="ar"] .hero-title { font-weight: 700; line-height: 1.25; }
html[lang="ar"] .section-title { font-weight: 700; }
html[lang="ar"] .hero-eyebrow,
html[lang="ar"] .section-eyebrow { letter-spacing: 0.12em; }

/* =========================================================
   RTL-Anpassungen
   ========================================================= */
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .about-quote {
  border-left: 0;
  border-right: 3px solid var(--gold);
  padding: 1.2em 1.6em 1.2em 0;
}
[dir="rtl"] .card::before { transform-origin: right; }
[dir="rtl"] .about-accent { right: auto; left: -22px; }
[dir="rtl"] .hero-glow { right: auto; left: -10%; }
[dir="rtl"] .contact-glow { left: auto; right: -10%; }
[dir="rtl"] .nav-menu a::after { left: auto; right: 0; }
[dir="rtl"] .lang-btn { letter-spacing: 0; }
[dir="rtl"] .form-consent { text-align: right; }
@media (max-width: 900px) {
  [dir="rtl"] .nav-menu {
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    align-items: flex-start;
  }
  [dir="rtl"] .nav-menu.open { transform: translateX(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 0 40px;
    background: rgba(1, 40, 37, 0.97);
    backdrop-filter: blur(12px);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu { z-index: 105; }

  /* Wichtig: backdrop-filter macht den Header zum Bezugsrahmen fuer
     position:fixed -> das mobile Menue wuerde sonst kollabieren. */
  .site-header.scrolled {
    background: rgba(1, 40, 37, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-menu a { font-size: 1.15rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .header-right { gap: 0.7rem; }

  /* Sprachwahl wandert ins Menü -> Kopfzeile bleibt schmal genug */
  .lang-switch-desktop { display: none; }
  .lang-switch-mobile { display: block; margin-top: 1.8rem; }
  .lang-switch-mobile .lang-switch { display: inline-flex; }
  .lang-switch-mobile .lang-btn { font-size: 0.95rem; padding: 7px 12px; }
  .lang-switch-mobile .lang-btn .fi { width: 24px; height: 17px; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .brand-wordmark { height: 18px; }
  .brand-mark-img { width: 34px; height: 34px; }
}

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