/* Grundlayout & Variablen */
:root {
  --header-offset: 118px;
  --bg-main: #ffffff;
  --bg-alt: #f5f5f5;
  --text-main: #111111;
  --text-muted: #666666;
  --accent: #000000;
  --hero-bg-url: url("../img/hero-bg.jpg");
  --about-bg-url: url("../img/ueber-mich.jpg");
  --border-subtle: #e5e5e5;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-fast: 180ms ease-out;
  --transition-med: 240ms ease-out;
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Container & Sections */

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0.5rem auto 0;
}

/* Header & Navigation */

/* =========================
   HEADER (minimal + dünner)
   ========================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(14px);
  overflow: visible;
}

.main-header.scrolled {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

/* Dünner Balken, aber Logo bleibt groß (Logo hängt raus) */
.nav-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.55rem 0 0.65rem;
  column-gap: 1.9rem; /* MENÜS RÜCKEN NÄHER AN LOGO */
}
/* optional: very subtle notch unter dem Logo (cleaner als Pill) */


.main-nav {
  display: flex;
  align-items: center;
  gap: 3.9rem; /* MEHR LUFT ZWISCHEN DEN TEXTEN */
}

.main-nav-left {
  justify-content: flex-start;
}

.main-nav-right {
  justify-content: flex-end;
}

.main-nav a {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 100%;
}

/* =========================
   LOGO (minimal badge)
   ========================= */

/* Logo hängt in den Content hinein, Header bleibt dünn */
.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none; /* kein Overlap in den Content */
}

/* Clean, eckig-rund statt Pill */
.logo-pill {
  background: #ffffff;

  /* weniger “card edge”, damit es nicht wie doppelte Kante wirkt */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;

  padding: 0.55rem 1.2rem;

  /* weicher Shadow statt harte Kontur */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

/* Logo bleibt groß */
.logo-image {
  display: block;
  max-height: 86px; /* groß & sichtbar */
  width: auto;
}

/* =========================
   ABOUT: Hero mit Bild (Über mich)
   ========================= */

.about-hero {
  position: relative;
  min-height: clamp(560px, 70vh, 820px);
  display: flex;
  align-items: center;

  /* Bild als Hintergrund: standardmäßig in SW (ruhiger, hochwertig)
     Fallback: falls ueber-mich.jpg fehlt, nutze about-cedric.jpg */
  background-color: #0f0f0f;
  background-image: var(--about-bg-url), url("../img/about-cedric.jpg");
  background-size: cover, cover;
  background-position: 25% 32%, center;
  background-repeat: no-repeat, no-repeat;
}

/* Optional: Wenn du das Bild farbig willst, setze in about.html am <section>
   zusätzlich die Klasse "is-color" oder "is-bw" (Standard ist BW). */
.about-hero {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

.about-hero.is-color {
  filter: none;
}

.about-hero.is-bw {
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

/* Overlay für Lesbarkeit (minimalistisch) */
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.72), rgba(0,0,0,0.30)),
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.06), transparent 55%);
}

.about-hero-content {
  position: relative;
  z-index: 2;

  /* Card rechts platzieren (Person bleibt sichtbar) */
  padding: 4.5rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


/* Text-Card: rechts, schmaler, dafür höher – mit Scroll bei langem Text */
.about-card {
  width: min(560px, 92vw);
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;

  /* etwas mehr Luft + bessere Lesbarkeit */
  padding: 2.25rem 2.25rem;
  border-radius: var(--radius-xl);
  color: #111111;
}


/* feiner Akzent links in der Card */
.about-card {
  position: relative;
  padding-left: 2.35rem; /* Platz für Linie */
}

.about-card::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  top: 1.9rem;
  bottom: 1.9rem;
  width: 1px;
  background: rgba(0,0,0,0.12);
}

.about-card h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.about-card p {
  margin: 0 0 1rem;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.65;
  font-size: 1.02rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card .lead {
  font-size: 1.06rem;
  color: rgba(17, 17, 17, 0.82);
}

.about-card strong {
  font-weight: 650;
}

.about-card .closing {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(0,0,0,0.10);
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 70vh;
    background-position: 25% 20%;
  }

  .about-hero-content {
    padding: 3.6rem 0;
  }

  .about-card {
    width: 100%;
    max-width: 100%;
    overflow: visible;

    padding: 1.6rem;
    padding-left: 1.85rem;
  }

  .about-card::before {
    left: 0.95rem;
    top: 1.6rem;
    bottom: 1.6rem;
  }
}

