/* ============================================
   GÄB-IT · Shared Stylesheet
   gaeb-it.de
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --bg:        #f4f2ed;
  --bg2:       #ebe9e2;
  --bg3:       #e0ddd4;
  --card:      #ffffff;
  --ink:       #18181a;
  --ink2:      #38373c;
  --muted:     #7a7870;
  --rule:      #d6d3c8;

  --blue:      #1b3f6e;
  --blue-dark: #122c4f;
  --blue-mid:  #2a5499;
  --blue-pale: #e8eef6;

  --ember:     #c04d18;
  --ember-pale:#faeee8;

  --green:     #1a5c3a;
  --green-pale:#e5f0eb;

  --shadow-sm: 0 1px 2px rgba(24,24,26,0.06);
  --shadow:    0 2px 8px rgba(24,24,26,0.08), 0 1px 2px rgba(24,24,26,0.04);
  --shadow-lg: 0 8px 32px rgba(24,24,26,0.12), 0 2px 8px rgba(24,24,26,0.06);

  --r:  8px;
  --r2: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244,242,237,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-right: auto;
}

.nav-logo-mark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  margin-bottom: 2px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--bg2);
}

.nav-cta {
  margin-left: 16px;
  background: var(--ember) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--r) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.15s, transform 0.1s !important;
}

.nav-cta:hover {
  background: #a84014 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 16px 32px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  padding: 10px 0;
  border-bottom: 1px solid var(--bg2);
}

.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.55);
  padding: 48px 32px 32px;
  margin-top: 0;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── UTILITIES ───────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--blue);
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--r);
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: #a84014;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,77,24,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue-pale);
}

.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.18);
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.tag-blue  { background: var(--blue-pale);  color: var(--blue); }
.tag-ember { background: var(--ember-pale); color: var(--ember); }
.tag-green { background: var(--green-pale); color: var(--green); }
.tag-gray  { background: var(--bg3); color: var(--muted); }

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fadeup { animation: fadeUp 0.6s ease both; }
.anim-fadein { animation: fadeIn 0.5s ease both; }

/* delay helpers */
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }
.d6 { animation-delay: 0.6s; }

/* ── SHARED SECTION STYLES ───────────────── */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-mobile { padding: 16px 20px; }
  .site-footer { padding: 40px 20px 28px; }
}

/* card base */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r2);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
