/* ========== Reset & Basics ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg-dark: rgba(0,0,0,.65);
  --bg-darker: rgba(0,0,0,.85);
  --bg-hover: rgba(255,255,255,.08);
  --accent: #ffb344;
  --text: #ffffff;
  --muted: rgba(255,255,255,.6);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}

html, body { height: 100%; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: url('https://fox-com.net/Menau/ddkamji-19bcf79e-a050-4e8b-a3b6-f0f0c691ef57.png') no-repeat center center fixed;
  background-size: cover;
}

/* Dark overlay + leichter Blur */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
  z-index: -1;
}

/* ========== Links & Focus ========== */
a{ color: var(--text); text-decoration: none; }
a:hover{ text-decoration: underline; }
:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========== Navbar ========== */
header{ position: sticky; top: 0; z-index: 1500; }

.navbar{
  width: min(1100px, 96%);
  margin: 12px auto;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--bg-dark);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-title{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo: foxcom.png in 70px */
.logo-image{
  width: px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
  transition: transform .2s ease;
}
.logo-image:hover{ transform: scale(1.05); }

.mobile-toggle{
  display: none; /* mobil via responsive.css sichtbar */
  font-size: 28px;
  line-height: 1;
  user-select: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
}
.mobile-toggle:hover{ background: var(--bg-hover); }

/* ========== Nav-Links (Desktop-Default) ========== */
.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li{ position: relative; }

.nav-links > li > a,
.nav-links > li > span{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.nav-links > li > a:hover,
.nav-links > li > span:hover{
  background: var(--bg-hover);
}

/* Close-Pfeil-Element existiert, ist aber nur mobil sichtbar */
.nav-links li.close-menu{ display: none; }

/* ========== Google Translate in Navbar ========== */
.nav-links > li.gtw{
  padding: 0 6px;
  display: flex;
  align-items: center;
}
#google_translate_element{
  display: flex;
  align-items: center;
  height: 100%;
}
#google_translate_element .goog-te-gadget{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: inherit;
}
#google_translate_element .goog-te-gadget-simple{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  color: var(--text) !important;
}
#google_translate_element .goog-te-combo{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 6px 10px;
}
#google_translate_element .goog-logo-link{
  color: var(--muted) !important;
}

/* ========== Dropdown (Desktop) ========== */
.dropdown-content{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-darker);
  border-radius: 12px;
  padding: 6px;
  list-style: none;
  display: none;         /* Hover/Focus zeigt es an (Desktop) */
  box-shadow: var(--shadow);
}
.dropdown-content li{ border-radius: 8px; }
.dropdown-content a{
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
}
.dropdown-content a:hover{ background: var(--bg-hover); }

/* Hover & Tastaturbedienung */
.nav-links > li:hover > .dropdown-content,
.nav-links > li:focus-within > .dropdown-content{ display: block; }

/* ========== Main / Hero ========== */
#main-wrapper{
  width: min(1100px, 96%);
  margin: 18px auto 60px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-height: 50vh;
}

.hero{
  text-align: center;
  padding: 30px 10px 10px;
}
.hero h1{ font-size: clamp(26px, 3.5vw, 42px); margin-bottom: 8px; }
.hero p{ color: var(--muted); }

/* ========== Galerie (4 Mini-Thumbnails pro Reihe) ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 90%;
  margin: 20px auto;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* ===== Bild-Modal: global zentriert, knapp über der Navbar ===== */
.modal{
  display: none;                 /* via JS -> flex */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 3000;                 /* Header hat 1500 – das reicht */
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 12px 12px;
  align-items: center;
  justify-content: center;
}

.modal-content{
  display: block;
  margin: 0;                     /* nicht oben kleben */
  max-width: 96vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;           /* immer vollständig sichtbar */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* Close-Button oben rechts, etwas tiefer (Notch beachten) */
.modal .close{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: 12px;
  font-size: 38px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.6);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 3010;                 /* knapp über Pfeilen & Bild */
}

/* Vollbild-Navigation (links/rechts) – zeigt nur, wenn Buttons per JS existieren */
.modal .modal-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 72px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  user-select: none;
  z-index: 3005;
  backdrop-filter: blur(2px);
}
.modal .modal-prev{ left: 12px; }
.modal .modal-next{ right: 12px; }

@media (min-width: 1025px){
  .modal .modal-nav{ width: 56px; height: 88px; font-size: 40px; }
}

/* ========== Content-Layouts (Über mich) ========== */
.ueber-container{ display: block; }
.ueber-text{ margin-top: 10px; }
.ueber-image img{
  width: 100%;
  border-radius: 10px;
  display: block;
  margin: 10px 0;
  box-shadow: var(--shadow);
}

/* Tabellen, Listen etc. */
ul{ padding-left: 18px; }
ul li{ margin: 6px 0; }

/* ========== Footer ========== */
.footer{
  width: min(1100px, 96%);
  margin: 0 auto 24px;
  padding: 14px 16px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.footer a{ color: var(--accent); }
.footer a:hover{ text-decoration: underline; }

/* ========== Kleine Helfer ========== */
.hidden{ display: none !important; }

/* ========== Desktop-Verfeinerungen (klein) ========== */
@media (min-width: 1025px){
  .nav-links > li > a,
  .nav-links > li > span{ padding: 10px 16px; }
}

/* Google Translate: Text IMMER weiß, auch bei Googles obfuskierten Klassen */
#google_translate_element .goog-te-gadget-simple,
#google_translate_element .goog-te-gadget-simple *,
#google_translate_element .goog-te-combo,
#google_translate_element .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed,
#google_translate_element .goog-te-gadget-simple [class^="VIpgJd-"],
#google_translate_element .goog-te-gadget-simple [class*=" VIpgJd-"] {
  color: #fff !important;
  fill: #fff !important;
}

/* optional: Google-Logo-Link auch auf weiß */
#google_translate_element .goog-logo-link {
  color: #fff !important;
}
/* Google Translate – Box grau (#363636), Text weiß, Border neutral */
/* trifft die "Simple"-Variante inkl. obfuskierten Klassen */
#google_translate_element .goog-te-gadget-simple,
#google_translate_element .goog-te-gadget-simple .VIpgJd-ZVi9od-vH1Gmf,
#google_translate_element .goog-te-gadget-simple [class^="VIpgJd-"][class*="-vH1Gmf"] {
  background-color: rgba(54,54,54,0.9) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  text-decoration: none !important;
}

/* Text + Icon immer weiß, auch bei künftigen Klassen */
#google_translate_element .goog-te-gadget-simple,
#google_translate_element .goog-te-gadget-simple *,
#google_translate_element .goog-te-gadget-simple .VIpgJd-ZVi9od-xl07Ob-lTBxed,
#google_translate_element .goog-te-gadget-simple [class^="VIpgJd-"],
#google_translate_element .goog-te-gadget-simple [class*=" VIpgJd-"] {
  color: #fff !important;
  fill: #fff !important;
}

/* Hover/Focus */
#google_translate_element .goog-te-gadget-simple:hover,
#google_translate_element .goog-te-gadget-simple .VIpgJd-ZVi9od-vH1Gmf:hover {
  filter: brightness(1.05);
}

/* Falls die <select>-Variante aktiv ist, ebenfalls grau */
#google_translate_element .goog-te-combo {
  background-color: rgba(54,54,54,0.9) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
}