/* Hero mit Parallax-Hintergrund */

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-offset));
  display: flex;
  align-items: center;
  height: calc(100vh - var(--header-offset));
  box-sizing: border-box;
  padding-bottom: 3.5rem;
  color: #ffffff;
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.86),
      rgba(0, 0, 0, 0.5)
    ),
    var(--hero-bg-url);
  background-size: cover;
  background-position: center 25%;
  background-attachment: fixed; /* Parallax-Effekt */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.04),
    transparent 55%
  );
  pointer-events: none;
  z-index: 1;
}


/* Startseite (ohne Slideshow): gleiche milchige Box + zentrierte CTAs */
.hero-section.has-hero-box .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-section.has-hero-box .hero-actions {
  justify-content: center;
}

.hero-section.has-hero-box .hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;

  inset: -24px -24px -20px -24px;

  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: var(--radius-xl);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero-section.has-hero-box .hero-content,
.hero-section.has-hero-box .hero-content * {
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}


.hero-content {
  padding-top: 0;
  transform: translateY(-18vh);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 360px;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-section.has-hero-box .hero-actions {
  gap: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.primary-btn {
  background-color: #ffffff;
  color: #000000;
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

/* Startseite: "Technik leihen" wie Primary (ohne HTML-Änderung) */
.hero-section.has-hero-box .hero-actions a[href$="rental.html"] {
  background-color: #ffffff;
  color: #000000;
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.hero-section.has-hero-box .hero-actions a[href$="rental.html"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
}

.ghost-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.full-width {
  width: 100%;
}

/* Glas-Effekt & Karten */

.glass-card {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med), background-color var(--transition-med);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.08);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.section-text h2,
.section-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text p {
  color: var(--text-muted);
}

/* Highlight Card */

.section-highlight-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.06)
  );
  color: var(--text-main);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.section-highlight-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.section-highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.section-highlight-card li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.6rem;
}

.section-highlight-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 1px;
  background-color: var(--accent);
}

.section-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.1);
}

/* Kontakt: Direktkontakt-Karte ohne Hover-Anhebung */
.section-highlight-card.no-hover-lift:hover {
  transform: none;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.04);
}

/* Verleih-Karten */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-med), box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.14);
}

/* Kontaktformular */

.contact-card {
  padding: 2.2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), border-radius var(--transition-fast);
  background-color: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  background-color: #ffffff;
}

/* Datenschutz-Checkbox (kompakt, korrekt ausgerichtet) */
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 0.9rem;
}

.privacy-consent input[type="checkbox"] {
  margin: 0.2rem 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.privacy-consent label {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch; /* verhindert zu breite/komische Zeilen */
}

.privacy-consent a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-consent a:hover {
  opacity: 0.85;
}

/* Footer */

.main-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0 2rem;
  background-color: #ffffff;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */

@media (max-width: 900px) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
    .nav-container {
    grid-template-columns: 1fr auto 1fr; /* Burger-Layout beibehalten */
    row-gap: 0;
    column-gap: 0.75rem;
  }

  .main-nav {
    justify-content: center;
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 4rem;
    transform: translateY(-12vh);
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 4rem 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- FIX: Nav-Links immer schwarz, keine Standard-Linkfarben/Unterstreichung --- */
.main-header .main-nav a,
.main-header .main-nav a:link,
.main-header .main-nav a:visited,
.main-header .main-nav a:hover,
.main-header .main-nav a:active {
  color: #111111;
  text-decoration: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

/* Hover-Unterstreichung nur als feine Linie (wie vorher) */
.main-header .main-nav a {
  position: relative;
  padding: 0.3rem 0 0.25rem;
  transition: color 180ms ease-out, transform 180ms ease-out;
}

.main-header .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: #000000;
  transition: width 180ms ease-out;
}

.main-header .main-nav a:hover {
  color: #000000;
  transform: translateY(-1px);
}

.main-header .main-nav a:hover::after {
  width: 100%;
}

/* Optional: Fokus sichtbar aber minimal */
.main-header .main-nav a:focus-visible {
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 4px;
  border-radius: 6px;
}

/* --- Logo: Visitenkarten-Tilt (Hover) --- */
.logo-pill {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

/* optional: etwas mehr Tiefe beim Hover */
.logo-pill.is-tilting {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

/* Glare / Lichtreflex */
.logo-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease-out;

  /* Wird per JS über CSS-Variablen gesteuert */
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.00) 55%
  );
}

.logo-pill.is-tilting::after {
  opacity: 1;
}

/* --- Kontakt: Direktkontakt als Icon-Links (monochrom, klein) --- */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

/* verhindert die „Strich“-Pseudo-Icons aus .section-highlight-card */
.contact-links li {
  position: static;
  padding-left: 0;
  margin-bottom: 0;
}
.contact-links li::before {
  content: none !important;
}

.contact-link,
.contact-link:link,
.contact-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  color: #111111; /* immer schwarz */
  text-decoration: none;

  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.contact-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.contact-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
  color: #111111; /* SVG nutzt currentColor */
}

