@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');



:root{
  --bg:#0e0e10;         /* dunkles Anthrazit */
  --ink:#f2f2f2;        /* Text hell */
  --muted:#cfcfcf;      /* Sekundärtext */
  --accent:#d4a373;     /* warmes Herbst-Akzent (amber, gedeckt) */
  --panel:#151518;      /* Paneel/Box */
  --line:#202126;       /* Linien */
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}

.topbar{
  position:sticky;top:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 1.25rem;background:rgba(10,10,12,.6);backdrop-filter:saturate(1.1) blur(8px);
  border-bottom:1px solid var(--line);
}
.brand{font-weight:700;text-decoration:none;color:var(--ink)}
.topnav a{color:var(--muted);text-decoration:none;margin-left:1rem}
.topnav a.active,.topnav a:hover{color:var(--accent)}

.section{padding:5rem 1.25rem;max-width:1200px;margin:0 auto}
.section h1,.section h2{margin-bottom:1rem;letter-spacing:.3px}
.section p{color:#dddddd;line-height:1.7;max-width:70ch}

/* HERO */
.hero{position:relative;height:88vh;overflow:hidden;border-bottom:1px solid var(--line)}
.hero-layer{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.4s ease}
.hero-current{opacity:1}
.hero-vignette{position:absolute;inset:0;pointer-events:none;background:
  radial-gradient(120% 100% at 50% 60%, transparent 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.75) 100%)}
