/* ==========================================================
   Loreley Energie — main stylesheet
   ========================================================== */
:root {
    --le-primary: #145d78;
    --le-primary-dark: #10394d;
    --le-primary-deep: #102d3b;
    --le-accent: #ef7d32;
    --le-accent-hover: #d8651e;
    --le-text: #1d3542;
    --le-muted: #627782;
    --le-bg: #ffffff;
    --le-soft: #f2f7f8;
    --le-border: #dce7eb;
    --le-radius: 14px;
    --le-width: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--le-text); background: var(--le-bg); font: 16px/1.75 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--le-primary); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--le-accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--le-accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
h1 { font-size: clamp(2.9rem, 5.8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1.25em; }
.container { width: min(var(--le-width), calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: clamp(70px, 9vw, 120px); }
.eyebrow { margin-bottom: 18px; color: var(--le-primary); font-size: .77rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 800; }
.eyebrow.light { color: #a9e1ee; }
.section-title { max-width: 840px; margin-bottom: 45px; }
.section-title span { color: var(--le-primary); }
.skip-link { position: fixed; z-index: 9999; top: -90px; left: 20px; background: white; padding: 10px 20px; }
.skip-link:focus { top: 10px; }
/* Header */
.site-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--le-border); }
.header-inner { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand-link { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; color: var(--le-primary-deep); }
.brand-link:hover { color: var(--le-primary-deep); }
/* Header logo alignment */
.site-header .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.site-header .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 60px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .site-header .custom-logo {
        max-width: 170px;
        max-height: 48px;
    }
}
/* Header branding */
.le-header-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.le-header-brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.le-header-brand-logo .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 60px;
    object-fit: contain;
}