.contact-handle {
  font-size: 0.95rem;
  line-height: 1.15;
}

.contact-link:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- Startseite Hero: Typografie (Feinschliff ohne Layout-Shift) --- */
.hero-content {
  position: relative;
  z-index: 2;
  /* bewusst keine max-width, damit der Block nicht weiter eingerückt wirkt */
}

.hero-brand {
  margin-bottom: 0.35rem;
}

.hero-brand-text {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.hero-eyebrow {
  /* Abstand wie vorher (keine zusätzliche „Absatz“-Wirkung) */
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.78;
}

.hero-content h1 {
  font-size: clamp(2.7rem, 4.7vw, 3.9rem);
  letter-spacing: -0.01em;
  /* keine max-width, damit Zeilenumbruch wie zuvor bleibt */
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 360px; /* schmaler */
  margin-bottom: 1.25rem; /* näher an Buttons */
  color: rgba(255, 255, 255, 0.80);
}

/* Buttons im Hero minimal „wertiger“ */
.hero-actions .btn {
  padding: 0.9rem 1.85rem;
  font-size: 0.98rem;
  min-width: 210px; /* gleiche Breite */
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 1rem;
    max-width: 420px;
  }
  .hero-content {
    padding-top: 0;
    padding-bottom: 4rem;
    transform: translateY(-12vh);
  }
}

/* --- Danke-Seite (nur falls danke.html diese Klassen nutzt) --- */
.thankyou-wrap {
  display: flex;
  justify-content: center;
}

.thankyou-card {
  max-width: 740px;
  width: 100%;
  text-align: center;
}

