/* ========================================
   Magica Aurora – Elite Styles
   Vollständig optimierte CSS-Weltmeister-Edition
   ======================================== */

/* CSS Layers für bessere Organisation */
@layer tokens, base, components, utilities;

/* ========================================
   TOKENS - Design System Variables
   ======================================== */
@layer tokens {
  :root {
    /* Colors */
    --primary-color: #0c0b17;
    --hover-color: #683a32;
    --accent-color: #bbad70;
    --text-color: #e3e0f0;
    --line-clr: #a49fd1;
    --Kachel: #161431;
    --Kachel2: #0c0b17;
    --Kachel3: #0c0b17;

    /* Layout */
    --radius: 12px;
    --container: 1200px;

    /* Animation */
    --transition: 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.23, 1, 0.32, 1);

    /* Effects */
    --shadow: 0 20px 60px rgba(2, 6, 23, 0.6);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    --glow: 0 8px 40px rgba(187, 173, 112, 0.08);
    --glow-strong: 0 0 60px rgba(187, 173, 112, 0.15);
    --glass: rgba(255, 255, 255, 0.03);

    color-scheme: dark;
  }
  /* Reduced Motion Support */
  @media (prefers-reduced-motion: reduce) {
    :root {
      --transition: 0.01s linear;
      --transition-smooth: 0.01s linear;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* ========================================
   BASE STYLES
   ======================================== */
@layer base {
  * {
    box-sizing: border-box;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #070611 0%, var(--primary-color) 100%);
    color: var(--text-color);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
  }

  .container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
  }

  /* Screen Reader Only */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}

/* ========================================
   COMPONENTS
   ======================================== */
@layer components {
  /* ===== Aurora Background Blobs ===== */
  .aurora-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .aurora-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    mix-blend-mode: screen;
    animation: float 20s ease-in-out infinite;
  }

  @keyframes float {
    0%,
    100% {
      transform: translate(0, 0) scale(1);
    }
    33% {
      transform: translate(30px, -30px) scale(1.1);
    }
    66% {
      transform: translate(-20px, 20px) scale(0.9);
    }
  }

  .loc {
    display: hidden;
  }

  .aurora-bg .b1 {
    width: 680px;
    height: 680px;
    left: -120px;
    top: 10%;
    background: radial-gradient(
      circle at 30% 30%,
      rgba(187, 173, 112, 0.9),
      transparent 40%
    );
    animation-delay: 0s;
  }

  .aurora-bg .b2 {
    width: 520px;
    height: 520px;
    right: -80px;
    top: 30%;
    background: radial-gradient(
      circle at 60% 40%,
      rgba(164, 159, 209, 0.9),
      transparent 40%
    );
    opacity: 0.12;
    animation-delay: 7s;
  }

  .aurora-bg .b3 {
    width: 420px;
    height: 420px;
    left: 15%;
    bottom: 6%;
    background: radial-gradient(
      circle at 40% 60%,
      rgba(91, 157, 255, 0.85),
      transparent 40%
    );
    opacity: 0.08;
    animation-delay: 13s;
  }

  html {
    scroll-padding-top: 100px; /* Macht das gleiche! */
  }

  /* ===== Typography ===== */
  h1,
  h2,
  h3,
  h4 {
    background-image: linear-gradient(
      to bottom right,
      #bbad70,
      #bbad70,
      #683a32
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: "Poppins", sans-serif;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  /* ===== Navigation ===== */
  nav {
    margin: 0;
    padding: 0;
    background: rgba(12, 11, 23, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  nav li {
    display: flex;
  }

  nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }

  nav .home-li {
    margin-right: auto;
  }

  nav a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 1em 2em;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
  }

  nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #bbad70, #683a32);
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }

  nav a:hover::after {
    width: 80%;
  }

  nav a:hover {
    background-image: linear-gradient(to bottom right, #bbad70, #683a32);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }

  nav a.active-link {
    border-bottom: 2px solid var(--accent-color);
  }

  nav a.accent-link {
    background-image: linear-gradient(
      to bottom right,
      #bbad70,
      #bbad70,
      #683a32
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
  }

  /* Mobile Menu Buttons */
  #open-sidebar-button,
  #close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.3s ease;
  }

  #open-sidebar-button:hover,
  #close-sidebar-button:hover {
    transform: scale(1.1);
  }

  #open-sidebar-button {
    margin-left: auto;
  }

  /* Overlay for Mobile Menu */
  #overlay {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
  }

  /* ===== Hero Section ===== */
  .hero {
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: relative;
    margin-top: 0;
    padding: 2rem 0;
  }

  .hero-btn {
    min-height: 78vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    position: center;
    margin-top: 5%;
    padding: 4rem 0;
  }

  .container-hero {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
  }

  .hero-image-wrapper {
    position: relative;
    width: 40%;
    filter: drop-shadow(0 20px 60px rgba(187, 173, 112, 0.2));
  }

  .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    transition: opacity 0.8s ease-out, filter 0.6s ease-out;
  }

  .lowres {
    opacity: 1;
    filter: blur(20px);
  }

  .highres {
    opacity: 0;
  }

  .highres.loaded {
    opacity: 1;
    filter: blur(0);
  }

  .display {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    color: var(--text-color);
    text-wrap: balance;
    animation: fadeInUp 0.8s ease-out;
  }

  .accent {
    color: var(--accent-color);
    font-weight: 800;
    letter-spacing: 0.6px;
    background-image: linear-gradient(
      to bottom right,
      #bbad70,
      #bbad70,
      #683a32
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    animation: shimmer 3s ease-in-out infinite;
  }

  @keyframes shimmer {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.8;
    }
  }

  .lead {
    color: var(--line-clr);
    margin-top: 1rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== Sections ===== */
  .section {
    padding: 4.5rem 0;
    text-align: center;
    z-index: 10;
    position: relative;
    scroll-margin-top: 100px; /* WICHTIG: Offset für Navigation */
  }

  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.6s ease-out;
  }

  .section-title::after {
    content: "";
    height: 3px;
    width: 60%;
    display: block;
    margin: 0.8rem auto 0;
    background: linear-gradient(
      to right,
      transparent,
      var(--accent-color),
      transparent
    );
    opacity: 0.9;
    border-radius: 6px;
    animation: expandWidth 0.8s ease-out 0.3s both;
  }

  @keyframes expandWidth {
    from {
      width: 0;
    }
    to {
      width: 60%;
    }
  }

  .section p {
    text-align: left;
  }

  /* ===== Angebot Section ===== */
  .Angebot {
    margin-top: 35rem;
  }

  /* Intro Card */
  .intro-card {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
  }

  .intro-card p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
  }

  /* ===== Cards - Premium Design ===== */
  .card {
    position: relative;
    background: linear-gradient(
      135deg,
      rgba(22, 20, 49, 0.95) 0%,
      rgba(12, 11, 23, 0.85) 100%
    );
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(187, 173, 112, 0.1);
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    overflow: hidden;
  }

  /* Animated Gradient Border */
  .card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
      135deg,
      rgba(187, 173, 112, 0.3),
      rgba(104, 58, 50, 0.3),
      rgba(187, 173, 112, 0.3)
    );
    background-size: 200% 200%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: gradientShift 4s ease infinite;
    transition: opacity 0.5s ease;
  }

  @keyframes gradientShift {
    0%,
    100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }

  /* Shimmer Effect */
  .card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(187, 173, 112, 0.1) 50%,
      transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .card:hover::before {
    opacity: 1;
  }

  .card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }

  .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-strong),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(187, 173, 112, 0.3);
  }

  .card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
  }

  .card p {
    text-align: left;
    line-height: 1.7;
    color: rgba(227, 224, 240, 0.85);
    margin-top: 0.5rem;
    transition: color 0.3s ease;
  }

  .card:hover p {
    color: rgba(227, 224, 240, 0.95);
  }

  /* ===== Offer Grid ===== */
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    perspective: 1000px;
  }

  .offer-card {
    text-align: center;
  }

  .offer-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }

  .offer-icon {
    font-size: 3rem;
    margin: 1rem 0;
    animation: bounce 2s ease-in-out infinite;
  }

  @keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .offer-card p {
    text-align: left;
  }

  /* Cascade Animation */
  .offer-grid .card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
  }
  .offer-grid .card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
  }
  .offer-grid .card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
  }
  .offer-grid .card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
  }

  /* ===== About Card ===== */
  .about-card h3 {
    margin-bottom: 1rem;
  }

  .about-card .copy {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* ===== Gallery ===== */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
    z-index: 10;
  }

  .tile {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.01)
    );
    position: relative;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.4s;
    cursor: pointer;
  }

  .tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s, filter 0.6s;
  }

  .tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(11, 10, 18, 0.6);
  }

  .tile:hover img {
    transform: scale(1.06);
    filter: brightness(1.1);
  }

  /* Gallery Actions */
  .gallery-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .btn {
    background-image: linear-gradient(to bottom right, #bbad70, #683a32);
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(11, 10, 18, 0.6);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1rem;
  }

  .btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
    box-shadow: 0 15px 40px rgba(187, 173, 112, 0.3);
  }

  .btn:active {
    transform: translateY(-2px);
  }

  .btn.ghost {
    background: transparent;
    border: 2px solid rgba(187, 173, 112, 0.3);
    color: var(--text-color);
  }

  .btn.ghost:hover {
    background: rgba(187, 173, 112, 0.1);
    border-color: rgba(187, 173, 112, 0.5);
  }

  /* ===== Contact Section ===== */
  .contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
  }

  .contact-wrapper h2 {
    margin-bottom: 1rem;
  }

  .contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-color);
    border-radius: 20px;
    background: linear-gradient(
      135deg,
      rgba(22, 20, 49, 0.95),
      rgba(12, 11, 23, 0.85)
    );
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow);
    border: 1px solid rgba(187, 173, 112, 0.1);
  }

  .contact-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    width: 100%;
  }

  .contact-inputs,
  .contact-inputs-textarea {
    width: 100%;
    max-width: 40rem;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
    );
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: inherit;
    font-size: 1rem;
  }

  .contact-inputs::placeholder,
  .contact-inputs-textarea::placeholder {
    color: rgba(227, 224, 240, 0.45);
  }

  .contact-inputs:focus,
  .contact-inputs-textarea:focus {
    box-shadow: 0 10px 40px rgba(187, 173, 112, 0.12),
      0 0 0 3px rgba(187, 173, 112, 0.2);
    transform: translateY(-2px);
    border-color: rgba(187, 173, 112, 0.3);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.02)
    );
  }

  .contact-inputs-textarea {
    min-height: 160px;
    padding-top: 1rem;
    resize: vertical;
  }

  .form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .callToAction {
    background-image: linear-gradient(to bottom right, #bbad70, #683a32);
    border: none;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 14px 40px rgba(187, 173, 112, 0.2);
    color: var(--primary-color);
    font-size: 1rem;
  }

  .callToAction:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(187, 173, 112, 0.3);
    filter: brightness(1.1);
  }

  .callToAction:active {
    transform: translateY(-1px);
  }

  .callToAction.sending {
    transform: scale(0.98);
    filter: brightness(0.95);
    cursor: wait;
  }

  .form-status {
    min-width: 160px;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    background: rgba(187, 173, 112, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s ease;
    border: 1px solid rgba(187, 173, 112, 0.2);
  }

  .form-status.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== Lightbox ===== */
  .lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1400;
  }

  .lightbox.open {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.8);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(0, 0, 0, 0.03)
    );
    padding: 1rem;
    animation: zoomIn 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  @keyframes zoomIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .lightbox img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 8px;
  }

  .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 0;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .lightbox-close:hover {
    background: rgba(187, 173, 112, 0.3);
    transform: rotate(90deg);
  }

  .caption {
    text-align: center;
    padding: 0.5rem;
    color: var(--line-clr);
    font-size: 0.9rem;
  }

  /* ===== Footer ===== */
  .footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    color: var(--line-clr);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  }

  .footer p {
    text-align: center;
    margin: 0;
  }

  /* ===== Scroll to Top Button ===== */
  .scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #bbad70, #683a32);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scroll-to-top:hover {
    transform: translateY(0) scale(1.1);
    box-shadow: 0 15px 40px rgba(187, 173, 112, 0.4);
  }

  .scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* ===== Utility Classes ===== */
  .fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@layer utilities {
  /* ===== Tablet Breakpoint ===== */
  @media (max-width: 1024px) {
    .hero-image-wrapper {
      width: 60%;
    }
    .hero {
      margin-top: 0;
    }

    .offer-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .Angebot {
      margin-top: 35em;
    }
  }

  /* ===== Mobile Breakpoint ===== */
  @media (max-width: 900px) {
    /* Hero */
    .hero {
      margin-top: 0;
      padding-bottom: 10rem;
      min-height: 60vh;
    }

    .hero-image-wrapper {
      width: 80%;
    }

    .display {
      font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .lead {
      font-size: 1rem;
    }

    /* Navigation - Mobile Menu */
    #open-sidebar-button,
    #close-sidebar-button {
      display: block;
    }

    nav {
      position: fixed;
      z-index: 100;
      top: 0;
      right: -100%;
      height: 100vh;
      width: min(30em, 90%);
      border-left: 1px solid var(--hover-color);
      transition: right 300ms ease-out;
      background-color: var(--Kachel2);
      overflow-y: auto;
    }

    nav.shownav {
      right: 0;
    }

    nav.shownav ~ #overlay {
      display: block;
    }

    nav ul {
      width: 100%;
      flex-direction: column;
      padding: 1rem 0;
    }

    nav a {
      width: 100%;
      padding: 1rem 2rem;
      font-size: 1.2rem;
    }

    nav a::after {
      display: none;
    }

    nav a.active-link {
      border-bottom: none;
      border-left: 3px solid var(--accent-color);
    }

    nav .home-li {
      margin-right: unset;
    }

    .Angebot {
      margin-top: 40rem;
    }

    /* Sections */
    .section {
      padding: 3rem 0;
    }

    .container {
      padding: 2rem 1rem;
      width: 95%;
    }

    /* Cards */
    .card {
      padding: 1.5rem;
    }

    .offer-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .offer-icon {
      font-size: 2.5rem;
    }

    /* Gallery */
    .gallery {
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 0.8rem;
    }

    .gallery-actions {
      flex-direction: column;
      gap: 0.8rem;
    }

    .btn {
      width: 100%;
      max-width: 300px;
    }

    /* Contact */
    .contact-container {
      padding: 1.5rem;
    }

    .contact-inputs,
    .contact-inputs-textarea {
      padding: 0.9rem 1.2rem;
    }

    .form-actions {
      flex-direction: column;
      gap: 0.8rem;
    }

    .callToAction,
    .form-status {
      width: 100%;
    }

    /* Lightbox */
    .lightbox-inner {
      max-width: 95%;
      padding: 0.5rem;
    }

    .lightbox img {
      max-height: 60vh;
    }

    /* Footer */
    .footer {
      padding: 2rem 0;
      margin-top: 2rem;
    }

    /* Scroll to Top */
    .scroll-to-top {
      bottom: 1.5rem;
      right: 1.5rem;
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
    }
  }

  /* ===== Mobile Breakpoint ===== */
  @media (max-width: 560px) {
    .Angebot {
      margin-top: 28rem;
    }
  }

  /* ===== Small Mobile Breakpoint ===== */
  @media (max-width: 480px) {
    .hero {
      margin-top: 0;
    }

    .hero-image-wrapper {
      width: 90%;
    }

    .display {
      font-size: 1.6rem;
    }

    .lead {
      font-size: 0.95rem;
    }

    nav a {
      padding: 0.9rem 1.5rem;
      font-size: 1.1rem;
    }

    .section-title {
      font-size: 1.6rem;
    }

    .card {
      padding: 1.2rem;
    }

    .offer-title {
      font-size: 1.2rem;
    }

    .gallery {
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .contact-container {
      padding: 1rem;
    }

    .scroll-to-top {
      bottom: 1rem;
      right: 1rem;
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
    }
    .Angebot {
      margin-top: 20rem;
    }
  }

  /* ===== Small Mobile Breakpoint ===== */
  @media (max-width: 350px) {
    .Angebot {
      margin-top: 15rem;
    }
  }

  /* ===== Print Styles ===== */
  @media print {
    .aurora-bg,
    nav,
    #overlay,
    .gallery-actions,
    .scroll-to-top,
    .lightbox {
      display: none !important;
    }

    body {
      background: white;
      color: black;
    }

    .card {
      page-break-inside: avoid;
      box-shadow: none;
      border: 1px solid #ccc;
    }
  }

  /* ===== High Contrast Mode Support ===== */
  @media (prefers-contrast: high) {
    :root {
      --text-color: #ffffff;
      --accent-color: #ffdd00;
    }

    .card {
      border: 2px solid var(--accent-color);
    }

    nav a.active-link {
      border-bottom-width: 3px;
    }
  }

  /* ===== Dark Mode Override (if system preference changes) ===== */
  @media (prefers-color-scheme: light) {
    /* Keep dark theme even if system prefers light */
    :root {
      color-scheme: dark;
    }
  }
}

/* ========================================
   END OF STYLES
   ======================================== */
