/* ============================================================
   YouNique — Kinder- und Jugendhilfe Norderstedt
   Shared Stylesheet
   ============================================================ */

/* ── Google Fonts are imported in each HTML file ── */

/* ── CSS Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Root Variables ── */
:root {
  --navy:   #1B3560;
  --teal:   #2ABFB5;
  --orange: #F07040;
  --amber:  #F5A623;
  --green:  #4EB87A;
  --purple: #7B4FD3;
  --cream:  #F8F6F1;
  --light:  #F3F4F6;
  --text:   #1a1a2e;
  --muted:  #6b7280;

  --rainbow: linear-gradient(90deg, #E85547, #F07040, #F5A623, #4EB87A, #2ABFB5, #7B4FD3);

  --font-sans:  'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --nav-h: 86px;
  --transition: 0.3s ease;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}

.navbar .nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--navy);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 24px 32px 32px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: color var(--transition);
}

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

.mobile-menu a:hover,
.mobile-menu a.active { color: var(--teal); }

.mobile-menu .nav-cta {
  margin-top: 16px;
  justify-content: center;
  border-bottom: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
}

.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
}

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

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

.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--teal); }

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

.footer-contact-item .icon {
  width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--teal); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.rainbow-line {
  display: block;
  height: 4px;
  width: 64px;
  background: var(--rainbow);
  border-radius: 2px;
  margin-bottom: 24px;
}

.rainbow-line-full {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--rainbow);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,191,181,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--teal);
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-secondary:hover {
  background: #22a89f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,191,181,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

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

.text-center { text-align: center; }
.text-white { color: #fff; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  width: 100%; height: 100%;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,53,96,0.78) 0%, rgba(27,53,96,0.55) 100%);
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
}

.page-hero .hero-content .section-tag {
  color: var(--teal);
  justify-content: center;
}

.page-hero .hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero .hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-accent {
  height: 5px;
}

.card-body { padding: 28px; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.law-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  color: #fff;
}

/* ============================================================
   2-COLUMN GRID
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.two-col-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   HALTUNG / VALUE CARDS
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-card .icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: block;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,191,181,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-info-item .ci-icon {
  width: 40px; height: 40px;
  background: rgba(42,191,181,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-item .ci-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-info-item .ci-text span {
  font-size: 0.95rem;
  color: var(--text);
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote-block {
  border-left: 4px solid var(--teal);
  padding: 20px 24px;
  background: rgba(42,191,181,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.quote-block p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.7;
}

/* ============================================================
   ANCHOR SCROLL OFFSET (fixed nav compensation)
   ============================================================ */
.leistung-section,
.team-member-section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ============================================================
   SKILL TAGS
   ============================================================ */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(27,53,96,0.08);
  color: var(--navy);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — 960px  (Tablet landscape / small laptop)
   ============================================================ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-reverse > :first-child { order: 2; }
  .two-col-reverse > :last-child  { order: 1; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero { height: 44vh !important; min-height: 320px !important; }
}

/* ============================================================
   RESPONSIVE — 768px  (Tablet portrait — iPad)
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  .section-heading { font-size: clamp(1.6rem, 4vw, 2.2rem); }

  .two-col { gap: 32px; }

  .two-col-img img { height: 320px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 20px;
  }

  .page-hero { height: 40vh !important; min-height: 300px !important; }
  .page-hero .hero-content { padding: 40px 20px; }
  .page-hero .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
}

/* ============================================================
   RESPONSIVE — 640px  (Mobile landscape / large phone)
   ============================================================ */
@media (max-width: 640px) {
  :root { --nav-h: 70px; }

  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  .navbar .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 54px; }

  .value-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 16px; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
  }
  .footer-legal { justify-content: center; }

  .two-col-img img { height: 240px; }

  .page-hero { height: 38vh !important; min-height: 260px !important; }
  .page-hero .hero-content { padding: 32px 16px; }
  .page-hero .hero-content h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .page-hero .hero-content p { font-size: 0.9rem; }

  .section-heading { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .section-body { font-size: 0.95rem; }

  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.85rem; }
  .btn-outline, .btn-outline-navy { padding: 11px 22px; font-size: 0.85rem; }

  .mobile-menu { padding: 20px 16px 28px; }
}

/* ============================================================
   RESPONSIVE — 480px  (Small phone — iPhone SE, etc.)
   ============================================================ */
@media (max-width: 480px) {
  :root { --nav-h: 66px; }

  .container { padding: 0 14px; }
  .section { padding: 48px 0; }

  .page-hero { height: 35vh !important; min-height: 240px !important; }
  .page-hero .hero-content h1 { font-size: 1.4rem; }
  .page-hero .hero-content p { font-size: 0.85rem; }

  .section-heading { font-size: 1.35rem; }

  .footer-inner { padding: 0 14px; }
  .footer-bottom { padding: 16px 14px; }

  .nav-logo img { height: 48px; }

  .btn-primary, .btn-secondary { padding: 11px 20px; font-size: 0.82rem; }
  .btn-outline, .btn-outline-navy { padding: 10px 18px; font-size: 0.82rem; }
}