.hero-grain{pointer-events:none;position:absolute;inset:0;opacity:.12;mix-blend-mode:overlay;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width=\"200\" height=\"200\"><filter id=\"n\"><feTurbulence type=\"fractalNoise\" baseFrequency=\"0.8\" numOctaves=\"2\"/><feColorMatrix type=\"saturate\" values=\"0\"/><feComponentTransfer><feFuncA type=\"table\" tableValues=\"0 0.3\"/></feComponentTransfer></filter><rect width=\"100%\" height=\"100%\" filter=\"url(%23n)\"/></svg>')}

.hero-caption{
  position:absolute;left:5vw;bottom:10vh;z-index:2;max-width:min(70ch,80vw);
}
.hero-caption h1{font-size:clamp(2rem,6vw,3.5rem);font-weight:700}
.hero-caption p{margin:.7rem 0 1.4rem;color:#e8e8e8}
.btn{
  display:inline-block;background:var(--accent);color:#100f0f;padding:.75rem 1.25rem;border-radius:.6rem;
  text-decoration:none;font-weight:600;transition:transform .2s ease, filter .2s ease;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.05)}

.scroll-hint{
  position:absolute;left:50%;bottom:18px;transform:translateX(-50%);
  background:transparent;border:1px solid var(--line);color:var(--muted);
  padding:.4rem .75rem;border-radius:999px;cursor:pointer
}
.scroll-hint:hover{border-color:#444;color:#fff}

/* Cards & Masonry */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-top:1.5rem}
.card{background:var(--panel);border:1px solid var(--line);border-radius:.8rem;overflow:hidden;text-decoration:none;color:var(--ink)}
.card img{width:100%;aspect-ratio:16/10;object-fit:cover;transition:transform .5s ease}
.card span{display:block;padding:.9rem 1rem}
.card:hover img{transform:scale(1.05)}

.masonry{columns:1;column-gap:1rem}
.tile{display:inline-block;width:100%;margin:0 0 1rem;border:1px solid var(--line);border-radius:.8rem;overflow:hidden;text-decoration:none;color:var(--ink);background:var(--panel)}
.tile img{width:100%;height:auto;display:block}
.tile span{display:block;padding:.8rem 1rem}
@media(min-width:700px){.masonry{columns:2}}
@media(min-width:1000px){.masonry{columns:3}}

/* About */
.about{display:grid;grid-template-columns:1fr;gap:2rem}
.about-hero{width:100%;border:1px solid var(--line);border-radius:.8rem;object-fit:cover}
.about-text p{max-width:70ch}

/* Form */
.form{display:grid;gap:.8rem;max-width:560px}
.form input,.form textarea{background:#121316;border:1px solid var(--line);color:var(--ink);padding:.9rem;border-radius:.6rem}
.form input:focus,.form textarea:focus{outline:none;border-color:#3a3b42}

/* Footer */
.footer{padding:2rem 1.25rem;border-top:1px solid var(--line);text-align:center;color:var(--muted)}

/* Reveal */
.fade-in{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s ease}
.fade-in.visible{opacity:1;transform:none}

body, html {
  overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

.hero {
  overflow: hidden; /* Beschneidet alles, was beim Parallax rauswandert */
  will-change: transform; /* bessere Performance */
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;          /* über Bild, unter Caption */
  opacity: 0.3;
}

/* Einheitlicher, zentrierter CTA-Block */
.section.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* gleiche Farbwelt wie andere Abschnitte */
  background: var(--bg);          /* nutzt dein globales Anthrazit */
  color: var(--ink);
  min-height: 30vh;

  /* sanfter Übergang zu Nachbarbereichen */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.cta h2 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: 0.5px;
}

.section.cta .btn {
  background: var(--accent);
  color: #0f0f0f;
  border-radius: 8px;
  font-weight: 600;
  padding: 0.9rem 2rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.section.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.hero-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* === STORY BLOCK (Intro) === */
#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertikal zentriert */
  align-items: center;       /* horizontal zentriert */
  text-align: center;
  min-height: 30vh;          /* nimmt den größten Teil des Viewports ein */
  padding: 4rem 2rem;
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#intro h2 {
  color: var(--accent);
  font-size: 2rem;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

#intro p {
  max-width: 70ch;           /* begrenzt die Textbreite */
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text {
  max-width: 800px;
  line-height: 1.8;
  color: var(--muted);
}

.about-text h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* === About Section (Centered Style) === */
.about-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;      /* vertikal zentriert */
  align-items: center;          /* horizontal zentriert */
  min-height: 30vh;            /* nimmt den gesamten Bildschirm ein */
  text-align: center;
  background: var(--bg);        /* gleiches Farbschema wie Rest */
  color: var(--muted);
  padding: 4rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-centered h2 {
  color: var(--accent);
  font-size: 2.3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}

.about-centered p {
  max-width: 75ch;              /* bessere Lesbarkeit */
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-inner {
  max-width: 850px;
}

/* === Project Page Layout === */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 90vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 2rem;
  padding: 3rem 2rem;
}

.project-text {
  max-width: 600px;
  padding: 2rem;
}

.project-text h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-text p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: filter 0.4s ease;
}

.project-image img:hover {
  filter: brightness(1.05);
}

/* === Gallery === */
.project-gallery {
  padding: 5rem 2rem;
  background: #111;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.project-gallery h2 {
  color: var(--accent);
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* === Responsive === */
@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .project-text {
    order: 2;
    text-align: center;
    padding: 1rem;
  }
  .project-image {
    order: 1;
  }
}

/* === Project Hero Animation === */
.project-hero {
  overflow: hidden;
  position: relative;
}

.project-text,
.project-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1.2s ease;
}

.project-hero.visible .project-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
}

.project-hero.visible .project-image {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.5s;
}

/* initial positions */
.project-text {
  transform: translateX(-50px);
}
.project-image {
  transform: translateX(50px);
}

/* === Project Hero (fixed height, full view) === */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;

  min-height: 90vh;           /* Höhe an Bildschirm angepasst */
  max-height: 900px;          /* verhindert zu große Darstellung auf 4K */
  overflow: hidden;

  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Bild auf gleichmäßige Höhe bringen */
.project-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;           /* verhindert, dass Bild zu groß wird */
  object-fit: cover;
  border-radius: 8px;
  filter: brightness(0.95);
  transition: filter 0.4s ease;
}

