@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root{
    --primary: #1b1b1b;      /* Anthrazit */
    --secondary: #0b0b0b;    /* Schwarz */
    --accent: #CBA135;       /* Gold */
    --light: #f7f7f7;
    --dark: #0b0b0b;
    --champagne: #CBA135;
    --navy-deep: #1b1b1b;
    --navy-mid: #0f0f10;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #141414 0%, #0b0b0b 55%, #000 100%);
  color:#eaeaea;
}

.navbar{
  position: sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(27,27,27,.92), rgba(11,11,11,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,161,53,.18);
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.navbar > ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar > ul li {
    position: relative;
    margin-left: 0;
}

.navbar > ul li a,
.navbar > ul li span {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar > ul li a[aria-current="page"] {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

.navbar > ul li a:hover {
    color: var(--accent);
}

.dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a{ color: var(--accent); text-decoration:none; }

.navbar > ul li:hover > .dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    height: 60vh;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
}

.section{
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section p {
    margin-bottom: 1rem;
    /* Center align paragraphs within sections to match the body text alignment */
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: #374151;
}

.cta {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.cta h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cta p {
    margin-bottom: 1rem;
}

.cta a {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.cta a:hover {
    background-color: #c77a00;
}

.footer{
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(11,11,11,.98), rgba(0,0,0,1));
  border-top: 1px solid rgba(203,161,53,.20);
  color:#eaeaea;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.footer h4 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer a {
    color: #f0f0f0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
}

.footer a:hover {
    color: var(--accent);
}

.phone {
    font-weight: 600;
}

.logo-img-header {
    height: 70px;
    width: auto;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.cta-phone{
  background: linear-gradient(180deg, var(--accent), #a97f21);
  color:#111;
  font-weight:700;
  padding:10px 14px;
  border-radius:999px;
}

.cta-phone:hover {
    background-color: #c77a00;
}

/* Override text alignment for header and footer.
   The body has been set to center-align text globally. These selectors restore
   the default left alignment for the navigation bar (.navbar) and footer,
   ensuring they remain unaffected. */
.navbar,
.footer{
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(11,11,11,.98), rgba(0,0,0,1));
  border-top: 1px solid rgba(203,161,53,.20);
  color:#eaeaea;
}

.navbar > ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar{
  position: sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(27,27,27,.92), rgba(11,11,11,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,161,53,.18);
}

.navbar > ul li {
    margin-left: 0;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar{
  position: sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(27,27,27,.92), rgba(11,11,11,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,161,53,.18);
}
    .nav-toggle {
        display: block;
    }
    .navbar > ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 2rem;
    }
    .navbar > ul.open {
        display: flex;
    }
    .navbar > ul li {
        margin: 0.5rem 0;
    }
    .logo-img-header {
        height: 50px;
    }
    .hero {
        height: 40vh;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 1.1rem;
    }
}

/* --- Zentrierung nur für Inhaltsbereiche --- */
.hero,
.section,
.cta {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .hero,
    .section,
    .cta {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}


/* --- Dropdown farblich & verhaltensgleich wie CTA-Phone --- */
.dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.dropdown-menu li a { color: #fff; }
.dropdown-menu li a:hover { background-color: #c77a00; color: #fff; }

/* Per Klick (mobile) anzeigen, wenn .open-dropdown via JS gesetzt ist */
.navbar > ul li.open-dropdown > .dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

/* Mobile: Dropdown in die vertikale Liste integrieren */
@media (max-width: 768px) {
  .dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
  .dropdown-menu li a { padding: 0.5rem 0.75rem; }
}


/* === Global Mobile Overflow Fix (added) === */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Prevent horizontal scroll due to long words/elements */
body{ overflow-x: hidden; }

/* Media elements never overflow */
img, video, svg, canvas { max-width: 100%; height: auto; }

/* Allow long German compound words to wrap and hyphenate */
:where(h1,h2,h3,h4,h5,h6,p,li,a,button,th,td,span,div){
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Navigation can wrap instead of overflowing */
.navbar > ul { flex-wrap: wrap; }

/* Optional: fluid heading sizes for safety on tiny screens */
@media (max-width: 480px) {
  .section h2 { font-size: clamp(1.25rem, 6.5vw, 1.6rem); line-height: 1.25; }
}



/* === Contact form card styles (added) === */
.form-card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  max-width: 760px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px){
  .form-grid { grid-template-columns: 1fr; }
}
.input, .textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background-color: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
  font-size: 1rem;
  caret-color: var(--secondary);
}
.input::placeholder, .textarea::placeholder { color: #9ca3af; }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--secondary);
  /* Simulate a "ring" using box-shadow */
  box-shadow: 0 0 0 3px rgba(31, 101, 151, .25);
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.95rem;
  color: #374151;
}
.checkbox-row a { color: var(--secondary); text-decoration: underline; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.btn { border-radius: 12px; padding: 0.75rem 1.25rem; font-weight: 600; border: none; cursor: pointer; }
.btn-primary { background-color: var(--secondary); color: #fff; }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background-color: #6c757d; color: #fff; }
.btn-secondary:hover { filter: brightness(0.95); }
.text-success { color: #047857; }
.text-error { color: #b91c1c; }
/* Align the form section content center without affecting header/footer */
.section .form-card { margin-top: 0.5rem; }
/* Ensure links inside form don't wrap awkwardly on mobile */
.form-card a { overflow-wrap: anywhere; }






/* === Dropdown Hover-Puffer (Desktop) === */
/* Verhindert, dass sich das Dropdown beim Bewegen der Maus schließt */
@media (min-width: 769px) {
  .navbar > ul > li {
    position: relative;
  }

  /* Unsichtbare Hover-Brücke zwischen Menüpunkt und Dropdown */
  .navbar > ul > li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px; /* Hover-Puffer */
  }

  .navbar > ul > li:hover > .dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
}


/* Dropdown: aktueller Menuepunkt dezent hervorheben */
.dropdown-menu a[aria-current="page"]{
  color: #fff;
  font-weight: 600;
}
.dropdown-menu a[aria-current="page"]:hover{
  background: rgba(203,161,53,.14);
  color: #fff;
}


/* (entfernt) Dropdown-Active-Override: wird oben im Premium-Block elegant geregelt */

/* =========================================================
   Premium Upgrade (Master) – 2026
   Adds hierarchy, spacing, button system, and refined cards.
   ========================================================= */

/* Global rhythm & type polish */
:root{
    --primary: #1b1b1b;      /* Anthrazit */
    --secondary: #0b0b0b;    /* Schwarz */
    --accent: #CBA135;       /* Gold */
    --light: #f7f7f7;
    --dark: #0b0b0b;
    --champagne: #CBA135;
    --navy-deep: #1b1b1b;
    --navy-mid: #0f0f10;
}

h1, h2, h3{
  letter-spacing: -0.02em;
}

/* Page wrapper (optional semantic helper) */
.page{
  display: block;
}

/* Hero: more premium depth + better hierarchy (home only via .hero--home) */
.hero{
  height: 62vh;
  min-height: 420px;
}

.hero::after{
  /* Replace flat overlay with subtle gradient for depth */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.40) 45%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero .hero-content{
  max-width: 980px;
  padding: 0 1rem;
}

.hero-eyebrow{
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero h1{
  font-size: clamp(2.0rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
}

.hero-subline{
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 860px;
  margin: 0 auto 1.4rem auto;
  color: rgba(255,255,255,0.92);
}

/* Buttons (used in hero + everywhere) */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(180deg, var(--accent), #c77a00);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(228,149,0,0.22);
}

.btn-primary:hover{ filter: brightness(0.98); }

.btn-secondary{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.14);
}

.hero-actions{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections: more whitespace + subtle separators (premium feel) */
.section{
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  max-width: 1100px;
}

.section + .section{
  border-top: 1px solid rgba(15,62,118,0.08);
}

/* Paragraphs: readable width */
.section p{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* Cards: richer depth */
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* CTA: slightly more premium */
.cta{
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Mobile tuning */
@media (max-width: 768px){
  .hero{
    height: 46vh;
    min-height: 340px;
  }
}
/* =========================================================
   Partner-Logos (global)
   Mobile wie Screenshot: links/rechts/links/rechts + 5. Logo mittig darunter
   - Smartphone: 70px
   - Tablet: 80px
   ========================================================= */

.partner-wrap{
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.partner-logos{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 22px;
}

.partner-logos .logo-card{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.partner-logos .logo-card img{
  width: auto;
  height: 96px; /* Desktop Default */
  max-width: 100%;
  display: block;
}

/* Tablet + Smartphone: 2 Spalten, 5. Logo zentriert (eigene Zeile) */
@media (max-width: 768px){
  .partner-logos .logo-card{
    flex: 0 0 calc(50% - 22px);
  }
  .partner-logos .logo-card:nth-child(5){
    flex-basis: 100%;
  }
}

/* Smartphone */
@media (max-width: 480px){
  .partner-logos .logo-card img{
    height: 70px;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px){
  .partner-logos .logo-card img{
    height: 80px;
  }
}

/* =========================================================
   HEADER + FOOTER Premium (Minimal invasive)
   - uses /images/Titelbild.png
   - keeps existing markup (navbar/footer)
   ========================================================= */

/* Premium header background (image + dark overlays) */
.navbar{
  position: sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(27,27,27,.92), rgba(11,11,11,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,161,53,.18);
}

/* Champagner-Linie unten (ohne Header-Hoehe zu veraendern) */
.navbar{
  position: sticky;
  top:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(27,27,27,.92), rgba(11,11,11,.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203,161,53,.18);
}
.navbar::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--champagne) 18%, rgba(255,255,255,.18) 50%, var(--champagne) 82%, transparent 100%);
  opacity: .95;
}

/* Navigation-Links: mehr Premium (Spacing + Champagner-Akzent) */
.navbar > ul li a,
.navbar > ul li span{
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .22s ease, color .22s ease;
}

.navbar > ul li a:hover{
  color: #fff;
  background: rgba(255,255,255,.06);
}

/* Champagner-Unterlinie (sichtbar, aber elegant) */
.navbar > ul li a::after{
  content:"";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  opacity: .95;
}
.navbar > ul li a:hover::after{ transform: scaleX(1); }

/* Aktive Seite: Champagner-Hinweis */
.navbar > ul li a[aria-current="page"]{
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.navbar > ul li a[aria-current="page"]::after{ transform: scaleX(1); }

/* Logo im Header minimal groesser + weich freigestellt */
.logo-img-header{
  height: 78px; /* leicht groesser (Premium) */
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.35));
}

/* Mobile Logo: bleibt kleiner, aber nicht zu klein */
@media (max-width: 768px){
  .logo-img-header{ height: 54px; }
}

/* Dropdown: Glass / Corporate */
.dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

.dropdown-menu li a{
  color: rgba(255,255,255,.82) !important;
  font-weight: 600;
  letter-spacing: .01em;
  border-radius: 10px;
  position: relative;
}

/* Champagner-Akzent links beim Hover */
.dropdown-menu li a::before{
  content:"";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--champagne);
  opacity: 0;
  transition: opacity .18s ease;
  border-radius: 2px;
}

.dropdown-menu li a:hover{
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.dropdown-menu li a:hover::before{ opacity: 1; }

/* Mobile: Dropdown integriert, ohne Glass-Kanten zu hart wirken */
@media (max-width: 768px){
  .navbar > ul{
    background:
      linear-gradient(180deg, rgba(11,19,36,.96) 0%, rgba(15,29,54,.92) 100%),
      url('/images/Titelbild.png');
    background-size: cover;
    background-position: center right;
  }
  .dropdown-menu{
  display:none;
  position:absolute;
  min-width: 260px;
  background: rgba(15,15,16,.98);
  border: 1px solid rgba(203,161,53,.20);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
}

/* Footer: Bild + Verlauf, staerker abgedunkelt + Champagner Kante */
.footer{
  padding: 40px 24px;
  background: linear-gradient(180deg, rgba(11,11,11,.98), rgba(0,0,0,1));
  border-top: 1px solid rgba(203,161,53,.20);
  color:#eaeaea;
}

/* Footer Links: Champagner beim Hover (premium) */
.footer a:hover{
  color: var(--champagne);
}

