/* ============================================
   360bewerben.ch – Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --white:        #FFFFFF;
  --white-soft:   #F7F7F5;
  --white-warm:   #F2F1EE;
  --gray-100:     #EBEBEB;
  --gray-200:     #D6D6D4;
  --gray-400:     #9A9994;
  --gray-600:     #6B6A67;
  --gray-800:     #2E2D2B;
  --black:        #1A1917;
  --navy:         #060647;
  --navy-footer:  #020218;
  --orange:       #E8622A;
  --orange-hover: #D4531C;
  --orange-light: #FDF0EA;
  --accent-teal:  #2A7A6E;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(26,25,23,0.06);
  --shadow-md:  0 8px 32px rgba(26,25,23,0.10);
  --shadow-lg:  0 20px 60px rgba(26,25,23,0.14);

  --max-width: 1200px;
  --section-pad: 96px 24px;
}

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

/* ── Overflow-Schutz (mobile safety) ── */
img { max-width: 100%; height: auto; }
input, textarea, select, button { max-width: 100%; }
p, li, a, h1, h2, h3, h4, td, th { overflow-wrap: break-word; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: var(--shadow-sm); }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--orange-hover) !important;
  transform: translateY(-1px);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,98,42,0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--gray-400);
  transform: translateY(-2px);
}
.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline-orange:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

/* ── SECTION BASE ── */
section { padding: var(--section-pad); }
section:nth-child(even) { background: var(--white-soft); }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.7;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}
.card-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ── GRID ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 20px 0 32px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-footer);
  color: var(--gray-400);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-block;
}
.footer-logo img {
  width: 230px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-logo:hover { color: var(--white); opacity: 0.85; }
.footer-logo span { color: var(--orange); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── MOBILE NAVIGATION ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay — slides in, does NOT push content */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 150;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  padding: 16px 0 24px;
}
.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu ul li:last-child a {
  border-bottom: none;
  margin: 12px 24px 0;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  text-align: center;
  padding: 14px 24px;
}
.mobile-menu ul li a:hover {
  color: var(--orange);
  background: var(--orange-light);
}
.mobile-menu ul li:last-child a:hover {
  background: var(--orange-hover);
  color: var(--white);
}

/* ── Grid-Kinder dürfen schrumpfen sobald Layouts einspaltig werden ── */
@media (max-width: 900px) {
  .tips-layout > *, .contact-layout > *, .content-layout > *,
  .step-block > *, .error-grid > *, .transp-grid > *,
  .gen-layout > *, .pricing-grid > * { min-width: 0; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  :root { --section-pad: 56px 20px; }

  /* Grid-/Flex-Kinder dürfen schrumpfen (verhindert horizontalen Overflow) */
  .grid-2 > *, .grid-3 > *, .hero > *, .goal-grid > *,
  .contact-band-inner > *, .footer-inner > *, .form-row > * { min-width: 0; }

  /* iOS: kein Auto-Zoom beim Antippen von Formularfeldern */
  input, textarea, select { font-size: 16px !important; }

  /* Navigation */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero: Titel zuerst, dann Karte */
  .hero {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    min-height: auto !important;
    padding: 48px 20px 56px !important;
    gap: 40px !important;
  }
  .hero-left { order: 1; }
  .hero-visual { order: 2; }

  /* Hero Eyebrow kürzer auf Mobile */
  .hero-eyebrow {
    font-size: 0.72rem;
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
  }

  /* Grids */
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 16px; }
  .goal-grid { grid-template-columns: 1fr !important; }

  /* Contact band */
  .contact-band-inner {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .contact-band-btns {
    flex-direction: row !important;
    flex-wrap: wrap;
    min-width: unset !important;
  }
  .contact-band-btns .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
  }

  /* DIY Buttons */
  .diy-actions { flex-direction: column; align-items: stretch; }
  .diy-actions .btn { text-align: center; justify-content: center; }

  /* Cards */
  .hero-card-main { padding: 28px 24px; }
  .card { padding: 28px 24px; }

  /* Hero badge */
  .hero-badge-link { padding: 16px 20px; }

  /* Sections */
  .section-title { font-size: clamp(1.7rem, 6vw, 2.4rem); }

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

  /* Buttons volle Breite auf sehr kleinen Screens */
  @media (max-width: 400px) {
    .btn { width: 100%; justify-content: center; }
  }
}

/* ── FAQ ── */
.faq-item p:first-child {
  cursor: default;
}
@media (max-width: 768px) {
  .faq-item { padding: 20px 0 !important; }
  .faq-item p:first-child { font-size: 0.95rem !important; }
  .faq-item p:last-child { font-size: 0.9rem !important; }
}

@media (max-width: 900px) and (min-width: 769px) {
  /* Tablet: Hero zweispaltig aber etwas kompakter */
  .hero {
    gap: 40px !important;
    padding: 60px 24px !important;
  }
  .hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
  }
}



/* Scroll-to-Top/Bottom-Button */
.scroll-jump {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(6, 6, 71, 0.22);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white, #fff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(6, 6, 71, 0.12);
  z-index: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}
.scroll-jump:hover {
  transform: translateY(-2px);
  background: rgba(232, 98, 42, 0.65);
}
.scroll-jump svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}
.scroll-jump.up svg { transform: rotate(180deg); }
@media (max-width: 600px) {
  .scroll-jump { right: 14px; bottom: 16px; width: 42px; height: 42px; }
}
