/* Grundlegende Variablen - Angepasst an die Institutionsfarben */
:root {
    --schwarz: #000000;   /* Schwarz */
    --rot: #cc0000;       /* Rot */
    --gold: #ffd700;      /* Gold/Gelb */
    --primÃ¤r: var(--schwarz);
    --sekundÃ¤r: var(--rot);
    --akzent: var(--gold);
    --text: #333333;
    --hell: #ffffff;      /* WeiÃŸ */
    --grau: #f5f5f5;
    --schatten: rgba(0, 0, 0, 0.1);
}

/* Grundlegende ZurÃ¼cksetzung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hauptnavigation */
.hauptnavigation {
    background: var(--hell);
    box-shadow: 0 2px 5px var(--schatten);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.wappen-klein {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.aktiv {
    color: var(--sekundÃ¤r);
}

/* Menu Toggle Button - Hamburger Icon */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--schwarz);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero-Bereich */
.hero {
    background: linear-gradient(135deg, 
                var(--schwarz) 0%,
                rgba(0, 0, 0, 0.8) 40%,
                var(--rot) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--hell);
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.wappen-gross {
    width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    transform: translateY(20px);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.motto {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--akzent);
}

.seit {
    font-style: italic;
}

/* Bildergalerie-Slider */
.bildergalerie-slider {
    position: relative;
    overflow: hidden;
    margin: 4rem 0;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.slide.aktiv {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}
.slide img[src*="AMVERG~1.webp"] {
    object-position: top;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--hell);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

/* Willkommensbereich */
.willkommen {
    padding: 4rem 0;
    background: var(--grau);
}

.willkommen .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.willkommen h2 {
    text-align: center;
    color: var(--schwarz);
    margin-bottom: 2rem;
}

.willkommen-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.05rem;
}

.willkommen-text p {
    margin-bottom: 1.5rem;
}

.willkommen-text p:last-child {
    margin-bottom: 0;
}

.info-karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.karte {
    background: var(--hell);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--schatten);
    transition: transform 0.3s ease;
}

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

.karte h3 {
    color: var(--rot);
    margin-bottom: 1rem;
}

/* Aktuelles */
.aktuelles {
    padding: 4rem 0;
}

.aktuelles h2 {
    text-align: center;
    color: var(--schwarz);
    margin-bottom: 2rem;
}

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

.aktuelles-karte {
    background: var(--hell);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--schatten);
}

.aktuelles-karte img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aktuelles-karte h3 {
    padding: 1rem;
    color: var(--schwarz);
}

.aktuelles-karte p {
    padding: 0 1rem 1rem;
}

