:root {
  --bg: #0e1013;
  --surface: #12161b;
  --surface-2: #0b0f14;
  --muted: #8a96a6;
  --text: #e9f0f7;
  --brand: #ffd400;
  --outline: #1d2430;
  --link: #8ab4ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* Base */
* { box-sizing: border-box; }

  html, body {
   overflow-x: hidden;
   margin:  0;
  }

/* Sticky Footer (global, wirkt auf alle Seiten mit <main>) */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main { flex: 1 0 auto; }

.footer { margin-top: auto; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: url('Salzburg.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(11,15,20,.65);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(29,36,48,.7);
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand-badge{
  display:inline-grid; place-items:center;
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg,var(--brand),#ffe473);
  color:#0a0f17; font-weight:900; box-shadow:var(--shadow);
}
.brand-title{ font-weight:800; color:#eaf2ff; text-decoration:none; }
.brand:hover .brand-title{ color:var(--brand); }

/* Nav */
.nav{ display:flex; align-items:center; gap:6px; }
.nav-link{
  background:transparent; border:0; color:#eaf2ff;
  padding:10px 12px; border-radius:10px; cursor:pointer; font-weight:600;
}
.nav-link:hover{ background:rgba(20,26,35,.6); }
.nav-item{ position:relative; }

.menu{
  position:absolute; top:48px; left:0; min-width:320px;
  background:rgba(14,20,28,.95); border:1px solid var(--outline);
  border-radius:14px; box-shadow:var(--shadow); padding:12px;
  display:none; grid-template-columns:1fr 1fr; gap:10px;
}
.menu a{ background:#0b1017; border:1px solid #1a2230; border-radius:12px; padding:10px; display:block; color:#cfe3ff; }
.has-menu:hover .menu, .has-menu:focus-within .menu{ display:grid; }

/* mobile nav */
.nav-toggle{ display:none; background:transparent; border:0; cursor:pointer; }
.nav-toggle .bar{ display:block; width:22px; height:2px; background:#e8f1ff; margin:5px 0; }

/* HERO */
.hero{ min-height:70vh; display:grid; place-items:center; color:#fff; overflow:hidden; }
.hero-inner{ position:relative; z-index:1; width:100%; max-width:1200px; padding:80px 24px 60px; }
.hero-glass{
  max-width:3000px; max-height:3000px;
  background:rgba(15,22,36,.75); border:1px solid rgba(255,255,255,.08);
  border-radius:22px; padding:48px 40px; backdrop-filter:saturate(140%) blur(8px);
  box-shadow:0 16px 50px rgba(0,0,0,.4);
}
.hero h1{ font-size:clamp(32px,5vw,56px); line-height:1.05; margin:0 0 12px; }
.hero .accent{ color:var(--brand); }
.hero p{ max-width:760px; margin:0; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:12px; font-weight:600; border:1px solid transparent; }
.btn-primary{ background:var(--brand); color:#0b0f14; }
.btn-ghost{ background:transparent; color:#fff; border-color:#273043; }

/* Stats */
.stats{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px;
  max-width:1200px; margin:16px auto 0; padding:0 24px;
}
.stat{ background:rgba(12,18,26,.9); border:1px solid var(--outline); border-radius:14px; padding:14px; text-align:center; }
.stat b{ font-size:22px; display:block; }

/* Sections */
.section{ max-width:1200px; margin:20px auto; padding:64px 24px; background:rgba(10,15,20,0.85); border-radius:16px; }
.section-alt{ background:rgba(12,18,26,0.9); }
.section-head{ margin-bottom:18px; }
.section-head h2{ margin:0 0 6px; font-size:28px; }
.section-head p{ margin:0; color:#c2cfdd; }

/* Cards */
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.card{ background:var(--surface); border:1px solid var(--outline); border-radius:16px; padding:16px; }
.card h3{ margin:0; }
.card p{ margin:8px 0 0; color:#c8d3e1; }

/* Projekte (falls auf Startseite wieder genutzt) */
.carousel{ position:relative; }
.carousel-btn{ position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:999px; border:1px solid #2a3345; background:#0b1119; color:#eaf2ff; cursor:pointer; }
.carousel-btn.prev{ left:-4px; } .carousel-btn.next{ right:-4px; }
.carousel-track{ display:grid; grid-auto-flow:column; grid-auto-columns:calc(33.333% - 16px); gap:16px; overflow:hidden; scroll-behavior:smooth; }
.project{ background:var(--surface); border:1px solid var(--outline); border-radius:16px; overflow:hidden; }
.project-thumb{ height:180px; background:#111; background-image:var(--img); background-size:cover; background-position:center; }
.project-meta{ padding:12px; }
.project-meta h3{ margin:0 0 6px; }

/* Galerie */
.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.gallery-grid img{ width:100%; height:220px; object-fit:cover; border-radius:12px; }
.gallery-viewer img{ max-width: 90vh; max-height: 90vh; object-fit: contain; display: block; margin: auto; }


/* Grid/Listen */
.grid.two{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.panel{ background:var(--surface); border:1px solid var(--outline); border-radius:16px; padding:16px; }
.ticks{ padding-left:18px; }
.ticks li{ margin:6px 0; }

/* Footer */
.footer{ margin-top:56px; border-top:1px solid var(--outline); background:#0b0f14; padding:24px; color:#a7b2c1; }
.fcols{ max-width:1200px; margin:0 auto; display:flex; gap:24px; justify-content:space-between; align-items:flex-start; }
.brandline{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.fnav{ display:grid; grid-template-columns:repeat(3,minmax(160px,1fr)); gap:16px; }
.fnav .col{ display:flex; flex-direction:column; gap:6px; }
.fnav h4{ margin:0 0 6px; color:#e9f0f7; }
.copy{ text-align:center; margin-top:12px; }

/* Kontaktformular */
.contact{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
  background:var(--surface); border:1px solid var(--outline); border-radius:16px; padding:16px;
}
.contact .full{ grid-column:1 / -1; }
.contact input, .contact textarea{
  width:100%; border:1px solid #243049; background:#0b1119; color:#eaf2ff; padding:12px; border-radius:10px; outline:none;
}
.contact input::placeholder, .contact textarea::placeholder{ color:#9bb0c9; }
.contact input:focus, .contact textarea:focus{ border-color:#35507a; }
.contact .btn{ justify-self:start; }

/* ---------- Responsive Tweaks ---------- */
@media (max-width:1100px){
  .cards{ grid-template-columns:repeat(2,1fr); }
  .carousel-track{ grid-auto-columns:calc(50% - 12px); }
  .grid.two{ grid-template-columns:1fr; }
}

@media (max-width:720px){
  .stats{ grid-template-columns:repeat(2,1fr); padding:0 16px; }
  .cards{ grid-template-columns:1fr; }
  .carousel-track{ grid-auto-columns:100%; }
  .nav{
  display:none;
  position:fixed; top:64px; left:0; right:0;
  background:rgba(12,18,26,.96);
  border:1px solid var(--outline);
  border-top:0;
  border-radius:0 0 14px 14px;
  padding:8px; z-index:80;
}
  .nav.is-open{ display:flex; flex-direction:column; gap:4px; }
  .nav a { white-space: normal; }
  .nav-toggle{ display:block; }
  .has-menu .menu{ position:static; display:grid; }

  .hero-inner{ padding:72px 16px 64px; }
  .hero-glass{ padding:24px 18px; }
  .hero h1{ font-size:clamp(28px,8vw,40px); }
  .btn{ width:100%; }
  .hero-cta .btn + .btn{ margin-left:8px; }
}

@media (max-width:480px){
  .stats{ grid-template-columns:1fr; }
  .brand-badge{ width:36px; height:36px; }
  .brand-title{ font-size:15px; }
}

@media (max-width: 720px){
  .lb-prev, .lb-next { display: none; }
  .lb-close { top: -48px; }
}






/* Galerie ā€“ sauberes Grid + Hover */
.gallery-better {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.g-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--outline);
  background: #0b1119;
}

.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;   /* einheitliche Kacheln */
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .25s ease;
}

.g-item:hover img {
  opacity: .95;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.lightbox img {
  max-width: 98vw;       /* vorher 90vw → nutzt mehr Bildschirmbreite */
  max-height: 75vh;      /* vorher 80dvh → etwas weniger Höhe = mehr Querformat-Eindruck */
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s ease;
  cursor: zoom-in;
  touch-action: none;         /* allow pinch/drag */
  will-change: transform;         /* allow pinch/drag gestures */
}

.lightbox img.is-panzoom { cursor: grab; }
.lightbox img.is-panzoom.dragging { cursor: grabbing; }
.lightbox img.is-zoomed{ transform:scale(2); cursor:zoom-out; }

.lightbox.is-open { display: flex; }

  /* === Lightbox: gleicher runder Rahmen oben & unten === */
  .lightbox-inner {
   /* Rahmen/Padding um das Bild – sorgt für sichtbaren unteren Bogen */
   padding: 12px 12px 16px;
   background: rgba(8,12,18,0.92);
   border-radius: 18px;
   box-shadow: 0 14px 44px rgba(0,0,0,.45);
  }

  /* Bild rückt um das Padding ein und bekommt den gleichen Radius */
  .lightbox img {
   border-radius: 12px;
   /* Abzug des Rahmen-Paddings, damit unten nichts anstößt */
   max-width: calc(98vw - 24px);
   max-height: calc(75vh - 28px);
   width: auto;
   height: auto;
   object-fit: contain;
  }

  /* Mobile etwas kompakter, gleicher Effekt */
  @media (max-width: 720px){
   .lightbox-inner { padding: 8px 8px 12px; border-radius: 16px; }
   .lightbox img { 
     max-width: calc(96vw - 16px);
     max-height: calc(80vh - 20px);
   }
  }

  /* === Lightbox: Buttons & Close wieder sichtbar/anklickbar === */
.lightbox-inner{
  position: relative;          /* Bezug für absolute Buttons */
  overflow: visible;           /* Pfeile/X dürfen über den Rand ragen */
  z-index: 2;
}

/* Bild liegt unter den Controls */
.lightbox img{
  display: block;
  z-index: 1;
}

/* Grundstil der Buttons */
.lb-btn,
.lb-close{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(8, 17, 25, .85);
  color: #eaf2ff;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  z-index: 5;                  /* über dem Bild & Container */
  cursor: pointer;
  pointer-events: auto;
}

/* Pfeile links/rechts – außen neben dem Rahmen */
.lb-btn{ top: 50%; transform: translateY(-50%); }
.lb-prev{ left: -56px; }
.lb-next{ right: -56px; }

/* Close oben rechts – leicht außerhalb des Rahmens */
.lb-close{ top: -56px; right: -8px; }

/* Mobile: Buttons nach innen holen, damit sie nicht abgeschnitten werden */
@media (max-width: 720px){
  .lb-prev{ left: 8px; }
  .lb-next{ right: 8px; }
  .lb-close{ top: 8px; right: 8px; }
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid #2a3345;
  background: #0b1119;
  color: #eaf2ff;
  cursor: pointer;
}

.lb-prev { left: -56px; }
.lb-next { right: -56px; }

.lb-close {
  position: absolute;
  top: -56px; right: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid #2a3345;
  background: #0b1119;
  color: #eaf2ff;
  cursor: pointer;
}

/* Mobile Anpassungen */
@media (max-width: 720px){
  .lb-prev, .lb-next { display: none; }
  .lb-close { top: -48px; }
}e

/* === Impressum Hero === */
.hero-impressum{
  position: relative;
  min-height: clamp(70vh, 78vh, 86vh);
  display: grid;
  place-items: center;
  background: url("Salzburg.jpg") center/cover no-repeat fixed;
  /* Falls du schon ein globales Salzburg-Hintergrundbild hast, kannst du diese Zeile entfernen. */
}

.hero-impressum .hero-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 65% 20%, rgba(0,0,0,.25), transparent 60%),
    linear-gradient(to bottom, rgba(10,14,22,.55), rgba(10,14,22,.75));
  backdrop-filter: blur(2px);
}

.impressum-wrap{
  position: relative;
  width: min(100%, 1100px);
  padding: clamp(16px, 4vw, 32px);
}

.impressum-card{
  margin-inline: auto;
  width: min(100%, 820px);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 40px);
  background: rgba(18, 22, 30, .72);
  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  color: #e8eef7;
}

.impressum-title{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.impressum-title h1{
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: .2px;
}

.uid-pill{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe58a, #ffc800);
  color: #111;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 16px rgba(0,0,0,.25);
  white-space: nowrap;
}

.soft{
  border: 0;
  height: 1px;
  margin: 16px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

.impressum-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 3vw, 28px);
}

.impressum-block h3{
  margin: 0 0 6px 0;
  font-size: clamp(16px, 2.6vw, 18px);
  color: #bcd0ea;
  font-weight: 600;
  letter-spacing: .3px;
}

.impressum-block p,
.impressum-block address{
  margin: 0;
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.6;
  color: #e8eef7;
  font-weight: 500;
}

.impressum-block address{ font-style: normal; }

.stamp{
  margin-top: 22px;
  font-size: 14px;
  color: #9bb0c9;
  opacity: .9;
}

/* Responsive */
@media (max-width: 860px){
  .impressum-grid{ grid-template-columns: 1fr; }
  .impressum-card{ width: min(100%, 680px); }
}
@media (max-width: 520px){
  .uid-pill{ width: 100%; justify-content: center; }
}

/* Links fĆ¼r Kontaktinfos */
a.highlight, 
.footer .col a,
.panel a {
  color: #FFD700; /* z. B. Gelb passend zum Logo */
  text-decoration: none;
  font-weight: 600;
}

a.highlight:hover, 
.footer .col a:hover,
.panel a:hover {
  color: #ffffff; /* beim Hover WeiĆ */
  text-decoration: underline;
}

/* Projekte: Bild im Overlay immer vollstĆ¤ndig zeigen */
.page-projekte img.__fit {
  width: auto !important;
  height: auto !important;
  max-width: 96vw !important;
  max-height: 96vh !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px){
  body { background-attachment: scroll; }
}

/* === PROJECT GALLERY PANEL (desktop + tablet) === */
.project-gallery{
  background: rgba(12,18,28,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
  border-radius: 18px;
  padding: 22px;
  margin: 24px auto;
  max-width: 1200px;               /* <<< verhindert überbreite Galerie */
}

/* Grid: skaliert schön, aber Kacheln werden nicht zu breit */
.gallery-grid{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Thumbs: gleichmäßige Höhe, saubere Crops */
.g-item img{
  width: 100%;
  aspect-ratio: 16 / 9;            /* gleiches Seitenverhältnis */
  object-fit: cover;               /* füllt die Kachel ohne zu verzerren */
  border-radius: 14px;
  display: block;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}

/* === LIGHTBOX universal contain + dunkler BG === */
.lightbox,
.lb-backdrop,
.glightbox-container,
.pswp__bg,
.slbOverlay {
  background: rgba(0,0,0,0.92) !important;
}

.lightbox img,
.lb-image,
.glightbox-container .gslide-image img,
.pswp__img,
.slbImage {
  max-width: 92vw !important;
  max-height: 86vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;   /* kein Strecken, kein “hochkant gequetscht” */
  border-radius: 12px;
}







/* Part of mobile support*/
/* ===== FINAL MOBILE OVERRIDES (last in file) ===== */
@media (max-width: 820px){

    /* Responsive Headline-Größen – bricht nicht auf Mobil */
  h1 { font-size: clamp(28px, 6vw, 56px); line-height: 1.1; }
  h2 { font-size: clamp(22px, 4.5vw, 36px); line-height: 1.2; }

  /* Tasten groß genug */
  .button, .btn {
    min-height: 44px;
   padding: 12px 18px;
   border-radius: 12px;
  }

   /* Footer-Spalten */
  .footer-grid {
   display: grid;
   gap: 16px;
   grid-template-columns: 1fr 1fr;
  }
  @media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  /* Verhindert Einrücken rechts, falls ein padding das Layout schiebt */
  .footer, .footer .container { padding-left: 16px; padding-right: 16px; }
  .footer a { word-break: break-word; }


  /* 0) Never allow sideways scroll */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 1) Major wrappers must not exceed viewport */
  .topbar, .hero, .section, .panel, .container, .grid, .cards, .stats,
  .footer{
    width: 100% !important;
    max-width: 100% !important;
  }
  .container, .section, .footer { padding-left:16px !important; padding-right:16px !important; }
  .panel { padding:14px !important; border-radius:16px !important; }


  /* 3) Any header dropdown / mega menu: full-width sheet (no overflow) */
  header .menu, header .dropdown, header .mega {
    position: fixed !important;
    left:0 !important; right:0 !important; top:64px !important;
    width:100% !important; max-width:100% !important;
    max-height: calc(100dvh - 64px) !important; overflow:auto !important;
    background: rgba(12,18,26,.96) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-top:0 !important; border-radius: 0 0 16px 16px !important;
    display:block !important;
  }
  header .menu a, header .dropdown a, header .mega a { white-space: normal !important; }

  /* 4) Background behaves nicely on phones */
  body{
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }

  /* 5) Media always fits */
  img, video { max-width:100% !important; height:auto !important; }

  /* 6) Lightbox: show full image; tap-to-zoom (CSS only, JS toggles .is-zoomed) */
  .lightbox img{
    max-width:90vw !important; max-height:80dvh !important;
    width:auto !important; height:auto !important; object-fit:contain !important;
    transition:transform .25s ease !important; cursor:zoom-in;
  }
  .lightbox img.is-zoomed{ transform:scale(2) !important; cursor:zoom-out; }
  }

  .gallery img, .card img, img.thumb{
   width:100%;
   height:100%;
   object-fit:cover;
   image-rendering:auto;       /* override any pixelated */
   -ms-interpolation-mode:bicubic; /* old IE, harmless elsewhere */
   filter:none;
   transform:none;
  }

  /* --- Fix blurry gallery thumbs --- */
/* --- Fix blurry gallery thumbs & keep correct proportions --- */
  .gallery-grid img,
  .g-item img {
   width: 100%;
   aspect-ratio: 16 / 9;        /* >>> Querformat für alle Thumbnails <<< */
   object-fit: cover;           /* Bild füllt Rahmen, bleibt ungestreckt */
   image-rendering: auto;
   transform: none;
   filter: none;
   border-radius: 12px;         /* leicht abgerundet, optional */
   display: block;
  }


  /* if you ever use background-image thumbs */
  .bg-thumb {
   background-size: cover;
   background-position: center;
   image-rendering: auto;
  }

  /* Basis – verhindert Layout-"Hüpfer" und Überbreite */
  * { box-sizing: border-box; }
  html, body { width: 100%; margin: 0; }
  img, video { max-width: 100%; height: auto; display: block; }
  section, .container, .wrapper { min-width: 0; }

  /* Offcanvas / Dropdown-Menü nur mobil als Vollfläche unter der Navbar */
  @media (max-width: 992px) {
   .mobile-nav-open { overflow: hidden; }           /* am <body> toggeln, wenn Menü offen */
   .site-header { position: sticky; top: 0; z-index: 50; }

    .mobile-menu {
     position: fixed;
     left: 0; right: 0;
     top: var(--nav-h, 64px);                       /* Höhe deiner Navbar */
     bottom: 0;
     background: rgba(10,15,25,0.96);
     -webkit-backdrop-filter: blur(2px);
     backdrop-filter: blur(2px);
     overflow: auto;
     padding: 16px;
     z-index: 100;                                  /* über dem Content, unter dem Menü-Button */
   }

   /* Karten/Links im Menü schön stapeln */
   .mobile-menu .menu-item {
     display: block;
     padding: 14px 16px;
     border-radius: 12px;
     background: #0f1420;
     border: 1px solid rgba(255,255,255,0.08);
     margin-bottom: 12px;
    }

   /* 2) Footer: works for both index (.fcols) and other pages (.footer .cols) */
  .footer .cols,
  .fcols {
   display: grid !important;
   grid-template-columns: 1fr !important;  /* alles untereinander */
   gap: 16px !important;
   align-items: start !important;
  }

  .footer .cols > *,
  .fcols > * {
   width: 100% !important;
   max-width: 100% !important;
   min-width: 0 !important;
  }

  /* Quicklinks: NICHT rechts, sondern unter der ersten Spalte */
  .fnav {
   display: grid !important;
   grid-template-columns: 1fr !important;  /* eine Spalte auf Phones */
   gap: 12px !important;
  }

  /* optional: bei etwas breiteren Phones zwei Spalten */
  @media (min-width: 560px) and (max-width: 820px){
   .fnav { grid-template-columns: 1fr 1fr !important; }
  }

  /* saubere Ränder */
  .footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Gallery – tablet/phone */
.gallery-grid{ grid-template-columns: 1fr 1fr !important; }
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr !important; }
}
