/* ITZCMS Theme "Shapely Landshut" – angelehnt an Shapely (Colorlib), neu umgesetzt */
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/raleway-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/raleway-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --primary: #745cf9;
    --text: #5b656c;          /* etwas dunkler als Shapely (#67727a) – besserer Kontrast */
    --heading: #1c2329;
    --light: #f5f5f5;
    --dark: #0e1015;
    --line: #e4e4e4;
    --radius: 0;
    --header-h: 72px;
    --container: 1140px;
    --font: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--heading); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 300; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.sr-only, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; }

/* Buttons wie Shapely: kantig, Versalien, gesperrt */
.btn { display: inline-block; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none; text-align: center;
       border: 2px solid var(--primary); color: var(--primary); background: transparent; padding: 0 26px; line-height: 40px; min-width: 150px; border-radius: var(--radius);
       cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.btn:hover, .btn:focus-visible { background: var(--primary); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-filled { background: var(--primary); color: #fff; }
.btn-filled:hover, .btn-filled:focus-visible { background: color-mix(in srgb, var(--primary) 82%, #000); border-color: color-mix(in srgb, var(--primary) 82%, #000); }
.btn-lg { line-height: 24px; padding: 14px 32px; min-width: 200px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--heading); text-decoration: none; }
.brand img { height: 48px; width: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--heading); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a:focus-visible { border-color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--heading); cursor: pointer; }
main { padding-top: var(--header-h); }
.home main { padding-top: 0; }
.preview-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff3cd; color: #5c4700; text-align: center; font-size: 14px; padding: 6px; border-top: 1px solid #e6d28a; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
    .main-nav a { display: block; padding: 12px 0; }
}

/* Parallax-Hintergründe: auf Desktop fixiert, auf Touch-Geräten / bei reduzierter Bewegung statisch */
.parallax-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
@media (hover: none), (prefers-reduced-motion: reduce) { .parallax-bg { background-attachment: scroll; } html { scroll-behavior: auto; } }

/* Hero */
.hero { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.hero--large { min-height: 70vh; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)); }
.hero-content { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); margin-bottom: .5em; }
.hero .lead { font-size: 1.25rem; max-width: 680px; margin: 0 auto 1.6em; }
.hero-scroll { position: absolute; z-index: 1; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }

/* Sektionen */
section { position: relative; }
.features, .text-section, .richtext-section, .contact { padding: clamp(56px, 9vw, 96px) 0; }
.section-title { text-align: center; }
.section-intro { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.bg-light { background: var(--light); }
.bg-white { background: #fff; }

.feature-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { text-align: center; padding: 8px 16px; }
.feature-icon { color: var(--primary); margin: 0 auto 16px; display: block; }
.feature h3 { margin-bottom: .5em; }
.feature .btn { display: block; max-width: 260px; margin: 16px auto 0; }

.text-section { text-align: center; }
.text-section h2 { margin-bottom: .8em; }
.text-section .prose { text-align: center; }
.text-section .btn { margin-top: 8px; }
.section-image { margin: 48px auto 0; padding: 0; }
.section-image img { margin: 0 auto; }
.section-image--top { margin: 0 auto 40px; }
.text-section:has(.section-image:not(.section-image--top)) { padding-bottom: 0; }

.parallax { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.parallax--small { height: clamp(220px, 32vw, 360px); }
.parallax--medium { height: clamp(300px, 45vw, 520px); }
.parallax-caption { position: relative; z-index: 1; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 14px rgba(0,0,0,.6); padding: 0 20px; text-align: center; }

.page-header { background: var(--light); padding: 64px 0 40px; text-align: center; }
.page-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.richtext-section .prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.richtext-section .prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose .lead { font-size: 1.2rem; }
.prose .quote { font-style: italic; font-size: 1.15rem; color: var(--heading); }
.prose a { word-break: break-word; }
.prose img { margin: 1.5em auto; }

/* Kontakt */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1.6fr; margin-top: 32px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin: 24px 0 0; }
.contact-info dt { font-weight: 700; color: var(--heading); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.contact-info dd { margin: 0 0 18px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; font: inherit; font-size: 16px; color: var(--heading); padding: 12px 14px; border: 1px solid #cfd4d8; border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.has-error input, .has-error textarea { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 14px; margin: 6px 0 0; }
.form-note { font-size: 13px; line-height: 1.6; color: #7a8389; }
.itz-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; margin-bottom: 20px; border-left: 4px solid; }
.notice p:last-child { margin: 0; }
.notice--success { background: #eaf7ee; border-color: #2e8b57; color: #1d5c39; }
.notice--error { background: #fbeaea; border-color: #c0392b; color: #8a2a20; }
.grecaptcha-badge { visibility: hidden; } /* erlaubt, da Hinweistext im Formular steht */
.contact-form button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: var(--dark); color: #c9ced3; padding: 56px 0; font-size: 15px; position: relative; }
.site-footer strong { color: #fff; font-weight: 600; letter-spacing: 1px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-footer a { color: #c9ced3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.back-to-top { position: absolute; right: 20px; top: -22px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--primary); color: #fff !important; }

/* Leere Bildflächen im visuellen Editor sichtbar machen */
.parallax-bg:not([style]) { background: repeating-linear-gradient(45deg, #d9d9d9 0 12px, #e6e6e6 12px 24px); }
.parallax:has(.parallax-bg:not([style])) { min-height: 200px; }
