/* =======================
   Basis
   ======================= */
:root {
  --text: #262626;
  --bg-body: #f9f9f9 !important;
  --accent: #9e3d25;
  --max: 1200px;
 /* --nav-border: none !important; */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.8 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f9f9f9 !important;
  min-height:100%;
}




/* =======================
   Banner + Logo Overlay
   ======================= */
.banner-wrapper { position: relative; width: 100%; }
.banner-img { display: block; width: 100%; height: auto; } /* voll sichtbar */
.logo-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* width: 420px;  Größe bei Bedarf */
  max-width: 90%;
  height: auto;
  pointer-events: none; /* blockiert keine Klicks */
  
}

/* =======================
   Navigation (Desktop)
   ======================= */
/* Nur Zentrierung der cms2day Navigation */
#navigation {
box-shadow: 0 2px 6px rgba(0,0,0,.08);
background:white;
}

#navigation .navi ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* Entfernt die vertikalen Trennerlinien zwischen Menüeinträgen */
.navi>ul>li>a {
        padding: 0 1rem 0 1rem;
        border-left: none !important;
        line-height: 3rem;
    }
    
 .navi li.more span.ddchklab {
 border:none;
 }
 
 /* --- Dropdown-Menü schmaler machen --- */

/* Breite des Dropdowns reduzieren */
#navigation .navi ul ul {
  width: auto !important;      /* passt sich dem Text an */
  padding: 0 !important;
}

/* Innenabstand der Einträge anpassen */
#navigation .navi ul ul li a {
  padding: 6px 14px !important; /* oben/unten, rechts/links */
  font-size: 0.95rem;
  white-space: nowrap;          /* kein Umbruch */
}

/* Optional: Schrift etwas kompakter (nicht zwingend) */
#navigation .navi ul ul li a span {
  display: inline-block;
  padding: 0;
  margin: 0;
}

/* --- Dropdowngröße kompakter machen --- */

/* Das UL des Dropdown-Menüs (zweite Ebene) */
#navigation .navi li.more > ul {
    min-width: auto !important;     /* löscht evtl. feste Minimalbreite */
    width: auto !important;         /* passt sich dem Inhalt an */
    display: inline-block !important;
    padding: 0 !important;
    border: 1px solid #ccc;         /* vorhandene Optik behalten; kannst du anpassen */
    background: #fff;               /* damit es nicht plötzlich grau wird */
}

/* Die einzelnen Einträge im Dropdown */
#navigation .navi li.more > ul > li {
    white-space: nowrap !important; /* kein Zeilenumbruch */
    min-width: auto !important;
    width: 100%;
}

/* Die anklickbaren Links im Dropdown */
#navigation .navi li.more > ul > li > a {
    display: block !important;
    padding: 6px 14px !important;   /* <- hier steuerst du die "Balkenhöhe und -breite" */
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    background: #fff !important;
    min-width: 150px !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
  /* Größere Hit-Area rechts für das Aufklappen */
  #navigation .navi li.more > input.ddchkbox { width: 3rem; }

  /* Gut sichtbare Trenner – falls dein Theme sehr helle Ränder nutzt */
  #navigation .navi > ul > li > a {
    border-bottom: 1px solid rgba(0,0,0,.18);
  }
  #navigation .navi ul li ul li > a {
    border-bottom: 1px solid rgba(0,0,0,.12);
  }
}



/* ===============================
   TEAM-SEITE – INKA TATTOO
   =============================== */

/* ===== TEAM-SEITE (robust, nur .team-page) ===== */

/* 1) Team-Layout: Header über dem Grid, keine 2-Spalten mehr */
section > main.team-page{
  max-width:1200px;
  margin:0 auto 2.5rem;
  padding:0 0 2rem;
  /* inneren Kasten TRANSPARENT machen -> kein „Kasten im Kasten“ */
  background: transparent;
  box-shadow: none;
  border-radius: 0;

  /* statt 2 Spalten jetzt eine Spur, Header oben */
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
}

