/* ============================================================
   AIVY Consult — Gemeinsames Stylesheet
   KI · Klarheit · Wirkung
   Version 1.0 · Mai 2026
   ============================================================ */

/* ── Design-Tokens ─────────────────────────────────────────── */
:root {
  --navy:      #0F2849;
  --gold:      #C9A961;
  --creme:     #FAF6EE;
  --creme-dk:  #EDE8DF;
  --bordeaux:  #6B1F2C;
  --white:     #ffffff;

  --text:      #1c1c1c;
  --text-mid:  #3a3a3a;
  --text-soft: #666666;

  --font: Georgia, 'Times New Roman', serif;

  --max-w:   1100px;
  --nav-h:   76px;
  --pad-h:   clamp(20px, 4vw, 44px);
  --pad-sec: 100px;

  --radius:  3px;
  --shadow:  0 2px 20px rgba(15, 40, 73, 0.08);
  --tr:      0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--creme);
  color: var(--text-mid);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ── Barrierefreiheit ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top 0.1s;
}
.skip-link:focus { top: 8px; }

/* ── Typografie ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  text-wrap: pretty;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

p {
  max-width: 64ch;
  text-wrap: pretty;
  line-height: 1.85;
}

strong { color: var(--navy); }

/* ── Layout-Helfer ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-h);
}

.section {
  padding: var(--pad-sec) var(--pad-h);
}
.section--white { background: var(--white); }
.section--creme { background: var(--creme); }
.section--navy  { background: var(--navy); }

/* ── Gold-Akzentlinie ───────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 28px;
}

/* ── Abschnitts-Label ───────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-family: var(--font);
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn:hover {
  opacity: 0.87;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 40, 73, 0.18);
}
.btn:active { transform: none; opacity: 1; }

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
}

.btn--outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 13px 34px;
}
.btn--outline-gold:hover { background: rgba(201,169,97,0.08); }

/* ── Textlink mit Pfeil ─────────────────────────────────────── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: gap var(--tr), color var(--tr);
}
.arrow-link::after { content: '→'; transition: transform var(--tr); }
.arrow-link:hover { gap: 14px; color: var(--navy); }

/* ── HEADER ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.header-inner {
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--creme);
  letter-spacing: 0.05em;
}
.brand-tag {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-top: 5px;
}

.site-nav ul {
  display: flex;
  gap: 36px;
}
.site-nav a {
  font-size: 0.9rem;
  color: rgba(250, 246, 238, 0.78);
  letter-spacing: 0.02em;
  transition: color var(--tr);
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--tr);
}
.site-nav a:hover { color: var(--creme); }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--creme);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}
.nav-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page-Hero (Innenseiten) ────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 72px var(--pad-h) 64px;
}
.page-hero-inner { max-width: var(--max-w); margin-inline: auto; }
.page-hero h1   { color: var(--creme); max-width: 22ch; }
.page-hero p {
  color: rgba(250, 246, 238, 0.72);
  max-width: 56ch;
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 64px var(--pad-h) 36px;
}
.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--creme);
  letter-spacing: 0.05em;
}
.footer-brand-tag {
  font-size: 0.64rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-top: 5px;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.45);
  max-width: 28ch;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.38);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col span {
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.62);
  line-height: 1.5;
  transition: color var(--tr);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 238, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(250, 246, 238, 0.28);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  color: rgba(250, 246, 238, 0.4);
  transition: color var(--tr);
}
.footer-legal a:hover { color: var(--gold); }

/* ── Formulare ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-group .req { color: var(--bordeaux); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--creme-dk);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--tr), box-shadow var(--tr);
  outline: none;
  line-height: 1.5;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --pad-sec: 64px; }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(201, 169, 97, 0.18);
    padding: 12px 0;
    transform: translateY(-110%);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    z-index: 150;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a {
    display: block;
    padding: 14px var(--pad-h);
    font-size: 1rem;
    border-bottom: 1px solid rgba(250, 246, 238, 0.06);
  }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
}