.project-image img:hover {
  filter: brightness(1.05);
}

/* Textbereich bleibt lesbar und mittig */
.project-text {
  max-width: 600px;
  padding: 2rem;
}

.project-text h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.project-text p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Responsive: Bild unter Text auf Mobile */
@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
    min-height: auto;
    max-height: none;
  }

  .project-image img {
    max-height: 60vh;
  }
}

/* === Mouse-Move Parallax Effect === */
.hero {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

.hero-layer.hero-current {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* === Footer === */
.footer {
  background: #0f0f0f;
  color: var(--muted);
  padding: 3rem 2rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social .icon {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #777;
}

/* === Impressum Page Styling === */
.impressum {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
  line-height: 1.8;
  color: var(--muted);               /* sorgt für Lesbarkeit */
  background: var(--bg);             /* dunkler Hintergrund wie Rest */
}

.impressum h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.impressum p {
  margin-bottom: 1rem;
  color: #ddd;                       /* heller, besser lesbar auf dunklem Hintergrund */
}

.impressum strong {
  color: #fff;                       /* hebt Titel/Labels hervor */
}

.impressum a {
  color: var(--accent);
  text-decoration: none;
}

.impressum a:hover {
  text-decoration: underline;
}

/* === Impressum Sichtbarkeit Fix === */
body.theme-autumn .impressum {
  background: #0f0f0f;          /* dunkler Hintergrund */
  color: #e5e5e5 !important;    /* heller Text – zwingt Überschreibung */
  min-height: 100vh;
  padding: 6rem 2rem;
  line-height: 1.8;
}

body.theme-autumn .impressum h1,
body.theme-autumn .impressum h2 {
  color: var(--accent, #d4a373); /* nutzt dein Akzent-Orange oder Fallback */
  margin-bottom: 1rem;
}

body.theme-autumn .impressum p {
  color: #ddd !important;
  margin-bottom: 1rem;
}

body.theme-autumn .impressum a {
  color: var(--accent, #d4a373);
  text-decoration: none;
}

body.theme-autumn .impressum a:hover {
  text-decoration: underline;
}

/* === IMPRESSUM SICHTBARKEIT (HARTER FIX) === */
.impressum {
  background: #000 !important;         /* tiefschwarz */
  color: #fff !important;              /* weißer Text */
  position: relative;
  z-index: 10;
  opacity: 1 !important;               /* überschreibt fade-in */
  padding: 6rem 2rem;
  min-height: 100vh;
  line-height: 1.8;
}

.impressum h1, .impressum h2 {
  color: #d4a373 !important;           /* dein Akzent-Orange */
  margin-bottom: 1rem;
}

.impressum p, .impressum strong, .impressum a {
  color: #fff !important;              /* sichtbar, auch für Links */
}

.impressum a {
  text-decoration: underline;
}

.impressum a:hover {
  color: #ffb366 !important;
}

/* === Impressum final fix === */
.impressum {
  background: #000;
  color: #fff;
  padding: 6rem 2rem 4rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  position: static;          /* kein Relativ- oder Absolut-Layout */
  z-index: 1;                /* unter dem Footer */
  opacity: 1;
  min-height: auto;          /* keine feste Höhe mehr */
}

.impressum h1, .impressum h2 {
  color: #d4a373;
  margin-bottom: 1rem;
}

.impressum p {
  color: #ddd;
  margin-bottom: 1rem;
}

.impressum a {
  color: #d4a373;
  text-decoration: underline;
}

.impressum a:hover {
  color: #ffb366;
}

/* Abschnitt optisch sauber vom Footer abtrennen */
.footer {
  position: relative;
  z-index: 2;
  margin-top: 0;
  border-top: 1px solid #333;
}

/* === Kontaktseite === */
.contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  color: #ddd;
}

.contact h1 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info {
  margin-bottom: 3rem;
  line-height: 1.7;
  text-align: center;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Formular */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

.contact-form label {
  font-weight: 500;
  color: #eee;
}

.contact-form input,
.contact-form textarea {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-form .btn {
  align-self: flex-start;
  background: var(--accent);
  color: #0f0f0f;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
}

/* Karte */
.contact-map iframe {
  border-radius: 8px;
  filter: brightness(0.9);
}

/* === Kontaktseite Sichtbarkeit & Layout Fix === */
body.theme-autumn .contact {
  background: #000;             /* klarer Kontrast */
  color: #fff !important;       /* sichtbarer Text */
  opacity: 1 !important;        /* falls fade-in aktiv war */
  position: relative;
  z-index: 1;
  padding: 6rem 2rem 4rem;
  min-height: 100vh;
}

body.theme-autumn .contact h1,
body.theme-autumn .contact h2 {
  color: #d4a373;               /* dein Akzent-Orange */
  text-align: center;
  margin-bottom: 2rem;
}

body.theme-autumn .contact p,
body.theme-autumn .contact label,
body.theme-autumn .contact input,
body.theme-autumn .contact textarea {
  color: #eee !important;
}

body.theme-autumn .contact a {
  color: #d4a373;
  text-decoration: none;
}

body.theme-autumn .contact a:hover {
  text-decoration: underline;
}

/* Google Map Container */
.contact-map {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

/* === Kontaktseite Finales Layout === */
body.theme-autumn .contact {
  background: #000;
  color: #fff;
  opacity: 1 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

body.theme-autumn .contact h1 {
  color: #d4a373;
  margin-bottom: 2rem;
  text-align: center;
}

/* Kontaktinfos mittig */
.contact-info {
  max-width: 600px;
  margin: 0 auto 3rem auto;
  line-height: 1.8;
  font-size: 1.05rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info a {
  color: #d4a373;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Formular */
.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto 4rem auto;
}

.contact-form label {
  color: #ddd;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #d4a373;
  outline: none;
}

.contact-form .btn {
  background: #d4a373;
  color: #0f0f0f;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
}

/* Google Map */
.contact-map {
  margin-top: 3rem;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  filter: brightness(0.9);
}

/* Mobile Anpassung */
@media (max-width: 700px) {
  body.theme-autumn .contact {
    padding: 5rem 1.5rem 3rem;
  }

  .contact-form,
  .contact-info {
    max-width: 90%;
  }
}

/* === Floating Notch Header === */
.notch-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: transparent;
  padding-top: 1rem;
}

/* zentrale "Notch" Box */
.notch-container {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.6rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Floating Notch Header (zentriert schwebend) === */
.notch-header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: transparent; /* keine volle Breite mehr */
  z-index: 1000;
}

/* zentrale "Notch"-Box */
.notch-container {
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.7rem 2.5rem;

  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);

  width: auto;               /* <- kein Vollbalken mehr */
  max-width: 90vw;           /* Begrenzung für kleine Screens */
}

/* leichte Outline (Glow) */
.notch-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent, #d4a373), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.4;
}

/* Navigation */
.notch-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.notch-nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.notch-nav a:hover {
  color: var(--accent, #d4a373);
}

/* Logo mittig */
.notch-logo {
  margin: 0 1.5rem;
}

.notch-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
  filter: brightness(1.1);
}

.notch-logo img:hover {
  transform: scale(1.05);
}

/* === Mobile Adaptive Notch (kein Burger) === */
@media (max-width: 900px) {

  /* Header bleibt fixiert, aber kleiner */
  .notch-header {
    top: 0.5rem;
  }

  .notch-container {
    padding: 0.3rem 1.2rem;
    border-radius: 35px;
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transform: scale(0.85); /* leicht verkleinert */
    transition: all 0.3s ease;
  }

  .notch-logo img {
    height: 36px;
    width: auto;
  }

  .notch-nav {
    gap: 1rem;
  }

  .notch-nav a {
    font-size: 0.9rem;
    color: #f0f0f0;
  }

  /* Glow dezenter auf Mobile */
  .notch-container::before {
    opacity: 0.25;
  }

  /* Optional: bei Scroll etwas kleiner (Apple-like Effekt) */
  body.scrolled .notch-container {
    transform: scale(0.8);
    background: rgba(15, 15, 15, 0.45);
  }
}

/* === Mobile Full-Width Header mit zentriertem Logo === */
@media (max-width: 900px) {
  .notch-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 0.6rem 1rem;
    z-index: 1000;
  }

  .notch-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  /* Nav bleibt full width, aber zentriert mit Grid */
  .notch-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Links | Logo | Rechts */
    align-items: center;
    width: 100%;
  }

  /* Logo mittig */
  .notch-logo {
    grid-column: 2;
    text-align: center;
  }

  .notch-logo img {
    height: 40px;
    width: auto;
    display: inline-block;
  }

  /* Linke Seite: Home + Über uns */
  .notch-nav a:nth-child(1),
  .notch-nav a:nth-child(2) {
    grid-column: 1;
    justify-self: start;
    margin-right: 0.8rem;
  }

  /* Rechte Seite: Projekte + Kontakt */
  .notch-nav a:nth-child(4),
  .notch-nav a:nth-child(5) {
    grid-column: 3;
    justify-self: end;
    margin-left: 0.8rem;
  }

  .notch-nav a {
    color: #f5f5f5;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .notch-nav a:hover {
    color: var(--accent, #ff7a00);
  }

  /* Bei ganz kleinen Bildschirmen (unter 600px) Schrift etwas kleiner */
  @media (max-width: 600px) {
    .notch-nav a {
      font-size: 0.8rem;
    }

    .notch-logo img {
      height: 36px;
    }
  }
}
/* === Burger Menü und Mobile Overlay === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  z-index: 2001;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation bei Klick */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Overlay Menü */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  gap: 2rem;
  animation: fadeIn 0.3s ease forwards;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent, #ff7a00);
}

/* Einfache Fade-Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sichtbarkeit nur auf Mobile */
@media (max-width: 900px) {
  .burger { display: flex; }
  .notch-nav a { display: none; } /* normale Links ausblenden */
}

/* === FIX: Mobile Menü korrekte Position & Zentrierung === */
@media (max-width: 900px) {
  /* Menü soll wirklich über ALLES liegen */
  .mobile-menu {
    position: fixed;
    top: 0;            /* nicht vom Header überlagert */
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    justify-content: center;  /* mittig vertikal */
    align-items: center;      /* mittig horizontal */
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000; /* höher als Header */
    gap: 2.5rem;
    animation: fadeIn 0.3s ease forwards;
  }

  /* Button bleibt sichtbar, über Menü */
  .burger {
    position: fixed;
    right: 1.5rem;
    top: 1.2rem;
    z-index: 4000;
  }

  /* Bei geöffnetem Menü verhindern, dass man scrollt */
  body.menu-open {
    overflow: hidden;
  }
}

/* === FINALER FIX: Mobile-Menü wirklich mittig und korrekt über allem === */
@media (max-width: 900px) {
/* === Burger Menü und Mobile Overlay (Final Fix) === */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;        /* fixiert über allem */
  right: 1.5rem;
  top: 1rem;
  z-index: 4001;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation bei Klick */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Mobile Overlay-Menü === */
.mobile-menu {
  position: fixed;
  inset: 0; /* deckt wirklich den gesamten Bildschirm ab */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 4000; /* über Header */
  gap: 2.5rem;
  padding: 2rem;
  text-align: center;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent, #d4a373);
}

/* === Sichtbarkeit nur auf Mobile === */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  /* Verstecke Standard-Nav */
  .notch-nav a {
    display: none;
  }
}

/* === Wenn Menü offen, Body nicht scrollen === */
body.menu-open {
  overflow: hidden;
}
}