.thankyou-eyebrow {
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

.thankyou-title {
  margin: 0 0 1rem;
  color: var(--text-main);
}

.thankyou-text {
  margin: 0 auto 1.6rem;
  color: var(--text-muted);
  max-width: 58ch;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
}


/* =========================
   MOBILE PERFEKTION (Header + Hero)
   Ziel: Mobile mit Burger-Menü (Logo mittig), übersichtlich & bedienfreundlich
   ========================= */

/* iOS/Smartphones: Parallax (background-attachment: fixed) deaktivieren */
@media (max-width: 900px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Header-Offset responsiv steuern (damit Inhalte nicht unter dem Header kleben) */
@media (max-width: 900px) {
  :root {
    --header-offset: 124px;
  }
}

@media (max-width: 420px) {
  :root {
    --header-offset: 118px;
  }
}

/* ---------------------------------
   Burger Button + Overlay (CSS-Teil)
   Hinweis: Funktion (Öffnen/Schließen) kommt per main.js,
   Markup (Button + Overlay) kommt in die HTML-Dateien.
   --------------------------------- */

.nav-toggle {
  display: none; /* Desktop: aus */
  appearance: none;
  border: 0;
  background: transparent;

  /* kompakter + saubere Balken-Ausrichtung */
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 0;

  /* Bars sauber stapeln */
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 3px;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}
.nav-toggle .bar + .bar { margin-top: 0; /* Abstand kommt über gap */ }

/* Overlay Container (standard: versteckt) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

/* dunkler Backdrop */
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Panel */
.mobile-menu__panel {
  position: absolute;
  left: 50%;
  top: calc(var(--header-offset) - 12px);
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  padding: 18px 18px 14px;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 10px;
}

.mobile-menu__title {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.72);
  margin: 0;
}

.mobile-menu__close {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: #111;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}
.mobile-menu__close:hover {
  background: rgba(0, 0, 0, 0.09);
}

.mobile-menu__nav {
  display: grid;
  gap: 8px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #111;
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.mobile-menu__nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mobile-menu__nav a.active {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.10);
}

/* Open State (wird per JS gesetzt) */
body.menu-open .mobile-menu {
  display: block;
}
body.menu-open {
  overflow: hidden;
}

/* ---------------------------------
   Mobile Header Layout: Logo mittig, Burger rechts
   Desktop-Nav wird auf Mobile ausgeblendet
   --------------------------------- */
@media (max-width: 900px) {
  .main-nav-left,
  .main-nav-right {
    display: none;
  }

  /* nav-container: 3 Spalten bleiben, auch wenn Nav-Links ausgeblendet sind */
  .nav-container {
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.75rem;
  }

  .logo-wrapper {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    justify-self: center;
  }

  /* Burger rechts */
  .nav-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  /* Logo etwas kompakter auf Mobile */
  .logo-pill {
    padding: 0.45rem 1.05rem;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  }

  .logo-image {
    max-height: 62px;
  }

  /* Hero-Box: auf Mobile weniger „klobig“ */
  .hero-section.has-hero-box .hero-content::before {
    inset: -18px -16px -16px -16px;
    border-radius: 26px;
  }

  .hero-content {
  transform: translateY(-6vh);
}

  .hero-content h1 {
    font-size: clamp(2.05rem, 8.4vw, 2.95rem);
    line-height: 1.06;
  }

  .hero-subtitle {
    max-width: 46ch;
    font-size: 0.98rem;
    margin-bottom: 1.05rem;
  }

  .hero-actions {
    gap: 0.85rem;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .logo-image {
    max-height: 56px;
  }
  .mobile-menu__panel {
    width: min(480px, calc(100% - 24px));
  }
}


/* =========================
   Ergänzende Mobile-Anpassungen (nur für Mobile, max-width: 900px)
   ========================= */

/* 1) Button „Technik leihen“ nur in der Mobile-Ansicht ausblenden */
@media (max-width: 900px) {
  .hero-section.has-hero-box .hero-actions a[href$="rental.html"] {
    display: none;
  }
}

/* 2) Hero-Box in der Mobile-Ansicht etwas kleiner machen (weniger Höhe) */
@media (max-width: 900px) {
  /* Box soll knapp unter den Buttons enden */
  .hero-section.has-hero-box .hero-content {
    padding-bottom: 0.25rem;
  }

  .hero-section.has-hero-box .hero-content::before {
    /* unten deutlich kürzer */
    inset: -14px -14px -6px -14px;

    /* minimal mehr Transparenz */
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-actions .btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
  }
}

/* 3) Headline „Sound, Licht und Stimmung für Ihre Veranstaltung.“ auf Mobile weiter verkleinern */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: clamp(1.65rem, 6.0vw, 2.15rem);
    line-height: 1.08;
  }
}

/* =========================
   Mobile: Über mich Seite (Lesbarkeit + Vorbereitung Bild unter Text)
   ========================= */
@media (max-width: 900px) {
  /* Auf Mobile: Text klar auf Weiß, damit nichts durchscheint */
  .about-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Keine „durchscheinenden“ Overlays, die den Footer sichtbar machen könnten */
  .about-card,
  .about-card * {
    text-shadow: none;
  }

  /* Hero als normaler Abschnitt: Bild wird später unter den Text gesetzt (HTML) */
  .about-hero {
    min-height: auto;
    height: auto;
    background: #ffffff;          /* Mobile: weißer Hintergrund wie rental.html */
    background-image: none;
    filter: none;
  }

  /* Overlay enthält den Text – muss auf Mobile sichtbar sein und Höhe erzeugen */
  .about-hero-overlay {
    display: block;
    position: relative;  /* statt absolute, damit der Bereich nicht kollabiert */
    inset: auto;
    background: transparent !important; /* keine dunkle Überlagerung auf Mobile */
  }

  .about-hero-content {
    padding: 2.6rem 0 1.6rem;
    justify-content: center;
  }

  /* Mobile: Foto unter dem Text immer in Farbe */
  .about-photo-img {
    filter: none !important;
  }
}

/* Bild-Sektion unter dem Text (wir fügen das Markup in about.html als Nächstes hinzu) */
.about-photo {
  padding: 0 0 4rem;
  background: var(--bg-main);
}

.about-photo .container {
  width: min(1120px, calc(100% - 3rem));
}

.about-photo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}