/* Plugins
------------------------------------------------------------------------------ */

div.plugin	h2.plugin-label {
	border-bottom: solid 3px #fecd1e;
	display: inline-block;
	margin: 0 0 2em 0;
	padding: 0 0.75em 0.5em 0;
}

div.plugin	ul {
	list-style: none;
}

div.plugin	ul li {
	border-top: solid 1px rgba(210, 215, 217, 0.75);
	margin: 0.5em 0 0 0;
	padding: 0.5em 0 0 0;
}

div.plugin	a {
	border-bottom: 0;
	color: inherit;
	cursor: pointer;
	display: block;
	font-size: 1.1em;
	padding: 0;
}

/* Plugin Tags
------------------------------------------------------------------------------ */

div.plugin-tags	ul li {
	border: none;
	display: inline-block;
}

div.plugin-tags	a {
	display: inline-block;
	margin: 5px;
}

/* Plugin Menu
------------------------------------------------------------------------------ */

div.plugin-menu	ul.menu {
	margin: 0;
	padding: 0;
}

div.plugin-menu	ul.submenu li {
	border: none;
}

div.plugin-menu	span.category-name {
	color: #3d4449 !important;
	opacity: 1.0;
	text-transform: uppercase;
}

div.plugin-menu	a.page-title {
	padding: 0;
}

/* Plugin Disqus
------------------------------------------------------------------------------ */
#disqus_thread {
	margin-top: 60px;
}

/* Hacks
------------------------------------------------------------------------------ */
img {
    max-width: 100%;
    height: auto;
}

/* Site-Header fullwidth (außerhalb .inner, spiegelt .inner-Padding)
------------------------------------------------------------------------------ */
.site-header-fullwidth {
    padding: 0 6em;
}
.site-header-fullwidth #header,
#header {
    padding-top: 1em !important;
}

/* #header als CSS-Grid: Logo | Slogan | Icons
   Grid statt Flex+order, damit die Position unabhängig von der DOM-Reihenfolge
   fest definiert ist und beim Umbruch nicht "springt". Icons bleiben immer
   rechtsbündig in eigener Spalte/Zeile. */
#header {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo slogan icons";
    align-items: center;
    column-gap: 1em;
}
#header .logo {
    grid-area: logo;
    margin-bottom: 0 !important;
}
.site-slogan {
    /* grid-area: slogan; */
    min-width: 0;
    font-size: 0.85em;
    color: #3d4449;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0 !important;
}
#header .icons {
    grid-area: icons;
    justify-self: end;
    white-space: nowrap;
    text-align: right;
    margin-bottom: 0 !important;
}

/* Icon-Label ab Desktop-Breite (>736px) sichtbar */
@media screen and (min-width: 737px) {
    #header .icons .icon > .label {
        display: inline !important;
        padding-left: 5px;
    }
}
.site-logo {
    height: 48px;
    width: auto;
    vertical-align: middle;
    display: block;
}

@media screen and (max-width: 736px) {
    #header {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo . icons"
            "slogan slogan slogan";
        row-gap: 0.5em;
    }
    .site-slogan {
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.8em;
    }
    #header .icons {
        position: static !important;
        height: auto !important;
        line-height: normal !important;
        top: auto !important;
        right: auto !important;
    }
    .site-logo { height: 36px; }
}

@media screen and (max-width: 1680px) {
    .site-header-fullwidth { padding: 0 5em; }
}
@media screen and (max-width: 1280px) {
    .site-header-fullwidth { padding: 0 4em; }
}
@media screen and (max-width: 736px) {
    .site-header-fullwidth { padding: 0 2em; }
}

/* Hamburger-Toggle (Sidebar-Menü-Button) – einheitlich gelb, ohne grauen Kreis,
   bei allen Displaygrößen wie in der Desktop-Darstellung */
#sidebar .toggle:before {
    color: #fecd1e !important;
}
#sidebar .toggle:after {
    content: none !important;
    background: none !important;
}

/* Platz am linken Rand reservieren, damit das Hamburger-Menü nicht
   Logo/Slogan überlappt, auch bei schmaler Handy-Breite */
