/*
 * balkon-gewaechshaus.de – TYPO3 14 (2026)
 * Optik der Seite von 2017 (Bootstrap 3 + t3sbootstrap): Open Sans light, Schreibschrift „Calligraffitti“,
 * abwechselnd grüne und weiße Abschnitte mit Welle am unteren Rand, rote Knöpfe.
 * Geändert: Schriften lokal statt Google Fonts, Grün der Abschnitte etwas dunkler (Kontrast WCAG AA),
 * ohne Bootstrap/jQuery, Akkordeon als details/summary.
 */

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../Fonts/open-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../Fonts/open-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../Fonts/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Calligraffitti'; font-style: normal; font-weight: 400; font-display: swap; src: url('../Fonts/calligraffitti-latin-400-normal.woff2') format('woff2'); }

:root {
    --gruen: #4e9a2e;          /* Schrift/Akzente auf Weiß (alt #5aa335, jetzt Kontrast ≥ 3:1 für große Schrift) */
    --gruen-hell: #5aa335;     /* Linien, Markierungen (wie alt) */
    --gruen-flaeche: #437d27;  /* Hintergrund grüner Abschnitte, weiße Schrift ≥ 4,5:1 */
    --gruen-dunkel: #3c7024;
    --rot: #ca1d29;
    --rot-hell: #b5161f;
    --grau: #585858;
    --hell: #ffffff;
    --kopf-hoehe: 60px;
    --breite: 1140px;
    --text: clamp(1.125rem, 0.95rem + 0.55vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 300;
    font-size: var(--text);
    line-height: 1.45;
    color: var(--grau);
    background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
strong, b { font-weight: 600; }
p { margin: 0 0 1em; }

.nur-vorlesen {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprunglink { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.sprunglink:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

/* ------------------------------------------------------------------ Kopf */
.kopf {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--kopf-hoehe);
    display: flex; align-items: stretch; justify-content: flex-end;
    background: #fff;
    box-shadow: 0 8px 0 0 rgba(0, 0, 0, .11);
}
.logo {
    position: absolute; left: 10%; top: 0;
    display: block; padding: .625rem;
    background: linear-gradient(0deg, #d7d7d7 0%, #fff 100%);
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .13);
    line-height: 0;
}
.logo img { width: 278px; }

.hauptnavigation ul { list-style: none; margin: 0; padding: 0 1rem 0 0; display: flex; height: 100%; }
.hauptnavigation li { display: flex; }
.hauptnavigation a {
    display: flex; align-items: center;
    padding: 0 .95rem;
    font-size: .95rem; font-weight: 400; color: #555; text-decoration: none;
    border-bottom: 8px solid transparent;
    transition: border-color .2s linear;
}
.hauptnavigation a:hover,
.hauptnavigation a[aria-current="true"],
.hauptnavigation a.aktiv { border-bottom-color: var(--gruen-hell); }

.menue-knopf {
    display: none;
    align-self: center; margin-right: 1.25rem;
    width: 46px; height: 40px; border: 0; border-radius: 4px;
    background: var(--gruen-flaeche); color: #fff; cursor: pointer;
}
.menue-symbol, .menue-symbol::before, .menue-symbol::after {
    display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor; position: relative; content: '';
}
.menue-symbol::before { position: absolute; top: -7px; }
.menue-symbol::after { position: absolute; top: 7px; }

/* ------------------------------------------------------------------ Abschnitte der Startseite */
.sektion {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--kopf-hoehe) + 7rem) 1.5rem calc(9.1vw + 3rem);
    overflow: hidden;
}
.sektion::after {
    /* Welle am unteren Rand wie 2017 */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 0; padding-top: 9.1%;
    background: url('../Images/wave-s.png') center bottom / 100% auto no-repeat;
    pointer-events: none;
}
.sektion__innen { max-width: var(--breite); margin: 0 auto; }

.sektion--gruen { background: var(--gruen-flaeche); color: var(--hell); }
.sektion--gruen h2, .sektion--gruen h3, .sektion--gruen h4 { color: var(--hell); }
.sektion--gruen a:not(.knopf) { color: var(--hell); }

/* Einstieg: Bild über die volle Breite, Text darüber */
.sektion--einstieg { padding: 0; }
.sektion--einstieg .sektion__innen { max-width: none; }
.sektion--einstieg .frame { margin: 0; }
.einstieg { position: relative; min-height: 100vh; }
.einstieg__bild { position: absolute; inset: 0; display: block; }
.einstieg__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.einstieg__text { position: absolute; left: 10%; top: 22%; max-width: 40rem; }
.einstieg__text h1 { margin: 0; }

/* ------------------------------------------------------------------ Typografie */
h1 {
    font-weight: 300; text-transform: uppercase; color: var(--gruen-dunkel);
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.15; margin: 0 0 .5em;
}
h2 {
    font-family: 'Calligraffitti', cursive; font-weight: 400; color: var(--gruen);
    font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.2; margin: 0 0 .4em;
}
h3 {
    font-weight: 400; text-transform: uppercase; color: var(--grau);
    font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin: 0 0 .6em;
}
h3 small { font-size: .86em; color: var(--gruen); }
h3 small::before { content: '|'; margin: 0 .6em; position: relative; top: -.1em; color: var(--grau); }
.sektion--gruen h3 small { color: var(--hell); }
h4 { font-weight: 400; text-transform: uppercase; font-size: clamp(1.2rem, 1rem + .7vw, 1.75rem); margin: 0 0 .6em; }

.font-calli {
    font-family: 'Calligraffitti', cursive; color: var(--gruen); line-height: 1;
    font-size: clamp(5rem, 2rem + 9vw, 11rem); letter-spacing: -.04em;
    margin: .1em 0 .25em -.15em;
}
.unterzeile { text-align: center; font-size: 1rem; margin: 0 0 .5rem; }

.ce-headline-center, .text-center { text-align: center; }
.ce-headline-right, .text-end { text-align: right; }
.text-start { text-align: left; }
.text-justify { text-align: justify; hyphens: auto; }

/* Knöpfe (in alten Texten: Links in neuem Fenster) */
.knopf {
    display: inline-block; margin-top: 1.25rem;
    padding: .5em 2.2em; text-align: center; text-decoration: none;
    font-size: clamp(1rem, .9rem + .35vw, 1.25rem); font-weight: 400;
    background: var(--rot); color: #fff;
    transition: background .3s linear;
}
.knopf:hover, .knopf:focus-visible { background: var(--rot-hell); color: #fff; }
.einstieg .knopf { background: var(--gruen-flaeche); padding: .45em .8em; margin-top: .5rem; }
.einstieg .knopf:hover { background: var(--gruen-dunkel); }

/* ------------------------------------------------------------------ Inhaltselemente */
.frame { margin-bottom: 2.5rem; }
.frame:last-child { margin-bottom: 0; }
.ce-bodytext > :last-child { margin-bottom: 0; }

.ce-border img { border: 10px solid #fff !important; box-shadow: 7px 7px 11px rgba(0, 0, 0, .2); }
.ce-gallery figure { margin: 0; }

hr.ce-div { border: 0; border-top: 7px solid #e3e3e3; margin: 2.5rem 0; }

/* Spalten (EXT:container) */
.spalten { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 768px) {
    .spalten--66 { grid-template-columns: 1fr 1fr; }
    .spalten--75 { grid-template-columns: 7fr 5fr; }
    .spalten--57 { grid-template-columns: 5fr 7fr; }
    .spalten--444 { grid-template-columns: repeat(3, 1fr); }
}
.spalte > .frame { margin-bottom: 1.5rem; }

/* Produkt (Layout „Produkt“): Bild links, Daten rechts */
.frame-layout-100 .spalten { align-items: center; }
.frame-layout-100 .ce-gallery { float: none; }
.frame-layout-100 .ce-gallery img { max-width: 430px; width: 100%; }
.frame-layout-100 .ce-right .ce-gallery,
.frame-layout-100 .ce-above.ce-right .ce-gallery { float: right; }
.frame-layout-100 p { font-size: clamp(1.05rem, .95rem + .3vw, 1.25rem); }
@media (min-width: 768px) { .frame-layout-100 .spalte:last-child { padding-left: 1rem; } }

/* Video mit Schatten */
.frame-layout-105 .ce-gallery,
.frame-layout-105 figure.video { max-width: 900px; width: 100%; margin: 0 auto; float: none; }
.frame-layout-105 .ce-outer, .frame-layout-105 .ce-inner { float: none; position: static; right: auto; }
.frame-layout-105 .ce-row, .frame-layout-105 .ce-column { display: block; float: none; width: 100%; }
.frame-layout-105 .video-embed { position: relative; }
.frame-layout-105 .video-embed::after {
    content: ''; position: absolute; left: -12%; right: -12%; bottom: -28px; height: 40px;
    background: url('../Images/vid_shad-s.png') center top / 100% auto no-repeat; z-index: -1;
}
.frame-layout-105 .ce-textpic { position: relative; z-index: 0; }

/* Zwei-Klick-YouTube */
.zweiklick { position: relative; aspect-ratio: 16 / 9; background: #1d1d1d; }
.zweiklick-start {
    position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #1d1d1d;
}
.zweiklick-vorschau { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.zweiklick-knopf {
    position: absolute; left: 50%; top: 50%; width: 86px; height: 60px; transform: translate(-50%, -50%);
    border-radius: 14px; background: var(--rot);
}
.zweiklick-knopf::after {
    content: ''; position: absolute; left: 36px; top: 18px;
    border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.zweiklick-start:hover .zweiklick-knopf, .zweiklick-start:focus-visible .zweiklick-knopf { background: var(--rot-hell); }
.zweiklick-hinweis {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .5rem .75rem;
    font-size: .8rem; line-height: 1.35; color: #fff; background: rgba(0, 0, 0, .7); text-align: center;
}
.zweiklick-hinweis a { color: #fff; }
.zweiklick iframe, .video-embed-item { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zweiklick-aktiv iframe { position: absolute; }

/* Fragen und Antworten */
.faq { max-width: 960px; margin: 0 auto; }
.faq__eintrag { border: 2px solid rgba(255, 255, 255, .55); margin-bottom: .6rem; }
.sektion--weiss .faq__eintrag { border-color: #ddd; }
.faq__eintrag summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .7rem 1rem; font-size: clamp(1.1rem, .95rem + .45vw, 1.5rem); font-weight: 400;
    transition: background .3s linear;
}
.faq__eintrag summary::-webkit-details-marker { display: none; }
.faq__eintrag summary::after { content: '+'; font-size: 1.6em; line-height: 1; font-weight: 300; }
.faq__eintrag[open] summary::after { content: '–'; }
.faq__eintrag summary:hover, .faq__eintrag[open] summary { background: var(--rot); color: #fff; }
.faq__antwort { padding: 1rem 1.25rem .25rem; }
.faq__antwort p { font-size: clamp(1rem, .95rem + .25vw, 1.25rem); }

/* Webshop-Logo */
.sektion .ce-center .ce-gallery img[src*="hoklartherm-logo"] { max-width: 278px; }

/* ------------------------------------------------------------------ Unterseiten (Impressum, Datenschutz) */
.unterseite { max-width: 52rem; margin: 0 auto; padding: calc(var(--kopf-hoehe) + 5.5rem) 1.5rem 4rem; font-size: 1.05rem; }
.unterseite h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.unterseite h2 { font-family: inherit; font-weight: 400; font-size: 1.35rem; color: var(--gruen-dunkel); margin: 1.8em 0 .5em; }
.unterseite h3 { font-size: 1.1rem; text-transform: none; font-weight: 600; margin: 1.4em 0 .4em; }
.unterseite a { color: var(--gruen-dunkel); }
.unterseite ul { padding-left: 1.2em; }

/* ------------------------------------------------------------------ Fuß */
.fuss {
    background: var(--gruen-dunkel); color: #fff; font-size: .9rem;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; padding: 1rem 1.5rem;
}
.fuss p { margin: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.fuss a { color: #fff; }

/* ------------------------------------------------------------------ Tablet / Handy */
@media (max-width: 1024px) {
    .sektion { min-height: 0; padding-top: calc(var(--kopf-hoehe) + 3.5rem); }
    .hauptnavigation a { padding: 0 .6rem; }
    .logo { left: 1.5rem; }
}
@media (max-width: 900px) {
    .logo { padding: .35rem .6rem; box-shadow: none; background: none; }
    .logo img { width: auto; height: 46px; }
    .menue-knopf { display: block; }
    .js .hauptnavigation { display: none; }
    .js .hauptnavigation.offen { display: block; }
    .hauptnavigation {
        position: absolute; top: calc(var(--kopf-hoehe) + 8px); left: 0; right: 0;
        background: var(--gruen-flaeche);
    }
    .hauptnavigation ul { flex-direction: column; padding: 0; }
    .hauptnavigation a { color: #fff; padding: .8rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .35); }
    .hauptnavigation a:hover, .hauptnavigation a[aria-current="true"] { border-bottom-color: rgba(255, 255, 255, .35); background: var(--gruen-dunkel); }
    html:not(.js) .kopf { position: static; height: auto; flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .einstieg { min-height: 88vh; }
    .einstieg__text { left: 1.5rem; right: 1.5rem; top: auto; bottom: 14vw; text-align: left; }
    .sektion p { text-align: center; }
    .sektion .faq p, .sektion .frame-layout-100 p { text-align: left; }
    .frame-layout-100 .ce-gallery, .frame-layout-100 .ce-right .ce-gallery { float: none; text-align: center; }
    .frame-layout-100 .ce-gallery img { margin: 0 auto; }
    .ce-textpic.ce-intext .ce-gallery { float: none; margin: 0 0 1rem; }
}
@media (max-width: 767px) and (orientation: portrait) {
    .einstieg__bild img { object-position: 50% 30%; }
}
