/* ==========================================================================
   Team Frank Jugendhilfe – team-frank-jugendhilfe.de
   ========================================================================== */

:root {
  --navy: #1d3a5a;
  --navy-dark: #14293f;
  --navy-deep: #0e1f30;
  --amber: #e8a33d;
  --amber-dark: #c9862a;
  --ink: #22313f;
  --ink-soft: #4a5a68;
  --paper: #ffffff;
  --paper-tint: #f4f6f8;
  --line: #e2e7ec;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(20, 41, 63, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

img, svg { max-width: 100%; }

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--navy);
  flex-shrink: 0;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  display: block;
}


.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: 0.2px; }
.brand-text span { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1.5px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-nav a:hover { color: var(--navy); border-bottom-color: var(--amber); }

.main-nav a.active { color: var(--navy); border-bottom-color: var(--amber); font-weight: 600; }

.main-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  border-bottom: none;
}

.main-nav .nav-cta:hover { background: var(--navy-dark); color: #fff; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
}

.btn-primary:hover { background: var(--amber-dark); color: var(--navy-deep); }

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 16px 38px; font-size: 17px; }

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

.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn-row .btn { margin-top: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(232, 163, 61, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(29, 58, 90, 0.94) 0%, rgba(20, 41, 63, 0.93) 55%, rgba(14, 31, 48, 0.95) 100%),
    url("bg-training.jpg") center 30% / cover no-repeat var(--navy-dark);
  background-attachment: scroll, scroll, fixed;
  color: #fff;
}

.hero-inner {
  padding: 92px 24px 76px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 26px;
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero .hero-inner { padding: 72px 24px 60px; }

.hero-badges {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.badge-item { display: flex; flex-direction: column; gap: 4px; }

.badge-num {
  font-size: 27px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1.1;
}

.badge-label {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Sections (generic)
   -------------------------------------------------------------------------- */

.section { padding: 84px 0; scroll-margin-top: 80px; }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 10px;
}

.kicker-light { color: var(--amber); }

.section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 800;
}

.section-dark h2, .section-quote h2 { color: #fff; }

.section-lead {
  font-size: 18.5px;
  max-width: 720px;
  margin-bottom: 40px;
  color: var(--ink-soft);
}

.section p + p { margin-top: 14px; }

.emphasis {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-dark .emphasis { color: #fff; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.two-col .btn { margin-top: 26px; }

/* Pillars (Ansatz) */

.pillars { display: flex; flex-direction: column; gap: 18px; }

.pillar {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  padding: 22px 24px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
}

.pillar-icon {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg { width: 24px; height: 24px; }

.pillar h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 4px; }
.pillar p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* About / Ansprechpartner */

.about-col { align-items: center; }

.about-photo { margin: 0; }

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(20, 41, 63, 0.18);
}

.about-photo figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: center;
}

/* Dark section (Boxtraining) */

.section-dark {
  padding: 130px 0;
  background:
    linear-gradient(100deg, rgba(29, 58, 90, 0.97) 0%, rgba(29, 58, 90, 0.93) 50%, rgba(20, 41, 63, 0.72) 100%),
    url("bg-boxerin.jpg") center 25% / cover no-repeat var(--navy-dark);
  background-attachment: scroll, fixed;
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .section-kicker { color: var(--amber); }

.note-box {
  margin-top: 26px;
  padding: 18px 22px;
  background: rgba(232, 163, 61, 0.12);
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: var(--radius);
  font-weight: 600;
  color: #fff;
}

.list-heading {
  font-size: 18px;
  color: #fff;
  margin: 34px 0 14px;
}

.list-heading:first-child { margin-top: 0; }

/* Check list */

.check-list { list-style: none; margin: 18px 0 6px; }

.check-list li {
  position: relative;
  padding: 8px 0 8px 38px;
  font-size: 16.5px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' fill='black' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E") center/contain no-repeat;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--navy-deep);
  border-bottom: 2.5px solid var(--navy-deep);
  transform: rotate(-45deg);
}

.section-dark .check-list li { color: rgba(255, 255, 255, 0.92); }

/* Card grid (Wirkung) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.card p { font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.45; }

.card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--paper-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg { width: 26px; height: 26px; }

/* Tinted section (Qualifikation) */

.section-tint { background: var(--paper-tint); }

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

.quali-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.quali-item p { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.quali-item strong { color: var(--navy); }

.quali-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quali-icon svg { width: 22px; height: 22px; }

/* Service list (Leistungen, Konzeptseite) */

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.service-item h3 {
  font-size: 17.5px;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-item p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Quote section (Anspruch) */

.section-quote {
  background:
    radial-gradient(ellipse 700px 400px at 15% 110%, rgba(232, 163, 61, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(20, 41, 63, 0.93) 0%, rgba(14, 31, 48, 0.95) 100%),
    url("bg-boxer.jpg") center 40% / cover no-repeat var(--navy-deep);
  background-attachment: scroll, scroll, fixed;
  text-align: center;
}

.section-quote blockquote {
  max-width: 820px;
  margin: 0 auto;
}

.section-quote blockquote p {
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.section-quote strong { color: var(--amber); font-weight: 700; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.contact-card p { font-size: 15.5px; color: var(--ink-soft); }
.contact-card a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--amber); }
.contact-card a:hover { color: var(--amber-dark); }

.contact-cta { text-align: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-logo {
  width: 170px;
  height: auto;
  display: block;
}

.footer-brand p { font-size: 14px; margin-top: 18px; line-height: 1.55; }

.footer-col h3 {
  color: var(--amber);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-h3-gap { margin-top: 26px; }

.footer-contact {
  list-style: none;
  margin: 0;
}

.footer-contact li {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-contact span {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

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

.footer-contact a:hover { color: var(--amber); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 15px;
}

.footer-nav a:hover { color: var(--amber); }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  padding-bottom: 26px;
}

.footer-copy p { font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Legal pages (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */

.legal { padding: 72px 0 90px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); color: var(--navy); margin-bottom: 34px; letter-spacing: -0.4px; }
.legal h2 { font-size: 22px; color: var(--navy); margin: 38px 0 12px; }
.legal h3 { font-size: 18px; color: var(--navy); margin: 26px 0 8px; }
.legal p { margin-bottom: 12px; max-width: 780px; }
.legal ul { margin: 0 0 12px 22px; max-width: 780px; }
.legal li { margin-bottom: 6px; }
.legal .backlink { display: inline-block; margin-bottom: 28px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.legal .backlink:hover { color: var(--navy); }

/* Parallax-Fallback: Touch-Geräte (iOS rendert background-attachment: fixed
   fehlerhaft) und reduzierte Bewegung bekommen normales Scrollen */

@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero, .section-dark, .section-quote { background-attachment: scroll; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .quali-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-inner { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
  }

  .nav-toggle-label span {
    display: block;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 41, 63, 0.12);
    padding: 8px 0 16px;
  }

  .nav-toggle:checked ~ .main-nav { display: flex; }

  .main-nav a {
    padding: 13px 24px;
    border-bottom: none;
    font-size: 16.5px;
  }

  .main-nav .nav-cta { margin: 10px 24px 0; text-align: center; }

  .hero-inner { padding: 64px 24px 56px; }
  .quali-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
