/* ====== datenschutz theme - styles ====== */
/* Design: tiefes Petrol (#0e4f5c) Primary, Grün-Akzent (#3c9a5f), viel Weißraum.
   All variables are runtime-injected by the theme (see variables in config → Design).
   .cssvars handled by Publii visual overrides in theme-variables.js. */

:root {
    --color-primary: #0e4f5c;
    --color-accent: #3c9a5f;
    --color-bg: #ffffff;
    --color-text: #1f2a2e;
    --color-text-soft: #4a5a60;
    --color-white: #ffffff;
    --shadow: 0 6px 24px rgba(14, 79, 92, 0.12);
    --radius: 14px;
    --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* ====== Header / Nav ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(14, 79, 92, 0.1);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 16px;
}
.brand__text { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.brand__logo { max-height: 44px; width: auto; }

.site-nav__list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__link {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-text);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.site-nav__link:hover { color: var(--color-primary); border-bottom-color: var(--color-accent); }

/* ====== Hero ====== */
.hero {
    background: linear-gradient(135deg, #0e4f5c 0%, #11606e 100%);
    color: var(--color-white);
    padding: 88px 0;
    min-height: calc(var(--hero-height, 70) * 1vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero--with-image { background: none; }
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    opacity: calc(var(--overlay-opacity, 0) / 100);
}
.hero__inner { max-width: 840px; }
.hero__headline { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 700; margin: 0 0 20px; }
.hero__subline, .hero__intro { font-size: 1.15rem; opacity: .95; margin: 0 0 16px; }
.hero__intro { font-size: 1rem; opacity: .8; max-width: 640px; }

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--color-accent); color: var(--color-white); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 154, 95, 0.4); }

/* ====== Sections / Cards ====== */
.section { padding: 72px 0; }
.section--alt { background: #f4f7f8; }
.section__title { font-size: 2rem; text-align: center; margin: 0 0 12px; color: var(--color-primary); }
.section__text { text-align: center; max-width: 640px; margin: 0 auto 28px; color: var(--color-text-soft); }

.card {
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.card__title { font-size: 1.6rem; margin: 0; color: var(--color-primary); }
.card__intro { color: var(--color-text-soft); margin: 0 0 16px; }
.card__price { font-weight: 600; color: var(--color-primary); margin-bottom: 0; }

.badge {
    display: inline-block;
    background: #e7f1ee;
    color: var(--color-primary);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge--green { background: #e5f5ea; color: var(--color-accent); }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M4 10l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ====== Contact form ====== */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.contact-form__label { font-weight: 600; font-size: .95rem; }
.contact-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfdcdf;
    border-radius: 10px;
    font: inherit;
    color: var(--color-text);
    background: var(--color-white);
}
.contact-form__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(14, 79, 92, .12); }

/* ====== Footer ====== */
.site-footer { background: #0a333b; color: #dbeaed; padding: 52px 0 28px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.site-footer__left { min-width: 0; }
.site-footer__legal { grid-column: 2; justify-self: start; padding-top: 2px; }
.site-footer__quote { font-size: 1.05rem; font-style: italic; margin: 0 0 18px; }
.site-footer__address { line-height: 1.5; margin-bottom: 22px; }
.site-footer__company { font-weight: 700; color: #fff; margin: 0 0 6px; }
.site-footer__link { color: #dbeaed; text-decoration: none; }
.site-footer__link:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { grid-column: 2; justify-self: start; }
.site-footer__legal-title { color: #fff; font-size: 1.05rem; margin: 0 0 14px; }
.footer-nav__list { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0 0 18px; }
.footer-nav__link { color: #dbeaed; text-decoration: none; font-weight: 600; }
.footer-nav__link:hover { color: #fff; text-decoration: underline; }
.site-footer__legal-empty { color: #9fc0c6; font-size: .9rem; }
.site-footer__copy { font-size: .85rem; opacity: .7; margin: 0; grid-column: 1 / -1; }

/* ====== Pages ====== */
.page { padding: 56px 0 72px; }
.page h1 { color: var(--color-primary); margin-bottom: 20px; }

.pagination { display: flex; gap: 16px; justify-content: center; padding: 40px 0; }

/* ====== Responsive ====== */
@media (max-width: 720px) {
    .site-header__inner { flex-direction: column; padding: 12px 0; }
    .site-nav__list { gap: 14px; justify-content: center; }
    .hero { padding: 56px 0; min-height: 50vh; }
    .section { padding: 48px 0; }
    .card { padding: 26px; }
    .card__head { flex-direction: column; align-items: flex-start; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__legal { grid-column: 1; }
}
.checklist__desc { display: block; font-size: .9rem; color: var(--color-text-soft); margin-top: 2px; }

.page__entry { margin-top: 12px; }
.page__entry h2, .page__entry h3 { color: var(--color-primary); }

/* Back to top */
html { scroll-behavior: smooth; }
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    border: none; background: var(--accent, #3c9a5f); color: #fff;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.08); }
@media (max-width: 640px) { .back-to-top { bottom: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; } }
