/* ============================================================
   Aid by Care GmbH — Stylesheet
   Design: UI-style.md (CSSB Education-Modern)
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* ── Brand palette (colors.md) ── */
  --color-primary:         #4155B8;   /* Indigo  – primary action */
  --color-primary-light:   #5a6ec9;
  --color-primary-dark:    #2e3d8a;
  --color-secondary:       #00B5E2;   /* Cyan    – secondary / info */
  --color-secondary-light: #33c4e8;
  --color-secondary-dark:  #0090b5;
  --color-accent:          #6FCDB3;   /* Mint    – accent / success */
  --color-accent-light:    #8fd8c5;
  --color-accent-dark:     #4fb895;
  --color-text:            #1a1a2e;
  --color-text-light:      #555570;
  --color-background:      #ffffff;
  --color-surface:         #f4f7fc;
  --color-white:           #ffffff;

  /* ── Legacy aliases (keep HTML inline styles working) ── */
  --yellow:     #6FCDB3;   /* mint  – decorative dots, step badges, hero pill */
  --coral:      #00B5E2;   /* cyan  – tags, spec dots, help-block border      */
  --navy:       #2e3d8a;   /* indigo-dark – hero bg, partner cards, footer    */
  --navy-mid:   #4155B8;   /* indigo      – gradient end, checkmarks          */
  --white:      #ffffff;
  --off-white:  #f4f7fc;   /* surface */
  --text-h:     #1a1a2e;
  --text-body:  #555570;
  --text-light: #555570;
  --footer-bg:  #1a1a2e;
  --border:     #E0E0E0;
  --shadow:     0 4px 20px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 50px;
  --transition:  0.3s ease-in-out;
  --max-width:   1280px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--alt { background: var(--off-white); }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-h);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65,85,184,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-coral {
  background: var(--color-secondary);
  color: var(--color-white);
}
.btn-coral:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,181,226,0.35);
}
.arrow { font-size: 18px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-h);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 16px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-h);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-h);
  border-bottom: 1px solid var(--off-white);
}
.nav-mobile a:hover { color: var(--navy); background: var(--off-white); }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-bg--home {
  background-image: url('images/hero-home.jpg');
  background-image: -webkit-image-set(url('images/hero-home.webp') 1x, url('images/hero-home.jpg') 1x);
  background-image: image-set(url('images/hero-home.webp') type('image/webp'), url('images/hero-home.jpg') type('image/jpeg'));
}
.hero-bg--team {
  background-image: url('images/team.jpg');
  background-image: -webkit-image-set(url('images/team.webp') 1x, url('images/team.jpg') 1x);
  background-image: image-set(url('images/team.webp') type('image/webp'), url('images/team.jpg') type('image/jpeg'));
}
.hero-bg--jobs {
  background-image: url('images/job-hospital.jpg');
  background-image: -webkit-image-set(url('images/job-hospital.webp') 1x, url('images/job-hospital.jpg') 1x);
  background-image: image-set(url('images/job-hospital.webp') type('image/webp'), url('images/job-hospital.jpg') type('image/jpeg'));
}
.hero-bg--classroom {
  background-image: url('images/classroom.jpg');
  background-image: -webkit-image-set(url('images/classroom.webp') 1x, url('images/classroom.jpg') 1x);
  background-image: image-set(url('images/classroom.webp') type('image/webp'), url('images/classroom.jpg') type('image/jpeg'));
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.hero-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title span { color: var(--color-secondary); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero — inner pages (compact) */
.hero--inner { min-height: 320px; }
.hero--inner .hero-title { font-size: clamp(28px, 4vw, 48px); }

/* ============================================================
   HOME — Two-column value section
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.value-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.value-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.value-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.value-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}
.value-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--yellow);
  border-radius: 50%;
  margin-top: 8px;
}
.help-block {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 32px;
  border-left: 4px solid var(--coral);
}
.help-block h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.help-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-block ul li {
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  color: var(--text-body);
}
.help-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy-mid);
  font-weight: 700;
}
.motto {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.65;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary) 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

/* ============================================================
   JOB CARDS (Stellen)
   ============================================================ */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.job-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.job-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.job-card-body {
  padding: 28px;
}
.job-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: 16px;
}
.job-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.job-specs li {
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}
.job-specs li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--coral);
  border-radius: 50%;
}

/* ============================================================
   ABOUT (Über Uns)
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}
.about-closing {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 8px;
  font-style: italic;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ============================================================
   PARTNER / LANGUAGE PAGE
   ============================================================ */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.partner-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 20px;
}
.partner-link-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  transition: background var(--transition);
}
.partner-link-card:hover { background: var(--navy-mid); }
.partner-link-card .icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.partner-link-card .link-text { color: var(--white); }
.partner-link-card .link-text span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-bottom: 2px;
}
.partner-link-card .link-text strong {
  font-size: 15px;
  font-weight: 600;
}
.partner-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.partner-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
  max-width: 800px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-h);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 8px;
}
.impressum-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 15px;
}
.impressum-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.impressum-table td:first-child {
  font-weight: 600;
  color: var(--text-h);
  width: 40%;
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  max-width: 280px;
}
.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.footer-brand .footer-logo span { color: var(--color-secondary); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-col .icon-label { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  overflow: hidden;
}
.social-btn:hover { background: var(--color-secondary); }
.social-btn img { width: 20px; height: 20px; object-fit: contain; }
.social-btn svg { width: 18px; height: 18px; fill: white; }
.social-btn:hover svg { fill: var(--color-white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--color-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .value-grid,
  .about-content,
  .partner-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid,
  .jobs-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-image { position: static; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .steps-grid,
  .jobs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .hero-actions { flex-direction: column; }
  .value-image img { height: 280px; }
  .about-image img { height: 280px; }
}

/* ── Cookie Consent Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-text);          /* #1a1a2e dark */
  color: #e8eaf0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-message {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  min-width: 200px;
}
.cookie-message a {
  color: var(--color-accent-light);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cookie-btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}
.cookie-btn--secondary {
  background: transparent;
  color: #e8eaf0;
  border-color: rgba(232,234,240,0.4);
}
.cookie-btn--secondary:hover {
  background: rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { text-align: center; }
}
