/* ====================================
   HARMONIE FAMILIENHILFE - RESPONSIVE
   ==================================== */

/* ===== TABLET - 1024px ===== */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3rem;
  }

  .hero {
    min-height: auto;
    padding: var(--spacing-4xl) 0;
  }

  .hero__image {
    display: none;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  .footer__brand {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

/* ===== TABLET SMALL - 768px ===== */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.25rem;
    --font-size-6xl: 2.5rem;
    --header-height: 70px;
    --spacing-4xl: 4rem;
  }

  /* Header & Navigation */
  .header {
    padding: 0 var(--spacing-md);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
    gap: var(--spacing-md);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav__list.active {
    transform: translateX(0);
  }

  .nav__link {
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-lg);
    border-bottom: 1px solid var(--color-accent-light);
  }

  .nav__link::after {
    display: none;
  }

  /* Mobile menu overlay */
  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
  }

  .nav__overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero */
  .hero {
    padding: var(--spacing-3xl) 0;
  }

  .hero__badge {
    font-size: var(--font-size-xs);
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__description {
    font-size: var(--font-size-base);
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Sections */
  .section {
    padding: var(--spacing-3xl) 0;
  }

  .section__title {
    font-size: var(--font-size-3xl);
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* Cards */
  .card {
    padding: var(--spacing-xl);
  }

  /* Quote Box */
  .quote-box {
    padding: var(--spacing-lg);
  }

  .quote-box__text {
    font-size: var(--font-size-lg);
  }

  /* Accordion */
  .accordion__header {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .accordion__title {
    font-size: var(--font-size-base);
  }

  .accordion__body {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    padding-left: var(--spacing-lg);
  }

  /* Service Cards */
  .service-card__header {
    padding: var(--spacing-lg);
  }

  .service-card__header h3 {
    font-size: var(--font-size-lg);
  }

  .service-card__body {
    padding: var(--spacing-lg);
  }

  /* Content Grid */
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* Team Grid */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Leadership Grid */
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  /* Quality List */
  .quality-list {
    grid-template-columns: 1fr;
  }

  /* Schwerpunkte */
  .schwerpunkte-list {
    grid-template-columns: 1fr;
  }

  /* Methodik */
  .methodik-grid {
    grid-template-columns: 1fr;
  }

  /* Leistungen Overview */
  .leistungen-overview {
    grid-template-columns: 1fr;
  }

  /* Zitate Carousel */
  .zitat-slide__text {
    font-size: var(--font-size-lg);
    padding: 0 var(--spacing-md);
  }

  .zitat-slide__text::before {
    font-size: 50px;
    top: -20px;
    left: -5px;
  }

  .zitate-carousel {
    min-height: 200px;
  }

  /* Contact */
  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    padding: var(--spacing-xl);
  }

  /* Footer */
  .footer {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }

  .footer__brand {
    grid-column: span 1;
    max-width: 100%;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Page Header */
  .page-header {
    padding: var(--spacing-3xl) 0;
  }

  .page-header__title {
    font-size: var(--font-size-3xl);
  }

  /* CTA Section */
  .cta-section {
    padding: var(--spacing-3xl) 0;
  }

  .cta-section h2 {
    font-size: var(--font-size-2xl);
  }

  /* Scroll Indicator */
  .scroll-indicator {
    display: none;
  }
}

/* ===== MOBILE - 480px ===== */
@media (max-width: 480px) {
  :root {
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.75rem;
    --font-size-5xl: 2rem;
    --font-size-6xl: 2.25rem;
    --spacing-3xl: 2.5rem;
    --spacing-4xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  /* Header */
  .header__logo-text {
    font-size: var(--font-size-base);
  }

  .header__logo-text span {
    display: none;
  }

  .header__logo-img {
    width: 40px;
    height: 40px;
  }

  /* Hero */
  .hero {
    padding: var(--spacing-2xl) 0;
  }

  .hero__badge {
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__shape--1 {
    width: 300px;
    height: 300px;
  }

  .hero__shape--2 {
    width: 200px;
    height: 200px;
  }

  .hero__shape--3 {
    display: none;
  }

  /* Section */
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .section__header {
    margin-bottom: var(--spacing-2xl);
  }

  .section__title {
    font-size: var(--font-size-2xl);
  }

  .section__description {
    font-size: var(--font-size-base);
  }

  /* Buttons */
  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }

  .btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
  }

  /* Cards */
  .card {
    padding: var(--spacing-lg);
  }

  .card__icon {
    width: 52px;
    height: 52px;
    font-size: var(--font-size-xl);
  }

  .card__title {
    font-size: var(--font-size-lg);
  }

  /* Accordion */
  .accordion__number {
    width: 30px;
    height: 30px;
    font-size: var(--font-size-xs);
  }

  .accordion__header {
    padding: var(--spacing-md);
  }

  /* Team Card */
  .team-card {
    padding: var(--spacing-xl);
  }

  .team-card__image {
    width: 100px;
    height: 100px;
    font-size: var(--font-size-3xl);
  }

  /* Contact Item */
  .contact-item__icon {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-lg);
  }

  .contact-item__value {
    font-size: var(--font-size-base);
  }

  /* Contact Form */
  .contact-form {
    padding: var(--spacing-lg);
  }

  .form-input,
  .form-textarea {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* Footer */
  .footer__grid {
    gap: var(--spacing-xl);
  }

  .footer__title {
    font-size: var(--font-size-base);
  }

  .footer__social-link {
    width: 36px;
    height: 36px;
  }

  /* Page Header */
  .page-header {
    padding: var(--spacing-2xl) 0;
  }

  .page-header__title {
    font-size: var(--font-size-2xl);
  }

  /* Quote Box */
  .quote-box {
    padding: var(--spacing-md);
  }

  .quote-box__text {
    font-size: var(--font-size-base);
  }

  .quote-box::before {
    font-size: 80px;
    left: 10px;
  }

  /* CTA Section */
  .cta-section h2 {
    font-size: var(--font-size-xl);
  }

  .cta-section p {
    font-size: var(--font-size-base);
  }

  /* Image Placeholder */
  .image-placeholder {
    min-height: 200px;
  }

  .image-placeholder__icon {
    font-size: var(--font-size-3xl);
  }
}

/* ===== SMALL MOBILE - 360px ===== */
@media (max-width: 360px) {
  :root {
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.35rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .header__logo-img {
    width: 36px;
    height: 36px;
  }

  .nav__list {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== LANDSCAPE PHONES ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--spacing-2xl) 0;
  }

  .hero__title {
    font-size: var(--font-size-3xl);
  }
}

/* ===== LARGE SCREENS - 1440px+ ===== */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }

  .hero__content {
    max-width: 800px;
  }

  .hero__image {
    max-width: 650px;
  }
}

/* ===== ULTRA WIDE - 1920px+ ===== */
@media (min-width: 1920px) {
  :root {
    --container-max: 1440px;
    --font-size-base: 1.125rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .nav,
  .btn,
  .scroll-indicator,
  .hero__background {
    display: none !important;
  }

  main {
    padding-top: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  .card,
  .quote-box,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --color-text: #000;
    --color-background: #fff;
    --color-primary: #8B4513;
    --color-secondary: #2E5D2E;
  }

  .btn--primary,
  .btn--secondary {
    border: 2px solid currentColor;
  }

  .card,
  .accordion__item,
  .service-card {
    border: 2px solid var(--color-text);
  }
}

/* ===== DARK MODE (Optional) ===== */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode
  :root {
    --color-background: #1a1a1a;
    --color-background-alt: #242424;
    --color-text: #e8e8e8;
    --color-text-light: #b0b0b0;
    --color-text-muted: #808080;
    --color-white: #2a2a2a;
    --color-accent-light: #3a3a3a;
  }
  */
}

