/* ==========================================================================
   Step2Sustainability – statischer 1:1-Nachbau
   Zusammengesetzt aus:
   - Twenty Seventeen (Parent-Theme, Originalwerte)
   - Twentyseventeen-Child (Anpassungen der Seite)
   - WordPress Block-CSS (Spalten, Bilder, Galerie)
   - Otter Blocks (Akkordeon, Tabs, Slider, Karte)
   - AYS Popup Box
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schrift: Libre Franklin (aus dem Theme, Subset latin)
   Dateien nach /fonts/ legen – siehe BILDER-UND-SCHRIFTEN.md
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-display: fallback; font-weight: 300;
	src: url('fonts/libre-franklin-latin-300-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-display: fallback; font-weight: 400;
	src: url('fonts/libre-franklin-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: italic; font-display: fallback; font-weight: 400;
	src: url('fonts/libre-franklin-latin-400-italic.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-display: fallback; font-weight: 600;
	src: url('fonts/libre-franklin-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-display: fallback; font-weight: 800;
	src: url('fonts/libre-franklin-latin-800-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --------------------------------------------------------------------------
   1.0 Normalize / Box-Modell
   -------------------------------------------------------------------------- */
html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { margin: 0; background: #fff; }
article, aside, footer, header, nav, section, figcaption, figure, main { display: block; }
figure { margin: 1em 0; }
b, strong { font-weight: 700; }
mark, ins { background: #eee; text-decoration: none; }
img { border-style: none; }
details, summary { display: block; }
summary { display: list-item; }

/* --------------------------------------------------------------------------
   2.0 Accessibility
   -------------------------------------------------------------------------- */
.screen-reader-text {
	clip-path: inset(50%); height: 1px; overflow: hidden;
	position: absolute !important; width: 1px;
	word-wrap: normal !important; word-break: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
	clip-path: none; color: #21759b; display: block; font-size: 0.875rem; font-weight: 700;
	height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
	text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* --------------------------------------------------------------------------
   3.0 Ausrichtungen / Clearings
   -------------------------------------------------------------------------- */
.alignleft { display: inline; float: left; margin-right: 1.5em; }
.alignright { display: inline; float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

.clear:before, .clear:after,
.entry-content:before, .entry-content:after,
.site-header:before, .site-header:after,
.site-content:before, .site-content:after,
.site-footer:before, .site-footer:after { content: ""; display: table; table-layout: fixed; }
.clear:after, .entry-content:after, .site-header:after,
.site-content:after, .site-footer:after { clear: both; }

/* --------------------------------------------------------------------------
   5.0 Typografie
   -------------------------------------------------------------------------- */
body, button, input, select, textarea {
	color: #333;
	font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 15px; font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.66;
}
h1, h2, h3, h4, h5, h6 { clear: both; line-height: 1.4; margin: 0 0 0.75em; padding: 1.5em 0 0; }
h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child { padding-top: 0; }
h1 { font-size: 1.5rem; font-weight: 300; }
h2 { color: #666; font-size: 1.25rem; font-weight: 300; }
h3 { color: #333; font-size: 1.125rem; font-weight: 300; }
h4 { color: #333; font-size: 1rem; font-weight: 800; }
h5 { color: #767676; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
h6 { color: #333; font-size: 0.9375rem; font-weight: 800; }
p { margin: 0 0 1.5em; padding: 0; }
dfn, cite, em, i { font-style: italic; }
address { margin: 0 0 1.5em; }
:focus { outline: none; }

/* --------------------------------------------------------------------------
   8.0 Listen
   -------------------------------------------------------------------------- */
ul, ol { margin: 0 0 1.5em; padding: 0; }
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }

/* --------------------------------------------------------------------------
   10.0 Links
   -------------------------------------------------------------------------- */
a { color: #222; text-decoration: none; background-color: transparent; }
a:focus { outline: thin dotted; }
a:hover, a:active { color: #000; outline: 0; }

.entry-content a {
	box-shadow: inset 0 -1px 0 rgba(15, 15, 15, 1);
	transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
}
.entry-content a:focus, .entry-content a:hover {
	color: #000;
	box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
}
.entry-content a img { box-shadow: 0 0 0 8px #fff; }
.site-info a { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1); text-decoration: none; }

/* --------------------------------------------------------------------------
   12.0 Navigation
   -------------------------------------------------------------------------- */
.navigation-top {
	background: #fff;
	border-bottom: 1px solid #eee;
	border-top: 1px solid #eee;
	font-size: 1rem;
	position: relative;
}
.navigation-top .wrap { max-width: 1000px; padding: 0; }
.navigation-top a { color: #222; font-weight: 600; transition: color 0.2s; }
.navigation-top .current-menu-item > a { color: #767676; }

.main-navigation { clear: both; display: block; }
.main-navigation ul { background: #fff; list-style: none; margin: 0; padding: 0 1.5em; text-align: left; }
.js .main-navigation ul { display: none; }
.main-navigation > div > ul { border-top: 1px solid #eee; padding: 0.75em 1.695em; }
.js .main-navigation.toggled-on > div > ul { display: block; }
.main-navigation li { border-bottom: 1px solid #eee; position: relative; }
.main-navigation li:last-child { border: 0; }
.main-navigation a { display: block; padding: 0.5em 0; text-decoration: none; }
.main-navigation a:hover { color: #767676; }

/* Menü-Umschalter */
.menu-toggle {
	background-color: transparent; border: 0; box-shadow: none; color: #222;
	display: none; font-size: 0.875rem; font-weight: 800; line-height: 1.5;
	margin: 1px auto 2px; padding: 1em; text-shadow: none; cursor: pointer;
	font-family: inherit;
}
.js .menu-toggle { display: block; }
.menu-toggle:hover, .menu-toggle:focus { background-color: transparent; box-shadow: none; }
.menu-toggle:focus { outline: thin solid; }
.menu-toggle .icon { margin-right: 0.5em; top: -2px; }
.toggled-on .menu-toggle .icon-bars, .menu-toggle .icon-close { display: none; }
.toggled-on .menu-toggle .icon-close { display: inline-block; }

.site-header .menu-scroll-down { display: none; }

/* --------------------------------------------------------------------------
   13.0 Layout
   -------------------------------------------------------------------------- */
#page { position: relative; word-wrap: break-word; }
.wrap { margin-left: auto; margin-right: auto; max-width: 700px; padding-left: 2em; padding-right: 2em; }
.wrap:after { clear: both; content: ""; display: block; }

/* 13.1 Header */
#masthead .wrap { position: relative; }
.site-header { background-color: #fafafa; position: relative; }

.site-branding { padding: 1em 0; position: relative; transition: margin-bottom 0.2s; z-index: 3; }
.site-branding a { text-decoration: none; transition: opacity 0.2s; }
.site-branding a:hover, .site-branding a:focus { opacity: 0.7; }

.site-title, .site-description { position: absolute; clip-path: inset(50%); }

.custom-logo-link { display: inline-block; padding-right: 1em; vertical-align: middle; width: auto; }
.custom-logo-link img { display: inline-block; max-height: 80px; width: auto; }
body.home.title-tagline-hidden.has-header-image .custom-logo-link img { max-height: 200px; max-width: 100%; }

.custom-header { position: relative; }
.has-header-image.twentyseventeen-front-page .custom-header { display: table; height: 300px; height: 75vh; width: 100%; }
.custom-header-media { bottom: 0; left: 0; overflow: hidden; position: absolute; right: 0; top: 0; width: 100%; }
/* Child-Theme: Grauverlauf über dem Headerbild entfernt */
.custom-header-media:before { background: none; }
.has-header-image .custom-header-media img {
	position: fixed; height: auto; left: 50%; max-width: 1000%;
	min-height: 100%; min-width: 100%; min-width: 100vw; width: auto; top: 50%;
	padding-bottom: 1px; transform: translateX(-50%) translateY(-50%);
}
@supports ( object-fit: cover ) {
	.has-header-image .custom-header-media img {
		height: 100%; left: 0; object-fit: cover; top: 0; transform: none; width: 100%;
	}
}
.has-header-image.twentyseventeen-front-page .site-branding {
	display: table-cell; height: 100%; vertical-align: bottom;
}

/* 13.2 Startseite */
.twentyseventeen-front-page .site-content { padding: 0; }
.twentyseventeen-panel { overflow: hidden; position: relative; }
.panel-image { background-position: center center; background-repeat: no-repeat; background-size: cover; position: relative; }
/* Child-Theme: Grauverlauf über den Panel-Bildern entfernt */
.panel-image:before { content: none; }
.twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child) { border-top: 1px solid #ddd; }
.panel-content { position: relative; }
.panel-content .wrap { padding-bottom: 0.5em; padding-top: 1.75em; }

/* 13.3 Inhalt */
.site-content-contain { background-color: #fff; position: relative; }
.site-content { padding: 2.5em 0 0; }

/* 13.4 Titel */
.page .panel-content .entry-title {
	color: #222;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.entry-header .entry-title { margin-bottom: 0.25em; }
.entry-title:not(:first-child) { padding-top: 0; }

/* 13.6 Footer */
.site-footer { border-top: 1px solid #eee; }
.site-footer .wrap { padding-bottom: 1.5em; padding-top: 2em; }
.site-info { font-size: 0.875rem; margin-bottom: 1em; }
.site-info a { color: #666; }
.site-info span[role=separator] { padding: 0 0.2em 0 0.4em; }
.site-info span[role=separator]::before { content: '\002f'; }
/* Zusätzliches CSS der Seite */
.site-info { display: none !important; }

/* 16.0 Medien */
img, video { height: auto; max-width: 100%; }
img.alignleft, img.alignright { float: none; margin: 0; }
embed, iframe, object { margin-bottom: 1.5em; max-width: 100%; }
.icon { display: inline-block; fill: currentColor; height: 1em; position: relative; top: -0.0625em; vertical-align: middle; width: 1em; }

/* --------------------------------------------------------------------------
   Child-Theme-Anpassungen
   -------------------------------------------------------------------------- */
.page .panel-content .entry-title { font-size: 1.25rem; }
.panel-content .wrap { padding-bottom: 0em; }

/* --------------------------------------------------------------------------
   WordPress Block-CSS
   -------------------------------------------------------------------------- */
.has-black-color { color: #000000 !important; }
.has-white-color { color: #ffffff !important; }
.has-medium-font-size { font-size: 20px !important; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

/* Spalten */
.wp-block-columns { box-sizing: border-box; display: flex; flex-wrap: wrap !important; align-items: normal !important; margin-bottom: 1.75em; gap: 2em; }
@media (min-width: 782px) {
	.wp-block-columns { flex-wrap: nowrap !important; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 0; flex-grow: 1; }
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*=flex-basis] { flex-grow: 0; }
}
@media (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
}
.wp-container-core-columns-is-layout-8f761849 { flex-wrap: nowrap; }
.wp-block-column { flex-grow: 1; min-width: 0; overflow-wrap: break-word; word-break: break-word; }

/* Bilder */
.wp-block-image { margin: 0 0 1em; }
.wp-block-image > a, .wp-block-image > figure > a { display: inline-block; }
.wp-block-image img { box-sizing: border-box; height: auto; max-width: 100%; vertical-align: bottom; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image .aligncenter, .wp-block-image.aligncenter { display: table; margin-left: auto; margin-right: auto; }
.wp-block-image figure { margin: 0; }
.wp-block-image.is-style-rounded img,
.wp-block-image .is-style-rounded img { border-radius: 9999px; }
:where(figure) { margin: 0 0 1em; }

/* Galerie */
.wp-block-gallery.has-nested-images { align-items: normal; display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image {
	box-sizing: border-box; display: flex; flex-direction: column; flex-grow: 1;
	justify-content: center; margin: 0; max-width: 100%; position: relative; width: 100%;
}
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img { height: 100%; object-fit: cover; width: 100%; }
/* Teamfotos: Originalseitenverhältnis 683 x 1024 (ovaler Zuschnitt wie im Original) */
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 683 / 1024; object-fit: cover; width: 100%; height: auto; }
/* Die Link-Unterkante des Themes ragt beim ovalen Zuschnitt seitlich unter dem
   Foto hervor. Nur für diese Bilder abgeschaltet. */
.entry-content .wp-block-image.is-style-rounded > a { box-shadow: none; }
.entry-content .wp-block-image.is-style-rounded > a:hover,
.entry-content .wp-block-image.is-style-rounded > a:focus { box-shadow: none; }

/* --------------------------------------------------------------------------
   Otter Blocks – Akkordeon (Portfolio)
   -------------------------------------------------------------------------- */
.wp-block-themeisle-blocks-accordion {
	margin: 20px auto;
	--title-color: initial; --title-background: initial; --content-background: initial;
	--border-width: 1px; --border-style: solid; --border-color: currentColor;
	--box-shadow: none; --padding: 18px 24px 18px 24px;
}
#wp-block-themeisle-blocks-accordion-af2dedd2 { --border-color: #2b4e39; }
.wp-block-themeisle-blocks-accordion-item { box-shadow: var(--box-shadow); margin: 0; }
.wp-block-themeisle-blocks-accordion-item__title {
	position: relative; z-index: 2; color: var(--title-color); background: var(--title-background);
	padding: var(--padding); list-style: none; cursor: pointer; user-select: none;
	display: grid; grid-template-columns: auto min-content; align-items: center;
}
.wp-block-themeisle-blocks-accordion .wp-block-themeisle-blocks-accordion-item__title > * { margin: 0; }
.wp-block-themeisle-blocks-accordion-item__title::-webkit-details-marker { display: none; }
.wp-block-themeisle-blocks-accordion-item__title::marker { content: ""; }
.wp-block-themeisle-blocks-accordion-item__content {
	position: relative; z-index: 2; background: var(--content-background); padding: var(--padding);
}
.wp-block-themeisle-blocks-accordion-item__content > p:last-child { margin-bottom: 0; }
.wp-block-themeisle-blocks-accordion:not(.is-style-default) .wp-block-themeisle-blocks-accordion-item__title {
	border: var(--border-width) var(--border-style) var(--border-color);
}
.wp-block-themeisle-blocks-accordion:not(.is-style-default) .wp-block-themeisle-blocks-accordion-item__content {
	border: var(--border-width) var(--border-style) var(--border-color); border-top: none;
}
.wp-block-themeisle-blocks-accordion:not(.is-style-default):not(.is-narrow-gap):not(.is-wide-gap):not(.is-wider-gap):not(.has-gap) > .wp-block-themeisle-blocks-accordion-item:not(:first-child) > .wp-block-themeisle-blocks-accordion-item__title {
	border-top: none;
}
.wp-block-themeisle-blocks-accordion:not(.has-icon) > .wp-block-themeisle-blocks-accordion-item:not([open]) > .wp-block-themeisle-blocks-accordion-item__title::after,
.wp-block-themeisle-blocks-accordion:not(.has-open-icon) > .wp-block-themeisle-blocks-accordion-item[open] > .wp-block-themeisle-blocks-accordion-item__title::after {
	content: ""; justify-self: end; align-self: center;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	width: 8px; height: 8px; flex-shrink: 0;
}
.wp-block-themeisle-blocks-accordion:not(.has-icon) > .wp-block-themeisle-blocks-accordion-item:not([open]) > .wp-block-themeisle-blocks-accordion-item__title::after {
	transform: rotate(45deg) translate(-25%, 0%);
}
.wp-block-themeisle-blocks-accordion:not(.has-open-icon) > .wp-block-themeisle-blocks-accordion-item[open] > .wp-block-themeisle-blocks-accordion-item__title::after {
	transform: rotate(225deg) translate(0%, -45%);
}

/* --------------------------------------------------------------------------
   Otter Blocks – Tabs (Partner, Publikationen)
   -------------------------------------------------------------------------- */
.wp-block-themeisle-blocks-tabs {
	--border-width: 3px; --border-radius: 8px; --border-color: #000;
	--title-color: #000; --title-background: transparent; --tab-color: white;
	--active-title-color: var(--title-color); --active-title-background: var(--tab-color);
	--content-text-color: inherit; --content-padding: 16px; --title-padding: 16px;
	--title-border-width: var(--border-width); --active-title-border-color: #ed6f57;
	--border-side-width: 3px; --font-size: 18px;
	margin: 15px 0px;
}
#wp-block-themeisle-blocks-tabs-66f2c61a,
#wp-block-themeisle-blocks-tabs-daee0a76 { --border-color: #3e4f45; --active-title-border-color: #ccd9b4; }

.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs__header {
	display: flex; flex-direction: row; justify-content: flex-start; border-color: var(--border-color);
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs__header_item {
	font-size: var(--font-size); padding: var(--title-padding);
	color: var(--title-color); background-color: var(--title-background);
	border-width: var(--title-border-width); cursor: pointer; margin: 0px;
	display: flex; align-items: center; border-color: rgba(0,0,0,0); border-style: solid;
	font-family: inherit; line-height: 1.5;
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs__header_item.active {
	color: var(--active-title-color); background: var(--active-title-background, white);
	border-width: var(--title-border-width); border-color: var(--border-color);
	border-style: solid; position: relative; z-index: 4;
}
.wp-block-themeisle-blocks-tabs:not(.has-pos-left) > .wp-block-themeisle-blocks-tabs__header { align-items: flex-end; }
.wp-block-themeisle-blocks-tabs:not(.has-pos-left) .wp-block-themeisle-blocks-tabs__header_item {
	margin-bottom: calc(0px - var(--border-side-width)); word-break: break-all; overflow-wrap: break-word;
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item { display: flex; margin: 0px; }
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item .wp-block-themeisle-blocks-tabs-item__header {
	width: 100%; border-style: solid; border-width: var(--border-width); border-color: var(--border-color);
	padding: var(--title-padding); color: var(--title-color); background-color: var(--title-background);
	margin: 0px; cursor: pointer;
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item .wp-block-themeisle-blocks-tabs-item__header.active {
	color: var(--active-title-color); background: var(--active-title-background);
	border-color: var(--border-color); border-bottom-width: 0px;
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item .wp-block-themeisle-blocks-tabs-item__content {
	border-width: var(--border-width); border-style: solid; border-color: var(--border-color);
	width: 100%; padding: var(--content-padding); display: none;
}
.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item .wp-block-themeisle-blocks-tabs-item__content.active {
	background: var(--tab-color); display: block;
}
.wp-block-themeisle-blocks-tabs:not(.has-pos-left).is-align-left > .wp-block-themeisle-blocks-tabs__header { justify-content: flex-start; }

.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > .wp-block-themeisle-blocks-tabs__header .wp-block-themeisle-blocks-tabs__header_item { border-width: var(--title-border-width); }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > .wp-block-themeisle-blocks-tabs__header .wp-block-themeisle-blocks-tabs__header_item.active { border-top-width: 0px; border-color: var(--active-title-border-color); }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > .wp-block-themeisle-blocks-tabs__header .wp-block-themeisle-blocks-tabs__header_item:not(.active) { border-top-width: 0px; border-right-width: 0px; border-left-width: 0px; }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > .wp-block-themeisle-blocks-tabs__header .wp-block-themeisle-blocks-tabs__header_item.active { border-right-width: 0px; border-left-width: 0px; }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__header { border-left-width: 0px; border-top-width: 0px; border-right-width: 0px; }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__header:not(.active) { border-bottom-color: rgba(0,0,0,0); }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__header.active { border-bottom-style: solid; border-color: var(--active-title-border-color); }
.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__content { border-left-width: 0px; border-right-width: 0px; }

@media (min-width: 800px) {
	.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item .wp-block-themeisle-blocks-tabs-item__header { display: none; }
	.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__content { border-bottom-width: 0px; }
}
@media (max-width: 800px) {
	.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs__header { display: none; }
	.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item { display: block; }
	.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item :is(.wp-block-themeisle-blocks-tabs-item__header, .wp-block-themeisle-blocks-tabs-item__content) { box-sizing: border-box; }
	.wp-block-themeisle-blocks-tabs .wp-block-themeisle-blocks-tabs-item:not(:last-child) > .wp-block-themeisle-blocks-tabs-item__content { border-bottom-width: 0px; }
	.wp-block-themeisle-blocks-tabs.is-style-border:not(.has-pos-left) > div.wp-block-themeisle-blocks-tabs__content > .wp-block-themeisle-blocks-tabs-item > .wp-block-themeisle-blocks-tabs-item__content { border-top-width: 0px; border-bottom-width: 0px; }
}

/* --------------------------------------------------------------------------
   Otter Blocks – Slider (Referenzen), Glide.js
   -------------------------------------------------------------------------- */
.glide { position: relative; width: 100%; box-sizing: border-box; }
.glide * { box-sizing: inherit; }
.glide__track { overflow: hidden; }
.glide__slides {
	position: relative; width: 100%; list-style: none; backface-visibility: hidden;
	transform-style: preserve-3d; touch-action: pan-Y; overflow: hidden;
	margin: 0; padding: 0; white-space: nowrap; display: flex; flex-wrap: nowrap; will-change: transform;
}
.glide__slide { width: 100%; height: 100%; flex-shrink: 0; white-space: normal; user-select: none; }

.wp-block-themeisle-blocks-slider {
	--height: 400px; --height-tablet: var(--height); --height-mobile: var(--height-tablet);
	--pagination-color: rgba(255,255,255,0.5); --pagination-active-color: #fff;
	--border-color: black; --border-width: 0; --border-radius: 0; --width: auto;
	width: var(--width); display: grid;
}
#wp-block-themeisle-blocks-slider-b2734d20 { --height: 300px; --height-mobile: 220px; }
.wp-block-themeisle-blocks-slider .glide__track {
	border: var(--border-width) solid var(--border-color);
	border-radius: var(--border-radius); overflow: hidden;
}
.wp-block-themeisle-blocks-slider .glide__slides { height: var(--height); }
@media (min-width: 600px) and (max-width: 960px) {
	.wp-block-themeisle-blocks-slider .glide__slides { height: var(--height-tablet) !important; }
}
@media (max-width: 600px) {
	.wp-block-themeisle-blocks-slider .glide__slides { height: var(--height-mobile) !important; }
}
.wp-block-themeisle-blocks-slider .wp-block-themeisle-blocks-slider-item-wrapper { position: relative; }
.wp-block-themeisle-blocks-slider .wp-block-themeisle-blocks-slider-item-wrapper figure { height: 100%; margin: 0; }
.wp-block-themeisle-blocks-slider .wp-block-themeisle-blocks-slider-item-wrapper figure img {
	width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
}
.glide__bullets {
	position: absolute; z-index: 2; bottom: 2em; left: 50%;
	display: inline-flex; list-style: none; transform: translateX(-50%);
}
.glide__bullet {
	background-color: var(--pagination-color); width: 9px; height: 9px; padding: 0;
	border-radius: 50%; border: 2px solid transparent; transition: all 0.3s ease-in-out;
	cursor: pointer; line-height: 0; box-shadow: 0 0.25em 0.5em 0 rgba(0,0,0,0.1); margin: 0 0.25em;
}
.glide__bullet:focus { outline: none; }
.glide__bullet:hover, .glide__bullet:focus { border: 2px solid #fff; background-color: var(--pagination-color); }
.glide__bullet--active { background-color: var(--pagination-active-color); }

/* --------------------------------------------------------------------------
   Otter Blocks – Karte (Kontakt)
   -------------------------------------------------------------------------- */
.wp-block-themeisle-leaflet-blocks-map {
	--height: 400px; --height-tablet: var(--height); --height-mobile: var(--height-tablet);
	margin: 20px 0; height: var(--height);
}
@media (min-width: 600px) and (max-width: 960px) { .wp-block-themeisle-leaflet-blocks-map { height: var(--height-tablet) !important; } }
@media (max-width: 600px) { .wp-block-themeisle-leaflet-blocks-map { height: var(--height-mobile) !important; } }
.wp-block-themeisle-leaflet-blocks-map .leaflet-bar a { text-decoration: none !important; }
.leaflet-container a { box-shadow: none; }

/* --------------------------------------------------------------------------
   AYS Popup Box
   -------------------------------------------------------------------------- */
.ays-pb-modals, .ays-pb-modal_1 { display: none; }
.ays-pb-modals { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; pointer-events: none; }
.ays-pb-modal_1 {
	position: fixed; max-height: none; overflow: auto; pointer-events: auto;
	animation-duration: 1s; animation-fill-mode: both;
}
.ays-pb-modal_1 .ays_content_box p { color: #000000; font-family: inherit; margin: 0 0 0.6em; }
.ays-pb-modal_1 .ays_content_box img { display: inline-block; margin: 0 auto; }
.ays-pb-modal_1 .ays_content_box a { color: #000; box-shadow: none; }
.ays-pb-modal-close_1 {
	position: absolute; top: 0; left: 0; padding: 0;
	font-size: 28px; line-height: 1; cursor: pointer; user-select: none;
}
.ays-pb-fadeIn { animation-name: aysPbFadeIn; }
.ays-pb-fadeOutUpBig { animation-name: aysPbFadeOutUpBig; }
@keyframes aysPbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes aysPbFadeOutUpBig { from { opacity: 1; transform: translate3d(0,0,0); } to { opacity: 0; transform: translate3d(0,-2000px,0); } }
@media screen and (max-width: 768px) {
	.ays-pb-modal_1 {
		width: 100% !important; max-width: 100% !important; height: 280px !important;
		box-shadow: 0px 0px 15px #000 !important; box-sizing: border-box; max-height: none;
	}
}

/* --------------------------------------------------------------------------
   19.0 Media Queries
   -------------------------------------------------------------------------- */
@media screen and (min-width: 30em) {
	body, button, input, select, textarea { font-size: 18px; font-size: 1.125rem; }
	h1 { font-size: 1.875rem; }
	h2 { font-size: 1.625rem; }
	h3 { font-size: 1.375rem; }
	h4 { font-size: 1.125rem; }
	h5 { font-size: 0.8125rem; }
	h6 { font-size: 1rem; }

	img.alignleft { float: left; margin-right: 1.5em; }
	img.alignright { float: right; margin-left: 1.5em; }

	.site-branding { padding: 3em 0; }

	.panel-content .wrap { padding-bottom: 2em; padding-top: 3.5em; }
	.panel-content .entry-header { margin-bottom: 4.5em; }

	.site-footer { font-size: 1rem; }
}

@media screen and (min-width: 48em) {
	html { scroll-padding-top: 72px; }

	body, button, input, select, textarea { font-size: 16px; font-size: 1rem; line-height: 1.5; }

	/* Layout */
	.wrap { max-width: 1000px; padding-left: 3em; padding-right: 3em; }

	/* Branding */
	.site-branding { margin-bottom: 0; }
	.has-header-image.twentyseventeen-front-page .site-branding {
		bottom: 0; display: block; left: 0; height: auto;
		padding-top: 0; position: absolute; width: 100%;
	}
	.has-header-image.twentyseventeen-front-page .custom-header { display: block; height: auto; }
	.custom-header-media { height: 165px; position: relative; }
	.twentyseventeen-front-page.has-header-image .custom-header-media { height: 0; position: relative; }
	.custom-logo-link { padding-right: 2em; }
	.custom-logo-link img,
	body.home.title-tagline-hidden.has-header-image .custom-logo-link img { max-width: 350px; }
	.title-tagline-hidden.home.has-header-image .custom-logo-link img { max-height: 200px; }

	/* Navigation */
	.navigation-top {
		bottom: 0; font-size: 0.875rem; left: 0; position: absolute;
		right: 0; width: 100%; z-index: 3;
	}
	.navigation-top .wrap { max-width: 1000px; padding: 0.75em 3.4166666666667em; }
	.navigation-top nav { margin-left: -1.25em; }
	.site-navigation-fixed.navigation-top {
		bottom: auto; position: fixed; left: 0; right: 0; top: 0; width: 100%; z-index: 1000;
	}
	.js .menu-toggle { display: none; }
	.main-navigation { width: auto; }
	.js .main-navigation ul, .js .main-navigation > div > ul { display: block; }
	.main-navigation ul { background: transparent; padding: 0; }
	.main-navigation > div > ul { border: 0; margin-bottom: 0; padding: 0; }
	.main-navigation li { border: 0; display: inline-block; }
	.main-navigation a { padding: 1em 1.25em; }

	/* Pfeil nach unten */
	.site-header .menu-scroll-down { display: block; padding: 1em; position: absolute; right: 0; color: #fff; top: 2em; }
	.site-header .navigation-top .menu-scroll-down { color: #767676; top: 0.7em; }
	.site-header .site-navigation-fixed .menu-scroll-down { display: none; }
	.menu-scroll-down .icon { height: 18px; width: 18px; transform: rotate(90deg); }
	.menu-scroll-down:focus { outline: thin dotted; }

	/* Startseite */
	.twentyseventeen-front-page.has-header-image .site-branding { margin-bottom: 70px; }
	.twentyseventeen-front-page.has-header-image .custom-header-media {
		height: 1200px; height: 100vh; max-height: 100%; overflow: hidden;
	}
	.panel-content .wrap { padding-bottom: 4.5em; padding-top: 6em; }
	.panel-image { height: 100vh; max-height: 1200px; }
	.background-fixed .panel-image { background-attachment: fixed; }
	@supports ( -webkit-touch-callout: none ) {
		.background-fixed .panel-image { background-attachment: scroll; }
	}

	/* Zweispaltiges Layout: Label links, Inhalt rechts */
	.page-two-column .panel-content .entry-header { float: left; width: 36%; }
	.page-two-column .panel-content .entry-content { float: right; width: 58%; }

	.site-content { padding: 5.5em 0 0; }

	/* Footer */
	.site-footer { font-size: 0.875rem; line-height: 1.6; margin-top: 3em; }
}

@media screen and (min-width: 67em) {
	.navigation-top .wrap { padding: 0.75em 2em; }
	.navigation-top nav { margin-left: 0; }
}

/* Child-Theme-Regeln zuletzt, damit sie wie im Original gewinnen */
.page .panel-content .entry-title { font-size: 1.25rem; }
.panel-content .wrap { padding-bottom: 0em; }

/* --------------------------------------------------------------------------
   Korrektur: Teamfotos
   Die drei Porträts sind mit LinkedIn verlinkt. Das Theme legt jedem Link im
   Inhaltsbereich einen 1px-Unterstrich unter. Bei eckigen Bildern verdeckt der
   weiße 8px-Rahmen diesen Strich, bei den runden Porträts bleiben links und
   rechts unten zwei schwarze Striche sichtbar. Deshalb hier abgeschaltet.
   -------------------------------------------------------------------------- */
.entry-content .wp-block-gallery a,
.entry-content .wp-block-gallery a:hover,
.entry-content .wp-block-gallery a:focus {
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Blocksatz und Worttrennung
   Absätze und Listen im Blocksatz, Trennung nach deutschen Regeln
   (greift über lang="de" im html-Element). Zentriert oder links gesetzte
   Absätze behalten ihre Ausrichtung.
   -------------------------------------------------------------------------- */
.entry-content p:not([class*="has-text-align"]),
.entry-content li {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* --------------------------------------------------------------------------
   Korrektur: Logo der Sustainability People Company unter Partner
   Das Logo ist verlinkt, dadurch lag der Unterstrich des Themes darunter.
   -------------------------------------------------------------------------- */
.entry-content a[href*="sustainability-people.com"],
.entry-content a[href*="sustainability-people.com"]:hover,
.entry-content a[href*="sustainability-people.com"]:focus {
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Korrektur: verlinkte Logos (Partner)
   Gleiche Ursache wie bei den Teamfotos - das Theme unterstreicht jeden Link
   im Inhaltsbereich. Bei den Partnerlogos erscheint dadurch ein schwarzer
   Strich unter dem Bild.
   -------------------------------------------------------------------------- */
.entry-content .wp-block-image a,
.entry-content .wp-block-image a:hover,
.entry-content .wp-block-image a:focus {
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Blocksatz mit deutscher Silbentrennung
   Die Trennung uebernimmt der Browser anhand der Sprache des Dokuments
   (<html lang="de">), also nach den Regeln des Duden. Absaetze mit eigener
   Ausrichtung (zentriert, links, rechts) bleiben unangetastet.
   -------------------------------------------------------------------------- */
.entry-content p:not([class*="has-text-align"]),
.entry-content li {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* --------------------------------------------------------------------------
   Korrektur: Teamfotos
   Die Portraits stecken in Galerie-Bloecken. Durch die Kombination aus
   inline-block-Verlinkung und prozentualer Hoehe konnte das Bild ueber seinen
   Platz hinauslaufen und in die darunterstehenden Namen ragen. Deshalb hier
   eindeutige Blockdarstellung mit fester Bildproportion.
   -------------------------------------------------------------------------- */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image a {
	display: block;
	width: 100%;
	max-width: 100%;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 683 / 1024;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Abstand zwischen Teamfoto und Name
   Das Theme gibt Galerie-Bloecken 1.5em Abstand nach unten (blocks.css).
   Meine Grundregel weiter oben hatte den Aussenabstand auf 0 gesetzt, dadurch
   begann der Name direkt an der Unterkante des Fotos.
   -------------------------------------------------------------------------- */
.entry-content .wp-block-gallery.has-nested-images {
	margin-bottom: 1.5em;
}

/* --------------------------------------------------------------------------
   Menüleiste auch in der mobilen Ansicht oben am Bildschirm halten
   Bisher galt die Fixierung nur ab 48em. Die Umschaltung im JavaScript lief
   schon immer auf allen Breiten, ihr fehlte nur diese Regel.
   -------------------------------------------------------------------------- */
.site-navigation-fixed.navigation-top {
	position: fixed;
	bottom: auto;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000;
}

/* Das aufgeklappte Menü soll scrollbar bleiben, falls es höher wird als der
   Bildschirm. */
.site-navigation-fixed .main-navigation > div > ul {
	max-height: calc(100vh - 4em);
	overflow-y: auto;
}


/* --------------------------------------------------------------------------
   Sprungmarken in der mobilen Ansicht
   Die Menueleiste ist jetzt auch mobil fixiert und ca. 54px hoch. Ohne diesen
   Versatz landen Ueberschriften nach einem Klick (oder nach einer Weiterleitung
   von einer alten Adresse) unter der Leiste. Ab 48em gilt weiterhin 72px.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 47.99em) {
	html { scroll-padding-top: 56px; }
}

/* --------------------------------------------------------------------------
   Karte: Hinweis zur Gestensteuerung
   -------------------------------------------------------------------------- */
.karte-hinweis {
	position: absolute;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.25rem;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}
.karte-hinweis.sichtbar { opacity: 1; }

/* --------------------------------------------------------------------------
   Slider: Wischen ermoeglichen, ohne senkrechtes Scrollen der Seite zu sperren
   -------------------------------------------------------------------------- */
.wp-block-themeisle-blocks-slider { touch-action: pan-y; }
.wp-block-themeisle-blocks-slider img { -webkit-user-drag: none; user-select: none; }

/* --------------------------------------------------------------------------
   Bewegung reduzieren (Systemeinstellung)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ays-pb-fadeIn, .ays-pb-fadeOutUpBig { animation: none; }
	.glide__bullet, .karte-hinweis { transition: none; }
}