/* CTA Lebensbund */
.cta-lebensbund { margin: 4rem 0; }
.cta-lebensbund .cta-grid{
  display:grid; grid-template-columns: 1.2fr 1fr; min-height: 460px;
  border-radius: 0; overflow:hidden; box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.cta-lebensbund .cta-image img{
  width:100%; height:100%; object-fit:cover; object-position: top; display:block;
}
.cta-lebensbund .cta-panel{
  background: linear-gradient(135deg, var(--schwarz) 0%, var(--rot) 100%);
  color: var(--hell);
  display:flex; align-items:center; justify-content:center; text-align:center; padding: 3rem 2rem;
}
.cta-panel-inner{ max-width: 520px; }
.cta-eyebrow{ letter-spacing:.14em; text-transform:uppercase; color:#ddd; font-weight:700; font-size:.85rem; }
.cta-title{ font-size:2.2rem; margin:.4rem 0 1rem; color:var(--akzent); letter-spacing:.06em; }
.cta-lebensbund p{ font-size:1.08rem; line-height:1.8; color:#f1f1f1; margin:0 0 1.4rem; }
.button-black{ background: var(--schwarz); color: var(--hell); }
.button-black{ border-radius: 0; }
.button-black:hover{ background: var(--rot); }

@media (max-width: 960px){
  .cta-lebensbund .cta-grid{ grid-template-columns: 1fr; }
  .cta-lebensbund .cta-image{ order: -1; }
}

/* Kontaktformular */
.kontakt-form{ padding: 3.5rem 0; background: var(--grau); }
.kontakt-form .container{ max-width: 700px; }
.kontakt-form h2{ text-align:center; color:var(--schwarz); margin-bottom: 1.6rem; }
.kontakt-form .form-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.kontakt-form .form-field{ display:flex; flex-direction:column; }
.kontakt-form .form-field.form-full{ grid-column: 1 / -1; }
.kontakt-form label{ font-weight:600; margin-bottom:.4rem; color:#222; }
.kontakt-form input,
.kontakt-form textarea{
  padding:.9rem 1rem; border:1px solid #d7d7db; border-radius:0; background:#fff; color:#111;
}
.kontakt-form input:focus,
.kontakt-form textarea:focus{ outline:none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(199,166,70,.2); }
.kontakt-form .button{ margin-top: 10px; border-radius: 4px; }
.kontakt-form .hp-field{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.kontakt-form .hp-field input{ height:0; padding:0; border:0; }
.form-alert{ padding: .9rem 1rem; border-radius:8px; margin: 0 auto 1.2rem; max-width: 820px; }
.form-alert.success{ background: #0f5132; color:#d1f2e0; }
.form-alert.error{ background: #842029; color:#f8d7da; }

@media (max-width: 640px){
  .kontakt-form .form-grid{ grid-template-columns: 1fr; }
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--rot);
    color: var(--hell);
    text-decoration: none;
    border-radius: 4px;
    margin: 1rem;
    transition: background 0.3s ease;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

.button:hover {
    background: var(--schwarz);
}

.button:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}

/* Footer */
.footer {
    background: var(--schwarz);
    color: var(--hell);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: var(--akzent);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    /* Tighter spacing to match Über-Uns footer */
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.footer-section p:last-child,
.footer-section li:last-child {
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: var(--hell);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--hell);
    transition: fill 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover svg {
    fill: var(--akzent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row; /* Mantener en fila para dispositivos mÃ³viles */
        justify-content: space-between; /* Espacio entre logo y botÃ³n hamburguesa */
        align-items: center;
        padding: 1rem;
    }
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-top: 0;
        width: 100%;
        background: var(--hell);
        position: absolute;
        top: 70px; /* Adjust as needed */
        left: 0;
        box-shadow: 0 4px 6px var(--schatten);
        padding: 1rem 0;
    }
    .nav-links.aktiv {
        display: flex;
    }
    .menu-toggle {
        display: flex; /* Ensure the toggle button is visible on mobile */
        margin-left: auto; /* Empuja el botÃ³n a la derecha */
    }
    .logo {
        margin-right: auto; /* Empuja el logo a la izquierda */
    }
    .hero h1 {
        font-size: 2rem;
    }

    .motto {
        font-size: 1.2rem;
    }

    .slide img {
        height: 300px;
    }

    .info-karten,
    .aktuelles-grid {
        grid-template-columns: 1fr;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.karte,
.aktuelles-karte {
    animation: fadeIn 1s ease-out;
}

/* =========================================================
   ÃœBER UNS â€“ visuelles Upgrade (hell, dezent, markenkonform)
   ========================================================= */

/* --- Hintergrund: sehr leichte Struktur + Verlauf --- */
body.ueber-uns {
  /* Farbwelt: WeiÃŸ/Schwarz/Rot + Gold-Akzent bleibt erhalten */
  background:
    linear-gradient(180deg, #f3f3f3 0%, #f7f7f7 280px, #f2f2f2 100%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0 6px, rgba(0,0,0,.03) 6px 12px);
  color: #222;
}

/* --- schmale, zentrierte Inhaltsbreite wie auf Home --- */
.ueber-wrap { max-width: 1100px; margin: 36px auto 64px; padding: 0 20px; }

/* --- Hero-Band unter dem MenÃ¼ --- */
.ueber-hero-band {
  background: #ffffffcc;          /* transparentes WeiÃŸ, schwebend */
  backdrop-filter: blur(2px);
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px auto 22px;
  width: min(980px, 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  text-align: center;
  font-weight: 600;
  letter-spacing: .02em;
  color: #444;
}

/* --- Bild grÃ¶ÃŸer, ruhiger, mit Rahmen --- */
.ueber-hero { display: flex; justify-content: center; margin: 8px 0 26px; }
.ueber-hero img {
  width: min(900px, 100%);
  height: 440px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 16px 36px rgba(0,0,0,.14);
  background:#ddd;
}

/* --- Typografie: Lead, bessere Breite, Spalten am Desktop --- */
.ueber-content { margin-top: 8px; }
.ueber-content p,
.ueber-content ul,
.ueber-content ol,
.ueber-content h2,
.ueber-content h3 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Lead (erster Absatz) â€“ leicht grÃ¶ÃŸer, semibold */
.ueber-content p:first-of-type {
  font-size: 1.14rem;
  line-height: 1.9;
  color: #2a2a2a;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Normaltext angenehmer */
.ueber-content p { font-size: 1.07rem; line-height: 1.82; color:#333; margin-bottom:14px; }

/* Ãœberschriften markanter, aber nicht schrill */
.ueber-content h2 { font-size: 1.5rem; margin: 18px auto 10px; color:#111; }
.ueber-content h3 { font-size: 1.25rem; margin: 14px auto 8px;  color:#111; }

/* Zitatbox (optional per <blockquote>) */
.ueber-content blockquote {
  max-width: 900px; margin: 18px auto; padding: 14px 16px;
  background:#fff; border-left: 4px solid #d02424; /* Rot */
  border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.08);
  color:#262626; font-weight:600; font-style:italic;
}

/* Listen */
.ueber-content ul, .ueber-content ol { padding-left: 1.2rem; }

/* Spalten (ab 1100px) â€“ nur FlieÃŸtext, keine Listen/Ãœberschriften */
@media (min-width: 1100px) {
  .ueber-content { column-count: 2; column-gap: 42px; }
  .ueber-content h2, .ueber-content h3, .ueber-content ul, .ueber-content ol, .ueber-content blockquote {
    column-span: all;  /* Headings/Zitate nicht umbrechen */
  }
}

/* Responsiv: BildhÃ¶he anpassen, Textbreite lockern */
@media (max-width: 1024px) { .ueber-hero img { height: 360px; } }
@media (max-width: 640px)  {
  .ueber-hero img { height: 240px; }
  .ueber-hero-band { padding: 10px 14px; }
  .ueber-content p, .ueber-content ul, .ueber-content ol, .ueber-content h2, .ueber-content h3 { max-width: 95%; }
}

/* Fondo general (laterales) mÃ¡s oscuro y limpio */
body.ueber-uns {
  background: #e9eaec; /* laterales */
  color: #222;
}

/* Contenedor central (â€œcajÃ³nâ€) */
.ueber-card{
  background:#f6f6f7;                 /* Ã¡rea de lectura */
  border:1px solid #e3e3e6;
  border-radius:16px;
  box-shadow:0 14px 40px rgba(0,0,0,.10);
  padding:26px 28px 28px;
  width: min(1040px, 100%);
  margin: 0 auto 46px;
}

/* Hero-bild dentro del cajÃ³n separarlo del borde */
.ueber-card .ueber-hero{ margin: 4px 0 20px; }
.ueber-card .ueber-hero img{
  width:100%;
  max-width:none;        /* usa el ancho del cajÃ³n */
  height:420px;
  object-fit:cover;
  object-position:center 28%;
  border-radius:12px;
  border:1px solid #e2e2e5;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

/* Texto sÃ³lo dentro del cajÃ³n a 2 columnas en desktop */
.ueber-card .ueber-content { margin-top: 6px; }
.ueber-card .ueber-content p,
.ueber-card .ueber-content ul,
.ueber-card .ueber-content ol,
.ueber-card .ueber-content h2,
.ueber-card .ueber-content h3,
.ueber-card .ueber-content blockquote{
  max-width: 940px;          /* contenido respirando dentro del cajÃ³n */
  margin-left:auto; margin-right:auto;
}
.ueber-card .ueber-content p:first-of-type{
  font-size:1.12rem; line-height:1.9; font-weight:600; color:#262626;
}
.ueber-card .ueber-content p{
  font-size:1.06rem;
  line-height:1.82;
  color:#333;
}

body.page-id-336 .ueber-content p:first-of-type,
body.page-id-336 .ueber-card .ueber-content p:first-of-type{
  font-size:1.06rem;
  line-height:1.82;
  font-weight:400;
  color:#333;
}

@media (min-width:1100px){
  .ueber-card .ueber-content{ column-count:2; column-gap:40px; }
  .ueber-card .ueber-content h2,
  .ueber-card .ueber-content h3,
  .ueber-card .ueber-content ul,
  .ueber-card .ueber-content ol,
  .ueber-card .ueber-content blockquote{ column-span:all; }
}

/* Responsive */
@media (max-width:1024px){ .ueber-card .ueber-hero img{ height:360px; } }
@media (max-width:640px){
  .ueber-card{ padding:18px 16px; border-radius:12px; }
  .ueber-card .ueber-hero img{ height:240px; }
  .ueber-card .ueber-content > *{ max-width:95%; }
}

/* Ãœberschrift im Kasten */
.ueber-card .ueber-head{
  text-align:center;
  margin: 6px auto 14px;
}
.ueber-card .ueber-head h1{
  margin: 0 0 6px;
  font-size: 2rem;
  letter-spacing: .02em;
  color:#111;
}
.ueber-card .ueber-sub{
  font-weight: 600;
  color:#666;
  letter-spacing:.02em;
}

/* kleiner Abstand zwischen Ãœberschrift und Bild */
.ueber-card .ueber-hero{ margin: 10px 0 20px; }

/* TÃ­tulo y subtÃ­tulo dentro del cajÃ³n */
.ueber-card .ueber-head{ text-align:center; margin: 6px auto 14px; }
.ueber-card .ueber-title{
  display:block; margin:0 0 6px;
  font-size:2rem; letter-spacing:.02em;
  color:#111 !important; font-weight:700;
}
.ueber-card .ueber-sub{
  display:block; font-weight:600; color:#666; letter-spacing:.02em;
}

.ueber-card .ueber-hero img {
  border: 2px solid #c9a646; /* tono dorado */
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

/* --- Fix responsive hero image --- */
.ueber-card .ueber-hero{overflow:hidden}

/* Base: siempre mantener proporciÃ³n */
.ueber-card .ueber-hero img{
  width:100%;
  height:auto !important;   /* anula alturas fijas previas */
  display:block;
  border-radius:12px;
  border:2px solid #c9a646; /* tu borde dorado */
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}


@media (max-width: 768px){
  .ueber-card .ueber-hero img{
    object-fit: contain !important;
  }
  .ueber-card .ueber-content{
    column-count:1 !important;
  }
  .slide img[src*="AMVERG~1.webp"] {
    object-position: 20% center !important;
  }
}


@media (min-width: 769px){
  .ueber-card .ueber-hero img{
    object-fit: cover;
    aspect-ratio: 16 / 10;
  }
}