/* Header vollbreit oben, zentriert */
section > main.team-page > .team-header{
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}
section > main.team-page > .team-header h1{
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
section > main.team-page > .team-header p{
  margin: 0 auto;
  font-size:16px;
  line-height: 1.5;
}

/* Jede Rollen-Sektion ebenfalls vollbreit unter dem Header */
section > main.team-page > section.role-section{
  grid-column: 1 / -1;
  margin: 0 0 2rem;
}
section > main.team-page > section.role-section > h2{
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Grids bleiben wie gehabt – Karten sauber in Reihen zentrieren */
section > main.team-page .grid{
  display:flex;
  flex-wrap:wrap;
  gap:2rem;
  justify-content: center;   /* zentriert die Karten unter der Überschrift */
}
section > main.team-page .grid .member-card{
  flex: 0 0 200px;
  max-width:200px;
  min-width:200px;
  text-align:center;
  text-decoration:none;
  color:inherit;
}
section > main.team-page .avatar{
  width:140px; height:140px; border-radius:50%;
  background-size:cover; background-position:center;
  background-color:#eee; margin:0 auto .75rem; overflow:hidden;
}
section > main.team-page .member-card h3{ margin:0 0 .25rem; font-size:.95rem; font-weight:600; text-align:center; }
section > main.team-page .member-card .role{ margin:0; font-size:.8rem; color:#555; }

/* Optional: Wenn das CMS darüber noch ein eigenes Seiten-H1 „Team“ rendert und du es NICHT willst: */
/* section > h1 { display:none; } */


/* =======================
   Layout
   ======================= */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 26px;
}
h1, h2 { line-height:1.2; margin:0 0 .5rem; }
h1 {
  font-size:clamp(2rem,3.5vw,3rem);
  text-align:center;
  margin-bottom:1rem;
}
h2 { font-size:clamp(1.5rem,2.5vw,2rem); }
p { margin:0 0 1rem; }
.divider {
  border:0;
  border-top:1px solid #eaeaea;
  margin:2rem 0;
}


/* =======================
   Formular
   ======================= */
.form { display:grid; gap:12px; max-width:720px; }
.form label { display:grid; gap:6px; }
.form input, .form textarea {
  border:1px solid #d9d9d9;
  border-radius:.5rem;
  padding:.7rem .9rem;
  font:inherit;
}
.form button {
  justify-self:start;
  border:1px solid #222;
  background:#222;
  color:#fff;
  padding:.7rem 1.2rem;
  border-radius:.5rem;
  cursor:pointer;
}
.form button:hover { background:#fff; color:#000; }

/* =======================
   Responsive Navigation (Mobile)
   ======================= */
@media (max-width: 900px) {
  /* Unterstrich bei mobilen Links entfernen */
  .menu > li > a::after { content: none !important; }

  .nav .nav-toggle .burger {
    display: inline-block;
    vertical-align: middle;
  }
  .nav .nav-toggle .nav-toggle-label {
    display: inline-block;
    margin-left: .5rem;
    font-weight: 600;
  }

  /* Kill desktop underline pseudo-element in mobile completely */
  .menu > li > a::after { content: none !important; display: none !important; }

  .nav .nav-toggle { display:inline-block; }

  /* Menü als Spalte, zentriert */
  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 16px;
    align-items: stretch;  /* volle Breite */
  }
  .menu.open { display: flex; }

  /* Hauptlinks: zentriert, rote Linie aus */
  .menu > li > a {
    display: block;
    text-align: center;
    padding: 12px 10px;
  }
  .menu > li > a::after { content: none; }

  /* Chevron für Einträge mit Submenu */
  .menu > li.has-sub > a::before {
    content: "▾";
    display: inline-block;
    margin-left: 8px;
    transform: translateY(-1px);
    transition: transform .2s ease;
    opacity: .9;
  }
  .menu > li.has-sub.open-sub > a::before {
    transform: rotate(180deg) translateY(1px);
  }

  /* Submenus: standardmäßig ZU – werden per .open-sub geöffnet
     (nav.js setzt/entfernt die Klasse) */
  .menu li.has-sub { position: relative; }
  .menu li.has-sub .sub {
    position: static;
    display: block;        /* nötig für Animation */
    overflow: hidden;
    max-height: 0;         /* zu */
    opacity: 0;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    transition: max-height .25s ease, opacity .25s ease;
  }
  .menu li.has-sub.open-sub .sub {
    max-height: 600px;     /* genug Platz für mehrere Einträge */
    opacity: 1;
    padding-top: 4px;
  }

  .menu li.has-sub .sub a {
    display: block;
    padding: 10px 12px;
    text-align: center;
  }
}

/* =======================
   Startseite – Intro + Teamfoto
   ======================= */
.lead { font-size: 1.05rem; }
.h3like { margin-top: 1.25rem; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.bullet-list { margin: .75rem 0 1.25rem; padding-left: 1.1rem; }
.bullet-list li { margin: .25rem 0; }
.cta { font-weight: 600; margin-top: .5rem; }

.team-section { margin-top: 1.25rem; display: flex; justify-content: center; }
.team-img {
  width: 100%;
  height: auto;
  max-width: var(--max);
  display: block;
  border-radius: 18px;
}

/* =======================
   Logo-Scale (Breakpoints)
   ======================= */
@media (max-width: 1300px) { .logo-overlay { max-width: 480px; } }
@media (max-width: 992px)  { .logo-overlay { max-width: 400px; } }
@media (max-width: 768px) {
  .banner-wrapper { position: relative; overflow: hidden; }
  .logo-overlay { max-width: 68vw; left:50%; top:50%; transform:translate(-50%,-50%); }
}
@media (max-width: 420px) {
  .logo-overlay { max-width: 56vw; top: 48%; }
}

/* =======================
   Team-Seite (Grid)
   ======================= */
.team-page .team-header { text-align: center; margin: 16px 0 24px; }
.team-page .team-header p { margin: 6px 0 0; color: #555; }

.role-section { margin: 28px 0; }
.role-section > h2 {
  text-align: center;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin-bottom: 14px;
}

.grid { display: grid; gap: 18px; align-items: start; justify-items: center; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(180px, 1fr)); }

.member-card {
  text-align: center; text-decoration: none; color: var(--text);
  padding: 10px 8px; border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.member-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.avatar {
  width: 140px; height: 140px; border-radius: 999px;
  background: #e9e9e9 center/cover no-repeat;
  margin: 0 auto 10px; border: 2px solid #f2f2f2;
}
.member-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.member-card .role { margin: 0; color: #666; font-size: .95rem; }

@media (max-width: 900px) {
  /* Unterstrich bei mobilen Links entfernen */
  .menu > li > a::after { content: none !important; }

  .nav .nav-toggle .burger {
    display: inline-block;
    vertical-align: middle;
  }
  .nav .nav-toggle .nav-toggle-label {
    display: inline-block;
    margin-left: .5rem;
    font-weight: 600;
  }

  /* Kill desktop underline pseudo-element in mobile completely */
  .menu > li > a::after { content: none !important; display: none !important; }
 .grid-4 { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .avatar { width: 120px; height: 120px; }
}

/* =======================
   Detailseiten – Basis
   ======================= */
.member-detail .detail-header {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}


.member-detail .detail-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}

/* Stil für den Bio-Text, der die Rolle ausschließt */
.member-detail .detail-header p:not(.role) {
  color: #555; /* Eine etwas hellere Textfarbe */
  font-style: italic; /* Optional: Schräge Schrift */
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 20px;
}



.member-detail .detail-text { flex: 1 1 360px; }
.member-detail .detail-photo { flex: 0 1 320px; text-align: center; }
.member-detail .detail-photo img { width: 100%; max-width: 300px; border-radius: 12px;  box-shadow: 0 4px 12px rgba(0, 0, 0, .50); /* Der dezente Schatten */ }
.member-detail h1 { margin: 0 0 8px; }
.member-detail .role { font-weight: 600; color: #666; margin: 0 0 16px; }
.social-links a { margin-right: 12px; font-size: 1.4rem; color: var(--text); }
.social-links a:hover { color: var(--accent); }
/* CSS für den Bio-Bereich */

/* Galerie – kleine, gleich große Thumbnails */

.g-item { display:block; border-radius:8px; overflow:hidden; aspect-ratio:1/1; background:#f0f0f0; }
.g-item img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .25s ease; }
.g-item:hover img { transform: scale(1.05); }

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
}

/* =======================
   Lightbox
   ======================= */
.lightbox {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.86); 
  z-index: 99999;
}
.lightbox.open { display: flex; }

.lightbox__frame { position: relative; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox__img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.lightbox__caption { color: #fff; margin-top: 10px; font-size: .95rem; }

.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0,0,0,.45);
  width: 44px; height: 44px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox__btn:hover { background: rgba(0,0,0,.7); }
.lightbox__btn svg { width: 22px; height: 22px; fill: #fff; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__close { top: 18px; right: 18px; transform: none; position: absolute; }

@media (max-width: 640px) {
  .lightbox__btn { width: 40px; height: 40px; }
  .lightbox__img { max-height: 72vh; }
}

/* =======================
   Detailseite – Feinschliff
   ======================= */
.member-title{
  text-align:center;
  font-size: clamp(2rem, 4.6vw, 3rem);
  letter-spacing: .2px;
  margin: 22px 0 14px;
}
.member-hero{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap: 32px; margin: 10px 0 24px;
}
.member-hero .bio{
  flex: 1 1 620px; max-width: 820px;
  background:#fff; border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  padding: 18px 20px; animation: reveal-up .5s ease both;
}
.member-hero .bio p{ margin:0 0 12px; }
.portrait{ flex: 0 0 360px; max-width: 420px; margin:0; }
.portrait img{
  display:block; width:100%; height:auto;
  border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.12);
  animation: reveal-up .6s ease .05s both;
}
.social-links{ display:flex; gap:10px; margin-top:8px; }
.social-links a{
  width:38px; height:38px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:#f3f3f3; color:#333; text-decoration:none;
  transition: background .2s, transform .15s, color .2s;
  box-shadow: inset 0 0 0 1px #e7e7e7;
}
.social-links a:hover{ background: var(--accent); color:#fff; transform: translateY(-1px); }
.social-links svg{ width:20px; height:20px; }

.member-gallery h2{
  text-align:left; font-size: 1.4rem; font-weight: 650;
  margin: 30px 0 16px; position: relative;
}
.member-gallery h2::after{
  content:""; display:block; width:48px; height:3px;
  background: var(--accent); margin-top: 6px; border-radius:3px;
}

/* Zentriert die Galerie und definiert die Größe der Thumbnails neu */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 180px); /* feste Spaltenbreite */
  gap: 12px;
  justify-content: center;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.g-item{ aspect-ratio:1/1; border-radius:10px; overflow:hidden; background:#f0f0f0; display:block; }
.g-item img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.g-item:hover img{ transform:scale(1.05); }

@keyframes reveal-up{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform: translateY(0); } }
@media (max-width: 1000px){
  .member-hero{ flex-wrap:wrap; }
  .portrait{ order:-1; flex-basis:100%; max-width:560px; margin:0 auto 10px; }
  .member-hero .bio{ flex-basis:100%; max-width:none; }
}
@media (max-width: 640px){
  .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap:8px; }
}

/* =======================
   Footer (2 Spalten oben + Adresse unten)
   ======================= */
.site-footer { background:#262626; color:#fff; margin-top:32px; }

.footer-widgets{
  display:grid; grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap:28px; padding:28px 16px; align-items:start;
}
.f-col h3{
  font-size:.85rem; letter-spacing:.08em; text-transform:uppercase;
  opacity:1; margin:0 0 15px;
}
.f-list{ list-style:none; margin:0; padding:0; }
.f-list li{ margin:6px 0; list-style:none; }
.f-list a{ color:#fff; text-decoration:none; opacity:.9; }
.f-list a:hover{ opacity:1; text-decoration:underline; }

/* Öffnungszeiten kompakt */
.hours{ list-style:none; margin:0; padding:0; }
.hours li{
  display:flex; justify-content:flex-start; gap:20px;
  margin:6px 0; font-size:.95rem;
}
.hours li span:first-child{
  min-width:60px; display:inline-block; font-weight:600; opacity:.9;
}
.hours li span:last-child{ opacity:.9; }

/* Untere Leiste: Adresse über Rechtslinks */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:14px 16px 20px;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  text-align:center;
}
.footer-address{ font-size:.95rem; line-height:1.5; }
.footer-address a{ color:#fff; text-decoration:none; }
.footer-address a:hover{ text-decoration:underline; }

.footer-nav{ display:flex; gap:8px; justify-content:center; }
.footer-nav a{ color:#fff; text-decoration:none; opacity:.9; }
.footer-nav a:hover{ opacity:1; text-decoration:underline; }

@media (max-width: 640px){ .footer-widgets{ grid-template-columns:1fr; } }

/* =======================
   Mobile Nav Fix – keep burger centered, slide-down, no underline
   (added 2025-09-01)
   ======================= */
@media (max-width: 900px) {
  .nav .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    border: 0 !important;
    background: transparent !important;
    padding: .8rem 1rem;
    margin: .25rem 0;
  }

  /* Slide-down panel */
  .menu {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .4s ease, opacity .25s ease, transform .25s ease;
    padding: 0 12px;
  }
  .menu.open {
    max-height: 75vh;
    opacity: 1;
    transform: translateY(0);
    padding: 8px 12px 16px;
  }

  /* Center items vertically */
  .menu > li { list-style: none; }
  .menu > li > a {
    display: block;
    text-align: center;
    padding: 12px 10px;
  }

  /* Remove red underline on mobile */
  .menu > li > a::after { content: none !important; }

  /* Mobile submenus (tap-to-open via .open-sub) */
  .menu li.has-sub { position: relative; }
  .menu li.has-sub .sub {
    position: static;
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .menu li.has-sub.open-sub .sub {
    max-height: 600px;
    opacity: 1;
    padding-top: 4px;
  }

  /* Small chevron indicator (keeps your colors) */
  .menu > li.has-sub > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 8px;
    transform: translateY(-1px);
    transition: transform .2s ease;
    opacity: .9;
  }
  .menu > li.has-sub.open-sub > a::after {
    transform: rotate(180deg) translateY(1px);
  }
}


/* Mobile: show burger icon instead of text "Menü" */
@media (max-width: 900px) {
  .nav .nav-toggle {
    position: relative;
    font-size: 0 !important;   /* hide the visible text, keep it for screen readers */
  }
  .nav .nav-toggle::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 18px;
    /* 3 horizontal bars using layered gradients */
    background:
      linear-gradient(currentColor, currentColor) left top/24px 2px no-repeat,
      linear-gradient(currentColor, currentColor) left center/24px 2px no-repeat,
      linear-gradient(currentColor, currentColor) left bottom/24px 2px no-repeat;
    vertical-align: middle;
  }
}
/* Optische Trennung des Team-Bereichs */


/* Container für den Hauptinhalt */
.main-content {
  background-color: #ffffff; /* Reines Weiß */
  margin: 40px auto; /* Zentriert und mit vertikalem Abstand */
  padding: 30px; /* Innenabstand für den Inhalt */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Dezenter, weicher Schatten */
  border-radius: 8px; /* Leicht abgerundete Ecken */
  max-width: 1200px; /* Begrenzt die Breite für bessere Lesbarkeit */
}

/* Anpassungen für kleinere Bildschirme */
@media (max-width: 900px) {
  .main-content {
    margin: 20px;
    padding: 15px;
  }
}

/* Klare Trennung der Galerie durch eigenen Hintergrund */
.portfolio {
  background-color: #f7f7f7; /* Oder ein leicht dunklerer Ton wie #f2f2f2 */
  margin-top: 40px; /* Mehr Abstand zum Bereich darüber */
  padding: 40px 24px 20px; /* Innenabstand für den Inhalt */
  border-radius: 8px; /* Runde Ecken, passend zum Hauptcontainer */
  border-top: 1px solid #e7e7e7; /* Eine subtile Linie oben */
}

/* Position der Überschrift innerhalb des neuen Blocks anpassen */
.portfolio h2 {
  text-align: center; /* Überschrift zentrieren, wenn das gewünscht ist */
  margin-top: 0;
  margin-bottom: 24px; /* Abstand zur Galerie */
}

/* Die rote Linie unter der Überschrift kann dann so angepasst werden: */
.portfolio h2::after {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  content: "";
  margin: 6px auto 0; /* Linie unter der zentrierten Überschrift zentrieren */
}

/* Abstand der Galerie-Bilder nach unten verringern */
.gallery-grid {
  margin-bottom: 0;
}

/* Animation beim Laden */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Wenden Sie die Animation auf die Hauptinhalte an */
.member-detail .detail-header,
.member-detail .portfolio {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
.member-detail .portfolio {
  animation-delay: 0.2s; /* Die Galerie soll etwas später erscheinen */
}


/* INKA – Kontaktformular: schlichte Variante */
.ink-contact.simple { --accent: var(--accent, #9e3d25); }

/* kein Kartenkasten, keine Schatten */
.ink-contact.simple .contact-card{
  max-width: 980px;
  margin: 0 auto 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Headline/Lead */
.ink-contact.simple .contact-title{
  text-align: center;
  margin: 0 0 14px;
}
.ink-contact.simple .lead{
  text-align: center;
  margin: 0 0 22px;
  color: #444;
}

/* Grid & Abstände */
.ink-contact.simple .contact-form{ display:grid; gap:18px; }
.ink-contact.simple .form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:700px){ .ink-contact.simple .form-row{ grid-template-columns:1fr; } }

.ink-contact.simple .form-field{ display:flex; flex-direction:column; }
.ink-contact.simple label{ font-weight:600; margin:0 0 6px; }

/* Inputs/Textareas schlicht */
.ink-contact.simple input,
.ink-contact.simple textarea{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:10px;
  padding:12px 14px;
  font:inherit;
  box-shadow:none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ink-contact.simple textarea{ min-height:150px; resize:vertical; }
.ink-contact.simple input:focus,
.ink-contact.simple textarea:focus{
  outline:none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(158,61,37,.12);
}

/* kleine Hinweistexte */
.ink-contact.simple .hint{ font-size:13px; color:#777; margin-top:6px; }

/* DSGVO-Zeile */
.ink-contact.simple .consent{ display:flex; gap:10px; align-items:flex-start; font-size:14px; line-height:1.35; }
.ink-contact.simple .consent input{ margin-top:3px; }

/* Meldungen */
.ink-contact.simple .msg{ padding:10px 12px; border-radius:10px; border:1px solid transparent; margin-bottom:10px; }
.ink-contact.simple .msg.ok{ background:#e6ffef; border-color:#b4ffd0; color:#1f8a4a; }
.ink-contact.simple .msg.error{ background:#ffe6e6; border-color:#ffb4b4; color:#8a1f1f; }

/* Honeypot */
.ink-contact.simple .hp{ position:absolute; left:-5000px; width:1px; height:1px; overflow:hidden; }

/* Actions + Button (spezifisch, überstimmt Global-Resets) */
.container.ink-contact.simple .contact-card .actions{
  display:flex; align-items:center; gap:12px; margin-top:8px;
}
.container.ink-contact.simple .contact-card .actions .btn-primary{
  display:inline-flex; align-items:center; justify-content:center;
  -webkit-appearance: button; appearance: button;
  background:#9e3d25 !important;
  color:#fff !important;
  border:0 !important;
  padding:10px 18px;
  min-width:170px;
  border-radius:18px;
  font-weight:700; line-height:1;
  text-decoration:none; box-shadow:none; cursor:pointer;
}
.container.ink-contact.simple .contact-card .actions .btn-primary:hover{ filter:brightness(.97); }
.container.ink-contact.simple .contact-card .actions .btn-primary:active{ transform:translateY(1px); }
.container.ink-contact.simple .contact-card .actions button.btn-primary{
  visibility:visible !important;
  opacity:1 !important;
}


/* Mobile Nav – move burger+label further down (center vertically in nav) */
@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav .nav-toggle {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
}


/* === Mobile Nav: center burger+label inside a fixed bar, keep bar height === */
@media (max-width: 900px) {
  /* Fix bar height and center content without changing background size */
  .nav {
    position: relative !important;
    display: block !important;
    height: 56px !important;     /* schlankere Höhe – anpassbar */
  }

  /* Absolutely center the toggle inside the bar */
  .nav .nav-toggle {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: 0 !important;
    font-size: inherit !important; /* Text „Menü“ sichtbar */
    line-height: 1 !important;
  }

  /* Ensure the label is visible next to the icon */
  .nav .nav-toggle .nav-toggle-label {
    display: inline-block !important;
    font-weight: 600 !important;
  }

  /* Use the real burger span (not pseudo) */
  .nav .nav-toggle::before { content: none !important; }
  .nav-toggle .burger,
  .nav-toggle .burger::before,
  .nav-toggle .burger::after {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 2px !important;
    position: relative !important;
  }
  .nav-toggle .burger::before { position: absolute; left: 0; top: -6px; }
  .nav-toggle .burger::after  { position: absolute; left: 0; top:  6px; }

  /* Remove extra padding when closed to avoid more white area */
  .menu { padding: 0 !important; }
  .menu.open { padding: 8px 12px 16px !important; }
}


/* Mobile Nav – ensure toggle stays clickable above everything */
@media (max-width: 900px) {
  .nav { position: relative !important; overflow: visible !important; }
  .nav .nav-toggle {
    z-index: 10 !important;
    pointer-events: auto !important;
  }
  #main-menu.menu {
    position: relative !important;
    z-index: 1 !important; /* keep below the button when closed */
  }
}


@media (max-width: 900px) {
  /* Hintergrund für ausgeklapptes Menü */
  .menu.open {
    background: #fff !important;
    width: 100% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: relative !important;
    z-index: 5 !important;
  }
  .menu.open li a {
    color: #000 !important;
  }
}


@media (max-width: 900px) {
  .menu.open {
    padding-top: 48px !important; /* Abstand unterhalb der Leiste */
  }
}

/* ===== DESKTOP FIXES (>= 992px) ===== */
@media (min-width: 992px) {
  /* Abstand zwischen Punkten nicht zusätzlich vergrößern */
  #navigation .navi ul { gap: 0 !important; }

  /* Menüpunkte etwas enger */
  #navigation .navi > ul > li > a { padding: 0 .9rem !important; } /* vorher 1rem */

  /* Rechten Rand neben „Impressum“ entfernen */
  #navigation .navi > ul > li:last-child { border-right: 0 !important; }

  /* Pfeil neben „Pflegehinweise“ (ddchklab) ausblenden */
  #navigation .navi li.more span.ddchklab { display: none !important; }
}

/* ===== MOBILE FEINSCHLIFF (<= 768px) ===== */
@media (max-width: 768px) {
  /* Vertikalen Abstand der Hauptpunkte reduzieren */
  #navigation .navi > ul > li > a {
    padding: 12px 18px !important;   /* kompakter als 2.5rem Zeilenhöhe */
    line-height: 1.35 !important;
  }

  /* Untermenü: volle Breite, keine schmale Desktop-Box */
  #navigation .navi li.more > ul {
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Unterpunkt-Einrückung moderat + klarer Trenner */
  #navigation .navi ul li ul li > a {
    padding: 10px 18px 10px 28px !important;
    border-bottom: 1px solid rgba(0,0,0,.12) !important;
  }
}

/* ===== THEME-RAND SICHTBAR HALTEN ===== */
/* Falls noch aktiv: KEIN 'none' mehr für --nav-border */
:root { --nav-border: rgba(0,0,0,.18); }

/* Mittel-Lücke unter <li class="middle more"> entfernen */
@media (max-width: 768px) {
  /* kein Flex-Gap mehr zwischen den LI */
  #navigation .navi > ul { gap: 0 !important; }

  /* Untermenü nicht als inline-block (Baseline-Gap!), sondern block */
  #navigation .navi li.more > ul {
    display: block !important;
    margin: 0 !important;
  }

  /* Sicherheitsnetz: keine Extra-Margins/Paddings am LI selbst */
  #navigation .navi li.more {
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* Mobile: konsistente Seitenabstände ohne Seitwärtsscroll */
@media (max-width: 900px) {
  /* etwas schlankeres Container-Padding */
  .container { padding-inline: 16px !important; }

  /* main-content mit kleinen Randabständen, aber ohne Überbreite */
  .main-content {
    /* oben/unten wie gehabt, seitlich kleiner und sicher */
    margin: 12px auto 20px !important;
    /* keine feste Breite – nutze max-width + Box-Sizing */
    width: auto !important;
    max-width: 1200px;               /* bleibt erhalten */
    padding: 16px !important;
    box-sizing: border-box;
  }
}

/* Extra-Guard für sehr kleine Geräte */
@media (max-width: 420px) {
  .container { padding-inline: 12px !important; }
  .main-content { margin-inline: 12px !important; padding: 14px !important; }
  html, body { overflow-x: hidden; } /* falls irgendein Kind-Element doch raussteht */
}

/* Falls noch nicht global gesetzt: nichts darf breiter als der Container sein */
img, video, canvas, iframe, table { max-width: 100%; height: auto; }


@media screen and (min-width: 768px) {
  main {
    display: block !important;
  }
}

/* ============================================================
   INKA – Kontaktformular (CMS) – Weiß, rahmenlos, zentriert
   ============================================================ */
#modulKontaktformular { --accent: #9e3d25; }

/* Entfernt grauen Hintergrund, Rahmen & Schatten des CMS */
#modulKontaktformular,
#modulKontaktformular .buildFrontendBox {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Eigener schlichter Container für das Formular */
#modulKontaktformular form {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

/* Mobil einspaltig */
@media (max-width: 760px) {
  #modulKontaktformular form { grid-template-columns: 1fr; gap: 14px; }
}

/* Eingabefelder – klare, weiße Flächen */
#modulKontaktformular .fullForm.formular,
#modulKontaktformular .textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#modulKontaktformular .textarea {
  min-height: 180px;
  resize: vertical;
}

#modulKontaktformular .fullForm.formular:focus,
#modulKontaktformular .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(158, 61, 37, 0.12);
}

/* Placeholder dezent */
#modulKontaktformular ::placeholder {
  color: #777;
  opacity: 0.95;
}

/* Spaltenaufteilung */
#modulKontaktformular [name="data_7"],   /* Firma */
#modulKontaktformular [name="data_1"],   /* Name */
#modulKontaktformular [name="data_2"],   /* Mail */
#modulKontaktformular [name="data_3"],   /* Webseite */
#modulKontaktformular [name="data_4"],   /* Telefon */
#modulKontaktformular [name="data_5"] {  /* Betreff */
  grid-column: span 1;
}

/* Breite Felder */
#modulKontaktformular .textarea,
#modulKontaktformular [name="spamschutz"],
#modulKontaktformular [type="submit"] {
  grid-column: 1 / -1;
}

/* Button im INKA-Stil */
#modulKontaktformular .datas-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 18px;
  min-width: 180px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.15s ease, transform 0.12s ease;
}

#modulKontaktformular .datas-button:hover {
  filter: brightness(0.97);
}
#modulKontaktformular .datas-button:active {
  transform: translateY(1px);
}

/* Versteckt alle Hidden- und CMS-Wrapper */
#modulKontaktformular input[type="hidden"] {
  display: none !important;
}

