/*
Theme Name: Stefan Ludden CREM
Theme URI: https://stefan.ludden.de
Author: Custom Build
Author URI: https://stefan.ludden.de
Description: One-Pager-Theme für Stefan Ludden – Autor und Experte für strategisches Immobilienmanagement (CREM für Regionalbanken). Elementor-kompatibel mit Auto-Import der Startseite.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stefan-ludden
Tags: one-page, business, custom-menu, custom-logo, elementor
*/

:root {
    --color-bg:            #ffffff;
    --color-bg-alt:        #f5f5f5;
    --color-card:          #f2f2f2;
    --color-primary:       #0c2340;
    --color-accent:        #2d2d2d;
    --color-accent-hover:  #000000;
    --color-text:          #1a1a1a;
    --color-text-muted:    #5a5a5a;
    --color-border:        #e0e0e0;
    --color-white:         #ffffff;
    --font-sans: "Inter","Helvetica Neue","Arial",system-ui,-apple-system,sans-serif;
    --font-serif: "Source Serif Pro",Georgia,"Times New Roman",serif;
    --radius-sm: 4px;
    --radius-md: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
    --container-max: 1180px;
    --section-padding: clamp(48px,7vw,96px);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img,svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
h1,h2,h3,h4 {
    font-family: var(--font-sans);
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem,4.5vw,3rem); }
h2 { font-size: clamp(1.6rem,3.2vw,2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.25em; margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.1;
}
.btn-primary { background-color: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-accent-hover); color: var(--color-white); }
.btn-outline { background-color: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: var(--color-white); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 16px 24px;
    max-width: var(--container-max); margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--color-primary); }
.site-branding__logo {
    width: 44px; height: 44px;
    background: var(--color-primary); color: var(--color-white);
    display: grid; place-items: center;
    font-weight: 700; border-radius: 50%;
}
.site-branding__name { font-weight: 700; font-size: 1.1rem; }
.site-branding__tagline { font-size: 0.78rem; color: var(--color-text-muted); }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    cursor: pointer; padding: 10px;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--color-primary);
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    position: fixed; top: 0; right: 0;
    width: min(340px,85vw); height: 100vh;
    background: var(--color-primary); color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    padding: 96px 32px 32px;
    overflow-y: auto; z-index: 99;
}
.site-nav[data-open="true"] { transform: translateX(0); }
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav a {
    display: block; padding: 14px 0;
    color: var(--color-white); font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav a:hover { color: var(--color-accent); }
.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden;
    transition: all 0.25s;
    z-index: 98;
}
.nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }

/* Sections */
.hero { padding: clamp(32px,5vw,56px) 0 clamp(32px,5vw,48px); }
.hero__intro { max-width: 800px; margin-bottom: 32px; }
.hero__kicker { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); margin-bottom: 8px; }
.hero__name { font-size: clamp(2rem,4vw,2.6rem); margin-bottom: 6px; }
.hero__role { font-size: 1.1rem; color: var(--color-text-muted); }
.hero__image {
    aspect-ratio: 16/7;
    background: var(--color-card);
    border-radius: var(--radius-md);
    overflow: hidden; margin-bottom: 40px;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__headline { font-size: clamp(1.8rem,3.6vw,2.6rem); max-width: 900px; margin-bottom: 28px; }
.hero__headline .accent { color: var(--color-text-muted); font-weight: 600; }
.hero__quote {
    border-left: 4px solid var(--color-primary);
    padding: 4px 0 4px 24px;
    max-width: 780px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin: 0;
}
.hero__quote strong { color: var(--color-primary); font-style: normal; display: block; margin-bottom: 6px; font-weight: 600; }

.section { padding: var(--section-padding) 0; scroll-margin-top: 90px; }
.section--alt { background-color: var(--color-bg-alt); }
.section__eyebrow {
    display: inline-block; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--color-accent); font-weight: 600;
    margin-bottom: 10px;
}
.section__lead { font-size: 1.1rem; max-width: 780px; color: var(--color-text-muted); }
.section__note { font-size: 0.95rem; color: var(--color-text-muted); margin-top: 24px; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 880px) {
    .grid-2 { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
    .grid-2--reverse { grid-template-columns: 0.9fr 1.1fr; }
    .grid-2--reverse > :first-child { order: 2; }
}

.info-card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    border-left: 3px solid var(--color-primary);
}
.info-card h3 { margin-top: 0; }

.list-check { list-style: none; padding-left: 0; margin: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-check li::before {
    content: "";
    position: absolute; left: 0; top: 10px;
    width: 14px; height: 14px;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

.portrait {
    aspect-ratio: 4/5;
    max-width: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.linkedin-card {
    margin-top: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
    color: var(--color-primary);
    max-width: 360px;
    box-shadow: var(--shadow-sm);
}
.linkedin-card__icon {
    width: 36px; height: 36px;
    background: #0a66c2; color: #fff;
    display: grid; place-items: center;
    border-radius: 6px;
    font-weight: 700;
}
.linkedin-card__label { font-weight: 600; line-height: 1.2; }
.linkedin-card__sub { font-size: 0.8rem; color: var(--color-text-muted); }

.book-wrapper { display: flex; justify-content: center; }
.book-link {
    display: block; max-width: 280px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s;
    text-decoration: none;
}
.book-link:hover { transform: translateY(-3px); }

.infographic-frame {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.infographic-frame img { border-radius: var(--radius-sm); }

.feature-image {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

.cta-band {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--section-padding) 24px;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 720px; margin: 0 auto 24px; font-size: 1.1rem; }

/* Form */
.form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 720px;
    box-shadow: var(--shadow-sm);
}
.form__row { margin-bottom: 20px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-primary); }
.form input,.form textarea {
    width: 100%; padding: 12px 14px; font: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
}
.form input:focus,.form textarea:focus { outline: 2px solid var(--color-accent); border-color: var(--color-accent); }
.form textarea { min-height: 140px; resize: vertical; }
.form__interest { display: flex; flex-wrap: wrap; gap: 16px; }
.form__interest label {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500;
    background: var(--color-bg-alt);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    cursor: pointer;
}
.form__hint { font-size: 0.85rem; color: var(--color-text-muted); }
.form-message { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.form-message--error { background: #fbeaea; color: #8b1a1a; border: 1px solid #e5b1b1; }
.form-message--success { background: #e8f0e5; color: #2d5a1c; border: 1px solid #a9c8a2; }

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.92);
    padding: 56px 0 28px;
}
.site-footer a { color: inherit; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h3 { color: var(--color-white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.aktuelles-embed {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

@media print {
    .site-header,.site-footer,.nav-toggle,.site-nav { display: none !important; }
}