@media screen and (max-width: 1280px) {
    /* #header { padding-left: 2.5em !important; } */
}
@media screen and (max-width: 736px) {
    #header { padding-left: 2.5em !important; }
}

/* Seitentitel (h1) – kleiner und weniger Abstand nach unten
------------------------------------------------------------------------------ */
h1 { font-size: 3em !important; margin-bottom: 0 !important; }
@media screen and (max-width: 1680px) { h1 { font-size: 3em !important; } }
@media screen and (max-width: 980px)  { h1 { font-size: 2.5em !important; } }
@media screen and (max-width: 736px)  { h1 { font-size: 1.75em !important; } }

/* Startseite: h1 aus SEO-Gründen (Seitentitel der "home"-Seite), optisch aber
   identisch zu den übrigen h2-Überschriften der Startseiten-Sektionen
------------------------------------------------------------------------------ */
h1.home-title {
    font-size: 1.75em !important;
    margin: 0 0 1em 0 !important;
}

/* Section-Padding reduziert
------------------------------------------------------------------------------ */
#main > .inner > section              { padding: 1em 0 3em 0 !important; }
@media screen and (max-width: 1680px) { #main > .inner > section { padding: 1em 0 3em 0 !important; } }
@media screen and (max-width: 1280px) { #main > .inner > section { padding: 1em 0 2em 0 !important; } }
@media screen and (max-width: 736px)  { #main > .inner > section { padding: 1em 0 1em 0 !important; } }

/* Cover-Bild Abstand reduziert
------------------------------------------------------------------------------ */
.image.main { margin: 0 0 1em 0 !important; }

/* Carousel – volle Breite des #main, kein seitliches Padding
------------------------------------------------------------------------------ */

/*
 * Fix: Swipe.js setzt .swipe-wrap auf eine riesige absolute Pixelbreite
 * (Slides × containerBreite × 2). Ohne min-width:0 auf #main (Flex-Item)
 * wächst das Element über den Viewport hinaus und schiebt die Sidebar weg.
 * min-width:0 ist der Standard-Flex-Fix für überlaufende Kind-Elemente.
 */
#main {
    min-width: 0;
    overflow: hidden;
}

.carousel-fullwidth {
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 0;
}
.carousel-fullwidth .slider-container {
    width: 100%;
    position: relative;
}
.carousel-fullwidth .slider-item {
    height: 480px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
@media (max-width: 980px) {
    .carousel-fullwidth .slider-item { height: 320px; }
}
@media (max-width: 736px) {
    .carousel-fullwidth .slider-item { height: 220px; }
}

/* Carousel-Buttons: globale button-Styles des Themes zurücksetzen
------------------------------------------------------------------------------ */
.slider-prev,
.slider-next {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    height: 100% !important;
    line-height: normal !important;
    padding: 0 !important;
    color: inherit !important;
    text-transform: none !important;
    font-size: inherit !important;
    white-space: normal !important;
    letter-spacing: normal !important;
}
.slider-prev img,
.slider-next img {
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    display: block;
}

/* Slider-Pfeile als CSS-Maske: Farbe hier über "background-color" ändern */
.slider-arrow-icon {
    display: block;
    width: 48px;
    height: 48px;
    background-color: #fecd1e;
    opacity: 0.6;   /* 0 = unsichtbar, 1 = voll deckend */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}
.slider-arrow-left {
    -webkit-mask-image: url('/bl-plugins/carousel-creator/images/left1.svg');
    mask-image: url('/bl-plugins/carousel-creator/images/left1.svg');
}
.slider-arrow-right {
    -webkit-mask-image: url('/bl-plugins/carousel-creator/images/right1.svg');
    mask-image: url('/bl-plugins/carousel-creator/images/right1.svg');
}
------------------------------------------------------------------------------ */
.banner-fullwidth {
    width: 100%;
}

/* Praxis-Banner (gelber Kontaktblock)
------------------------------------------------------------------------------ */
.praxis-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em 2em;
    align-items: center;
    background: #fecd1e;
    color: #2d3436;
    padding: 1.8em 3em;
    margin: 0;
}
@media (max-width: 736px) {
    .praxis-banner { padding: 1.4em 1.5em; flex-direction: column; align-items: flex-start; }
}
.praxis-banner-left p { margin: 0 0 0.5em; font-size: 0.95em; line-height: 1.5; }
.praxis-banner-left strong { font-weight: 700; }
.praxis-banner-center {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    flex: 0 0 auto;
}
.praxis-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background: #2d3436;
    color: #fff !important;
    font-weight: 700;
    font-size: 1em;
    padding: 0.65em 1.6em;
    border-radius: 2em;
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
    transition: background 0.2s;
    min-width: 220px;
    justify-content: center;
}
.praxis-btn:hover { background: #1a1f20; }
.praxis-banner-right { font-size: 0.9em; line-height: 1.7; }
.praxis-banner-right strong { font-weight: 700; display: block; margin-bottom: 0.3em; }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: 0 1em; margin: 0; padding: 0; }
.hours-list dt { font-weight: 600; white-space: nowrap; }
.hours-list dd { margin: 0; }

/* Schwerpunkte-Grid auf der Startseite
------------------------------------------------------------------------------ */
.schwerpunkte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2em;
    margin: 1.5em 0 2.5em;
}
@media (max-width: 900px) {
    .schwerpunkte-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .schwerpunkte-grid { grid-template-columns: 1fr; }
}
.schwerpunkt-block a {
    display: block;
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
}
.schwerpunkt-block img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    transition: opacity 0.2s;
}
.schwerpunkt-block a:hover img { opacity: 0.85; }
.schwerpunkt-block h3 {
    font-size: 1em;
    font-weight: 700;
    margin: 0.6em 0 0.25em;
    color: #3d4449;
}
.schwerpunkt-block p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Testimonials
------------------------------------------------------------------------------ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4em;
    margin: 1.5em 0 2em;
}
@media (max-width: 680px) {
    .testimonials { grid-template-columns: 1fr; }
}
.testimonial {
    background: #f8f8f8;
    border-left: 4px solid #fecd1e;
    padding: 1.2em 3em;
    border-radius: 2px;
}
.testimonial p {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 0.6em;
    color: #555;
    font-style: italic;
}
.testimonial cite {
    font-size: 0.82em;
    font-weight: 700;
    color: #3d4449;
    font-style: normal;
}

