/*
Theme Name: Gastroschisis SHG
Theme URI: https://gastroschisis-shg.de
Author: Gastroschisis SHG
Author URI: https://gastroschisis-shg.de
Description: Modernes WordPress-Theme für die Gastroschisis Selbsthilfegruppe – Miteinander & Füreinander
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gastroschisis-shg
Tags: custom-logo, custom-menu, one-column, accessibility-ready
*/

/* ============================================
   GASTROSCHISIS SHG – Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #76933C;
  --color-primary-light: #A8C76A;
  --color-primary-dark: #5A7230;
  --color-primary-bg: #f2f7e9;
  
  --color-secondary: #E8BA5C;
  --color-secondary-light: #F0D08A;
  --color-secondary-dark: #C99A3A;
  
  --color-cta: #D4743B;
  --color-cta-hover: #B85E2A;
  
  --color-awareness: #9B7DB8;
  --color-awareness-light: #C4ADDA;
  
  /* Neutrals */
  --color-dark: #2D3436;
  --color-text: #3D4449;
  --color-text-light: #6B7B83;
  --color-border: #E0E4E7;
  --color-bg: #FAFAF5;
  --color-bg-alt: #F5F5F0;
  --color-white: #FFFFFF;
  --color-card: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Borders & Shadows */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-4);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

/* --- Header / Navigation --- */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.top-bar a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.top-bar__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.top-bar__links svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: var(--space-1);
}

.header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.header__logo img {
  height: 56px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1.1;
}

.header__logo-text small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background-color: var(--color-primary-bg);
}

.nav__cta {
  background-color: var(--color-cta);
  color: var(--color-white) !important;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav__cta:hover {
  background-color: var(--color-cta-hover);
  color: var(--color-white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(118,147,60,0.92) 0%, rgba(90,114,48,0.88) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(118,147,60,0.88) 0%, rgba(45,52,54,0.7) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--color-white);
}

.hero__title em {
  font-style: normal;
  color: var(--color-secondary);
}

.hero__subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  line-height: 1.6;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
}

.hero__stat {
  text-align: center;
  color: var(--color-white);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-secondary);
  display: block;
}

.hero__stat-label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.5;
}

.btn--primary {
  background-color: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-12);
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-header__label::before,
.section-header__label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--color-primary-light);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--color-text-light);
  font-size: var(--text-lg);
}

/* --- Cards --- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-6);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card__link:hover {
  gap: var(--space-3);
}

/* Info card variant */
.info-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.info-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-2);
}

.info-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Testimonial --- */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  position: relative;
  border-left: 4px solid var(--color-primary);
}

.testimonial__quote {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial__quote::before {
  content: '„';
  font-size: var(--text-6xl);
  color: var(--color-primary-light);
  font-family: Georgia, serif;
  line-height: 0;
  position: relative;
  top: 20px;
  margin-right: var(--space-2);
}

.testimonial__author {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Community / Social --- */
.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
  color: var(--color-text);
}

.social-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.social-card__icon--facebook { background: #E7F0FE; color: #1877F2; }
.social-card__icon--instagram { background: linear-gradient(135deg, #fce4ec, #f3e5f5, #e8eaf6); color: #E1306C; }
.social-card__icon--whatsapp { background: #E8F5E9; color: #25D366; }

.social-card__info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.social-card__info p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  opacity: 0.9;
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__brand img {
  height: 48px;
  border-radius: 50%;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-white);
}

.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: var(--space-6);
}

.footer h4 {
  color: var(--color-white);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-secondary);
  padding-left: var(--space-2);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  opacity: 0.6;
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
}

.footer__bottom a:hover {
  color: var(--color-secondary);
}

/* --- Awareness Ribbon --- */
.ribbon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.ribbon__icon {
  font-size: var(--text-xl);
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

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

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: var(--text-4xl); }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  
  .top-bar { display: none; }
  
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
  }
  
  .nav--open { display: flex; }
  
  .nav__link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }
  
  .nav__toggle { display: block; }
  
  .hero {
    min-height: 60vh;
    padding: var(--space-12) 0;
  }
  
  .hero__title { font-size: var(--text-3xl); }
  .hero__stats { flex-direction: column; gap: var(--space-4); }
  .hero__actions { flex-direction: column; }
  
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
}
