/* ==============================
   FONTS (self-hosted, latin subset)
   ============================== */
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/roboto-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/roboto-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/roboto-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/roboto-600.woff2') format('woff2');
}

/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --fg: #151515;
  --fg-muted: #5a5a5a;
  --accent: #709c94;
  --accent-dark: #557d75;
  --accent-light: #e8f0ee;
  --line: rgba(21,21,21,0.12);
  --card-bg: #ffffff;
  --card-shadow: 0 1px 4px rgba(21,21,21,0.06), 0 4px 24px rgba(21,21,21,0.07);
  --card-shadow-hover: 0 4px 8px rgba(21,21,21,0.08), 0 12px 40px rgba(21,21,21,0.12);
  --hero-bg: #3d6b62;
  --hero-fg: #ffffff;
  --radius: 8px;
}

/* ==============================
   BASE
   ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400; line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 5rem; }

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent-light); color: var(--fg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==============================
   TYPOGRAPHY
   ============================== */
h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500; line-height: 1.2;
  color: var(--fg);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }

p { color: var(--fg); line-height: 1.75; }
.muted { color: var(--fg-muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 600;
  margin-bottom: 1rem;
}

/* ==============================
   NAV
   ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.nav-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 500; font-size: 1rem;
  color: var(--fg); text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.nav-logo span { display: block; color: var(--accent-dark); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--fg); text-decoration: none;
  font-size: 0.95rem; font-weight: 400;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 2px;
  border-bottom: none !important;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; color: var(--fg);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
}

/* ==============================
   LAYOUT
   ============================== */
main { padding-top: 4.5rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section.tight { padding: 3rem 0; }
@media (max-width: 720px) {
  section { padding: 3.5rem 0; }
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--hero-bg) 0%, #4a7d74 60%, var(--accent) 100%);
  color: var(--hero-fg);
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(112,156,148,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-text .eyebrow { color: rgba(255,255,255,0.8); }
.hero h1 { color: #fff; margin-bottom: 1.5rem; font-weight: 300; letter-spacing: -0.025em; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 30rem; line-height: 1.7; }
.hero-image {
  position: relative;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: -1rem -1rem 1rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  aspect-ratio: 4/3;
  object-fit: cover;
  position: relative; z-index: 1;
}
.hero-cta {
  margin-top: 2.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap;
}
@media (max-width: 820px) {
  .hero { padding: 5rem 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image::before { display: none; }
}

/* Hero variant for inner pages (smaller) */
.hero-inner {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(135deg, var(--hero-bg) 0%, #4a7d74 60%, var(--accent) 100%);
  color: #fff;
}
.hero-inner .container { text-align: center; }
.hero-inner h1 { color: #fff; margin-bottom: 0.75rem; }
.hero-inner p { color: rgba(255,255,255,0.82); max-width: 38rem; margin: 0 auto; }
.hero-inner .eyebrow { color: rgba(255,255,255,0.7); }

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(58,107,98,0.25); }
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); color: #fff; transform: translateY(-1px); }
.btn-on-hero {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}
.btn-on-hero:hover { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

/* ==============================
   CONTENT BLOCKS
   ============================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col img { border-radius: var(--radius); box-shadow: var(--card-shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse > :first-child { order: 0; }
}

.intro-text p + p { margin-top: 1rem; }
.intro-text h2 { margin-bottom: 1.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.card:hover::after { transform: scaleX(1); }
.card h3, .card h4 {
  margin-bottom: 0.65rem;
  color: var(--fg);
}
.card p { color: var(--fg-muted); font-size: 0.9rem; line-height: 1.7; }
.card a.card-link {
  color: var(--accent-dark); font-size: 0.85rem; font-weight: 600;
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.35rem;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}
.card a.card-link:hover { gap: 0.6rem; color: var(--accent); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--fg-muted); }

/* Bullet lists used inside leistungen sections */
.facts-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.facts-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--fg);
}
.facts-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65rem;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.facts-list li strong { color: var(--fg); font-weight: 600; }

/* Leistungen sub-nav (anchor pills on top of services page) */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.anchor-nav a {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  transition: all 0.2s ease;
}
.anchor-nav a:hover { background: rgba(255,255,255,0.25); color: #fff; border-color: rgba(255,255,255,0.6); }

/* ==============================
   LEISTUNGEN PAGE
   ============================== */
.leistungen-body { padding: 1.5rem 0 5rem; }

.ls {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.ls:first-of-type { border-top: none; padding-top: 2rem; }

.ls-header {
  margin-bottom: 1.5rem;
}
.ls-num {
  font-size: 6.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: -0.04em;
  opacity: 0.35;
}
.ls-intro { flex: 1; }
.ls-intro .eyebrow { margin-bottom: 0.5rem; }
.ls-intro h2 { margin-bottom: 0.9rem; }
.ls-intro > p { color: var(--fg-muted); max-width: 56rem; }
.ls-intro > p + p { margin-top: 0.75rem; }

.ls-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.ls-columns h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.ls-columns .facts-list li { font-size: 0.9rem; }
.ls-note { margin-top: 1.25rem; font-size: 0.88rem; color: var(--fg-muted); font-style: italic; }

.ls-image-strip {
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.ls-image-strip img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s ease;
}
.ls-image-strip:hover img { transform: scale(1.025); }

@media (max-width: 700px) {
  .ls-header { gap: 1.25rem; }
  .ls-num { font-size: 3.5rem; }
  .ls-columns { grid-template-columns: 1fr; gap: 1.5rem; }
  .ls-image-strip { height: 180px; }
}

/* ==============================
   TEAM
   ============================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.team-card {
  text-align: left;
}
.team-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease;
}
.team-card:hover img { box-shadow: var(--card-shadow-hover); }
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.team-card p { color: var(--fg-muted); font-size: 0.95rem; }

.qual-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.qual-list li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
}
.qual-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ==============================
   CONTACT PAGE
   ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-card {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 2rem;
}
.contact-card h3 { margin-bottom: 1rem; }
.contact-card a { color: var(--fg); font-weight: 500; }
.contact-card a:hover { color: var(--accent-dark); }
.contact-card .btn { color: #fff; }
.contact-card .btn:hover { color: #fff; }
.contact-row {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  flex: 0 0 6rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-row .value { flex: 1; color: var(--fg); }

/* ==============================
   LEGAL PAGES
   ============================== */
.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  scroll-margin-top: 6rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.legal-content p, .legal-content li {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.75;
}
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content strong { font-weight: 600; color: var(--fg); }
.legal-content a { color: var(--accent-dark); }
.legal-content a:hover { color: var(--accent); }

/* Section number badge */
.legal-num {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-right: 0.5rem;
  font-weight: 600;
  vertical-align: 0.2em;
}

/* Address / contact info block */
.info-block {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--fg-muted);
}
.info-block strong {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

/* Highlighted note box */
.legal-note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.legal-note-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.legal-note p { margin: 0.4rem 0 0; font-size: 0.9rem; }

/* TOC (Inhaltsverzeichnis) */
.legal-toc {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}
.legal-toc-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.legal-toc-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}
.legal-toc ol {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  counter-reset: toc;
  font-size: 0.88rem;
}
.legal-toc li {
  counter-increment: toc;
  padding: 0.35rem 0;
  break-inside: avoid;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.78rem;
  color: var(--accent);
  margin-right: 0.6rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.legal-toc a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--accent-dark); }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
  background: linear-gradient(135deg, var(--hero-bg) 0%, #4a7d74 50%, var(--accent) 100%);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,0.78);
  max-width: 34rem;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.cta-section .cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.cta-section .cta-info {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* ==============================
   FAQ SECTION
   ============================== */
.faq-section { background: var(--bg-soft); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item[open] { box-shadow: var(--card-shadow-hover); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.75rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item[open] > summary { color: var(--accent-dark); }
.faq-answer {
  padding: 0 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
}
.faq-answer p { color: var(--fg-muted); font-size: 0.95rem; margin-top: 1rem; line-height: 1.75; }
.faq-answer p + p { margin-top: 0.75rem; }
.faq-answer ul { padding-left: 1.25rem; margin-top: 0.75rem; }
.faq-answer ul li { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.65; }
.faq-answer a { color: var(--accent-dark); }
.faq-answer a:hover { color: var(--accent); }

/* ==============================
   BACK TO TOP
   ============================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(58,107,98,0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--accent);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 0;
  font-size: 0.9rem;
  border-top: none;
}
.footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #fff; }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}
.footer-nav { display: flex; gap: 3.5rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer p { color: rgba(255,255,255,0.75); font-size: 0.9rem; line-height: 1.65; }
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer ul li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer ul li a:hover { color: #fff; }
.footer-cta-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(255,255,255,0.85) !important;
}
.footer-cta-link:hover { color: #fff !important; }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; justify-content: center; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}