.le-header-brand-title {
    color: #193746;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.le-header-brand-title:hover,
.le-header-brand-title:focus-visible {
    color: #f47729;
}

/* Mobile */
@media (max-width: 768px) {
    .le-header-brand {
        gap: 10px;
    }

    .le-header-brand-logo .custom-logo {
        max-width: 150px;
        max-height: 44px;
    }

    .le-header-brand-title {
        font-size: 15px;
    }
}
.brand-symbol { position: relative; display: block; width: 48px; height: 43px; background: var(--le-primary); clip-path: polygon(0 0, 80% 0, 100% 24%, 38% 24%, 20% 40%, 100% 40%, 100% 62%, 0 62%); }
.brand-symbol span { position: absolute; inset: 25px 0 0 16px; background: var(--le-accent); }
.brand-name { font-size: 1.16rem; line-height: 1.05; font-weight: 750; letter-spacing: -.04em; }
.brand-name strong { color: var(--le-accent); }
.brand-name small { display: block; margin-top: 4px; font-size: .6rem; text-transform: uppercase; letter-spacing: .22em; color: var(--le-muted); }
.nav-list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; gap: clamp(14px, 2.5vw, 36px); }
.nav-list a { display: inline-block; padding: 12px 0; color: var(--le-text); text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--le-primary); }
.nav-list li:last-child > a { padding: 11px 21px; background: var(--le-primary); border-radius: 6px; color: white; }
.nav-list li:last-child > a:hover { background: var(--le-primary-dark); }
.menu-toggle { display: none; }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 52px; padding: 13px 23px; border: 1px solid transparent; border-radius: 5px; font: inherit; font-size: .91rem; font-weight: 750; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--le-primary); color: #fff; }
.btn-primary:hover { background: var(--le-primary-dark); color: #fff; }
.btn-accent { background: var(--le-accent); color: #142f3e; }
.btn-accent:hover { background: #ff9a53; color: #142f3e; }
.btn-outline-light { border-color: #ffffffa8; color: white; }
.btn-outline-light:hover { background: #ffffff1c; color: white; }
.text-link { display: inline-block; font-weight: 750; text-decoration: none; border-bottom: 2px solid var(--le-accent); }
/* Hero — placeholder designed for later slider replacement */
.hero { min-height: 630px; position: relative; overflow: hidden; display: flex; align-items: center; isolation: isolate; color: white; background: linear-gradient(105deg, #092b3e 4%, #145d78 65%, #2c8291 100%); }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(90deg, #0a2d40e8 0%, #0b364ccf 44%, #123c4d65 100%), var(--hero-image, none); background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; padding-block: 85px; }
.hero h1 { max-width: 950px; margin-bottom: 24px; }
.hero h1 em { color: #a5dce5; font-style: normal; }
.hero p:not(.eyebrow) { max-width: 600px; font-size: 1.15rem; color: #e1eff3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.hero-art { position: absolute; z-index: -1; inset: 0; opacity: .4; pointer-events: none; }
.hero-ridge { position: absolute; width: 110%; height: 40%; bottom: -22%; right: -15%; background: #64a6a0; border-radius: 50% 50% 0 0; transform: rotate(-12deg); }
.ridge-two { right: -50%; bottom: -9%; height: 45%; background: #90b4a0; transform: rotate(-23deg); }
.hero-sun { position: absolute; top: 17%; right: 13%; width: 160px; height: 160px; border: 1px solid #c3e5e2; border-radius: 50%; }
/* Cards */
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: 38px 34px; min-height: 255px; background: var(--le-soft); border: 1px solid var(--le-border); border-radius: var(--le-radius); }
.feature-card h3 { margin-bottom: 15px; }
.feature-card p, .why-card p { margin: 0; color: var(--le-muted); }
.feature-icon { display: inline-grid; place-items: center; width: 53px; height: 53px; margin-bottom: 30px; border-radius: 12px; background: #d9ecf0; color: var(--le-primary); font-weight: 800; }
/* Explainer */
.explain { background: #fff; }
.split { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(40px, 8vw, 100px); }
.split-content p:not(.eyebrow) { color: var(--le-muted); }
.illustration { display: flex; flex-direction: column; justify-content: center; min-height: 415px; padding: 30px; border-radius: var(--le-radius); background: #eaf3f1; overflow: hidden; }
.illustration > p { margin: 20px 0 0; text-align: center; color: var(--le-primary); font-size: .83rem; font-weight: 700; }
.illustration-grid { position: relative; height: 280px; border-radius: 9px; background: repeating-linear-gradient(0deg, transparent, transparent 39px, #c9dfdc 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, #c9dfdc 40px); }
.house { position: absolute; display: grid; place-items: center; width: 66px; height: 66px; background: white; border: 2px solid #a7c7c7; border-radius: 8px; color: var(--le-primary); font-size: 3rem; line-height: 1; box-shadow: 0 8px 18px #145d7818; }
.house-a { top: 24px; left: 12%; }.house-b { top: 27px; right: 10%; }.house-c { bottom: 18px; right: 23%; }
.energy-core { position: absolute; z-index: 2; left: 10%; bottom: 25px; display: grid; place-items: center; width: 122px; height: 83px; background: var(--le-primary); border-radius: 8px; color: white; text-align: center; font-weight: 750; font-size: .85rem; line-height: 1.3; }
.pipe { position: absolute; z-index: 1; height: 5px; background: var(--le-accent); transform-origin: left center; border-radius: 5px; }
.pipe-a { width: 66%; left: 28%; top: 53%; transform: rotate(-16deg); }.pipe-b { width: 50%; left: 31%; top: 65%; transform: rotate(22deg); }
/* Why / person / CTA */
.why { background: var(--le-soft); }
.why-card { padding: 35px 30px; background: white; border: 1px solid var(--le-border); border-radius: var(--le-radius); }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 27px; border-radius: 50%; background: #e8f2f5; color: var(--le-primary); font-size: 1.6rem; }
.person-layout { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 65px; }
.person-layout > div:first-child > p:not(.eyebrow) { max-width: 550px; color: var(--le-muted); }
.person-card { display: flex; align-items: center; gap: 23px; padding: 30px; border: 1px solid var(--le-border); border-radius: var(--le-radius); background: var(--le-soft); }
.person-monogram { display: grid; place-items: center; flex: 0 0 85px; height: 85px; border-radius: 50%; background: var(--le-primary); color: white; font-size: 1.65rem; font-weight: 750; }
.person-card small, .person-card strong, .person-card div > span { display: block; }
.person-card small { color: var(--le-muted); }.person-card strong { font-size: 1.25rem; }.person-card div > span { font-size: .85rem; color: var(--le-muted); }
.cta { background: var(--le-primary); color: white; padding-block: 65px; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.cta h2 { max-width: 650px; margin-bottom: 12px; }.cta p:last-child { margin-bottom: 0; color: #d3e7ec; }
/* Content pages */
.page-hero { padding: 85px 0; background: var(--le-soft); border-bottom: 1px solid var(--le-border); }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2.7rem, 5vw, 4.4rem); }.page-hero p:last-child { max-width: 710px; margin-bottom: 0; color: var(--le-muted); font-size: 1.1rem; }
.page-content { padding-block: 75px 110px; }.prose { max-width: 1180px; }.prose h2 { margin: 2em 0 .6em; font-size: 2rem; }.prose h3 { margin: 1.5em 0 .5em; }.prose p, .prose li { color: #425964; }.prose a { overflow-wrap: anywhere; }.prose img { border-radius: 10px; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 85px; }.contact-details h2, .contact-panel h2 { font-size: 2rem; }.contact-item { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--le-border); }.contact-item strong { font-size: .85rem; }.contact-item span { white-space: normal; color: var(--le-muted); }
.contact-aside { margin-top: 45px; padding: 28px; border-radius: 10px; background: var(--le-soft); }.contact-aside p { margin: 8px 0 12px; color: var(--le-muted); }
.contact-panel { padding: 40px; border: 1px solid var(--le-border); border-radius: var(--le-radius); box-shadow: 0 12px 45px #10394d0b; }.contact-panel > p { color: var(--le-muted); }
.contact-form { display: flex; flex-direction: column; gap: 10px; }.contact-form > label:not(.check-label) { margin-top: 12px; font-size: .86rem; font-weight: 750; }.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9cbd2; border-radius: 5px; background: white; color: var(--le-text); font: inherit; }.contact-form textarea { resize: vertical; }.check-label { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0; font-size: .83rem; line-height: 1.55; }.check-label input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--le-primary); flex: 0 0 auto; }.contact-form .btn { align-self: flex-start; }.form-help { color: var(--le-muted); font-size: .76rem; }.form-hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }.form-notice { padding: 13px 16px; border-radius: 6px; }.form-notice.success { background: #e1f4e7; color: #155d34; }.form-notice.error { background: #fff0e9; color: #8a3519; }
.placeholder-panel { padding: 45px; border: 1px dashed #a7c3cd; background: var(--le-soft); border-radius: var(--le-radius); }.placeholder-panel h2 { font-size: 2rem; }.placeholder-panel p { color: var(--le-muted); }
.error-page { min-height: 50vh; }.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }.post-card { padding: 32px; border: 1px solid var(--le-border); border-radius: var(--le-radius); }.post-card h2 { font-size: 1.6rem; }.post-card h2 a { text-decoration: none; }
/* Footer */
.site-footer { background: var(--le-primary-deep); color: #d5e3e9; padding-top: 70px; }.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 45px; padding-bottom: 65px; }.footer-brand { display: inline-block; margin-bottom: 18px; color: white; font-size: 1.2rem; font-weight: 800; text-decoration: none; }.footer-intro p { max-width: 280px; }.site-footer h2 { margin-bottom: 23px; color: white; font-size: 1rem; letter-spacing: 0; }.site-footer p { font-size: .87rem; }.footer-links { padding: 0; margin: 0; list-style: none; }.footer-links li { margin-bottom: 8px; }.site-footer a { color: #dcecf1; }.site-footer a:hover { color: #ffac76; }.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #ffffff25; font-size: .79rem; }
/* Responsive */
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); }.contact-layout { gap: 40px; }.person-layout { gap: 30px; }.feature-card { padding: 28px; } }
@media (max-width: 760px) {
    .container { width: min(var(--le-width), calc(100% - 36px)); }
    .header-inner { min-height: 76px; }.custom-logo { max-height: 55px; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--le-border); background: white; border-radius: 5px; cursor: pointer; }
    .menu-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--le-primary-deep); }
    .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 15px 18px 24px; background: white; box-shadow: 0 15px 25px #10394d15; }.primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 3px; }.nav-list a { display: block; padding: 11px 8px; }
    .hero { min-height: 590px; }.hero-content { padding-block: 75px; }.hero-placeholder { margin-top: 45px; }
    .cards.three, .split, .person-layout, .contact-layout { grid-template-columns: 1fr; }.split { gap: 35px; }.illustration { min-height: 350px; }.person-card { max-width: 450px; }
    .cta-inner { align-items: flex-start; flex-direction: column; }.footer-grid { gap: 35px; }
    .contact-panel { padding: 28px 22px; }.page-hero { padding: 60px 0; }.page-content { padding-block: 50px 80px; }
}
@media (max-width: 520px) { .footer-grid, .post-grid { grid-template-columns: 1fr; }.footer-bottom { flex-direction: column; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .btn { justify-content: space-between; }.brand-name { font-size: 1rem; }.brand-symbol { width: 40px; }.person-card { flex-wrap: wrap; }.illustration { padding: 16px; }.placeholder-panel { padding: 25px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
