/* ══════════════════════════════════════════════
   Achermann & Co. AG — Shared Stylesheet
   ══════════════════════════════════════════════ */

/* ── GLOBALER MOBILE FIX ── */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 768px) {

  /* Alle Elemente auf Bildschirmbreite begrenzen */
  * {
    box-sizing: border-box;
    max-width: 100%;
  }

  /* CTA Cards und alle Cards */
  .cta-inner,
  [class*="card"],
  [class*="cta"],
  [class*="inner"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Alle Grid-Layouts auf 1 Spalte */
  [class*="grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Alle Sektionen */
  section, .section-wrap, [class*="wrap"],
  [class*="section"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow: hidden !important;
  }

  /* Überschriften */
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Dekorative Zahlen ausblenden */
  [class*="deco"], [class*="hero-deco"] {
    display: none !important;
  }

}

/* ── FONT: Nunito (lokal gehostet) ── */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-v32-latin-700.woff2') format('woff2');
}

:root {
  --bg:        #f0f2f5;
  --bg2:       #e6e9ef;
  --surface:   #ffffff;
  --border:    #d4d9e3;
  --border2:   #c2c8d6;
  --accent:    #0000ff;
  --accent2:   #0022cc;
  --accentbg:  rgba(0,0,255,0.07);
  --text:      #1a1f2e;
  --muted:     #4e5872;
  --light:     #8590a8;
  --font:      'Nunito', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.09);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 70px;
  background: rgba(240,242,245,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,255,0.22);
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,255,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--accentbg);
  border-radius: 2px;
}

h2 {
  font-family: var(--font);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

h3 {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
}

.section-eyebrow {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--accent); }

/* ── SECTIONS ── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 80px;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.72;
  align-self: end;
}

/* ── BADGE ── */
.badge {
  background: var(--accentbg);
  color: var(--accent);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,255,0.15);
}

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  padding: 160px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero .hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.75;
  margin-top: 8px;
}

/* ── CTA BLOCK ── */
.cta-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px 96px;
}

.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--accent);
  border-radius: 16px 0 0 16px;
}

.cta-eyebrow {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.cta-title {
  font-family: var(--font);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.cta-sub { font-size: 15px; color: var(--muted); }

.cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 80px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--light);
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.65s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .page-hero { padding: 130px 24px 56px; }
  .section-wrap { padding-left: 24px; padding-right: 24px; }
  .section-header { grid-template-columns: 1fr; gap: 16px; }
  .cta-wrap { padding-left: 24px; padding-right: 24px; }
  .cta-inner { padding: 40px 28px; grid-template-columns: 1fr; }
  .footer-inner { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
}


@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