/* Team-Seite
------------------------------------------------------------------------------ */
.team-aerzte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-bottom: 3em;
}
@media (max-width: 600px) {
    .team-aerzte { grid-template-columns: 1fr; }
}
.team-arzt {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.5em;
}

/* Foto-Wrapper: Bild + Namens-Label als Einheit */
.team-foto-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}
.team-foto-wrapper-small {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

/* Namens-Label: gelbes Banner direkt am oberen Bildrand */
.team-name-label,
.team-name-label-small {
    background: #fecd1e;
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 0;
    line-height: 1.4;
}
.team-name-label {
    font-size: 0.88em;
    padding: 0.3em 0.5em;
}
.team-name-label-small {
    font-size: 0.72em;
    padding: 0.25em 0.3em;
}

.team-arzt-foto {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}
.team-vita-banner {
    display: block;
    width: 100%;
    background: #f5f6f7;
    color: #3d4449 !important;
    font-size: 0.88em;
    font-weight: 700;
    padding: 0.4em 0.7em;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 0 0 3px 3px;
    line-height: 1.4;
}
.team-vita-banner:hover {
    background: #eff1f2;
    color: #3d4449 !important;
}
.team-vita-banner i {
    color: #fecd1e;
    margin-right: 0.3em;
}
.team-rolle { font-size: 0.9em; color: #666; margin: 0; }
.vita-link {
    font-size: 0.88em;
    font-weight: 700;
    color: #fecd1e !important;
    border-bottom: 1px solid transparent !important;
    text-decoration: none;
}
.vita-link:hover { border-bottom-color: #fecd1e !important; }

.team-praxis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    border-top: 2px solid #fecd1e;
    padding-top: 2em;
}
.team-mitglied {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4em;
}
.team-mitglied-foto {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: top;
    border-radius: 0 0 3px 3px;
    display: block;
}
.team-rolle-small {
    font-size: 0.78em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
