/*
Theme Name: ElbVolt
Description: Ein modernes WordPress-Theme mit Fokus auf Performance und Benutzerfreundlichkeit.
Author: Linus Krause
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elbvolt
Domain Path: /languages
Tags: custom-background, custom-colors, custom-header, custom-logo, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, blog, portfolio, photography
*/

/* ========================================================================== */
/* Root Custom Properties */
/* ========================================================================== */
:root {
    color-scheme: light;
    
    /* Light Mode Colors */
    --background-lightgrey: #fafafa;
    --text-primary: #333333;
    --text-secondary: #7f8c8d;
    --surface-primary: #ffffff;
    --surface-secondary: #f8f9fa;
    --border-color: rgba(23, 12, 61, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --large-border-radius: 60px;
    --medium-border-radius: 30px;
    --regular-border-radius: 15px;
    --small-border-radius: 8px;
    --xsmall-border-radius: 4px;

    /* Box Shadows */
    --default-box-shadow: 4px 4px 15px var(--shadow-light), -4px -4px 15px rgba(255, 255, 255, 1);
    --default-box-shadow-hover: -4px -4px 15px var(--shadow-light), 4px 4px 15px rgba(255, 255, 255, 1);
    --default-box-shadow-dark-background: 4px 4px 15px rgba(0, 0, 0, 0.5), -4px -4px 15px rgba(255, 255, 255, 0.05);
    --default-box-shadow-dark-background-hover: -4px -4px 15px rgba(0, 0, 0, 0.5), 4px 4px 15px rgba(255, 255, 255, 0.05);

    /* Spacing */
    --large-padding: 60px;
    --medium-padding: 30px;
    --regular-padding: 15px;
    --small-padding: 8px;
    --xsmall-padding: 4px;

    /* Über den Customizer definierbar: --color-primary & --color-secondary */
    --color-secondary-light: color-mix(in srgb, var(--color-secondary, #ffffff) 25%, var(--surface-primary) 75%);

    --color-9fd6df-blue: #9FD6DF;
    --color-9fd6df-light: color-mix(in srgb, var(--color-9fd6df-blue) 25%, var(--surface-primary) 75%);

    --color-acd5b3-green: #ACD5B3;
    --color-acd5b3-light: color-mix(in srgb, var(--color-acd5b3-green) 25%, var(--surface-primary) 75%);
    --color-24727F-dark-green: #24727F;

    --color-d1d3a5-yellow: #D1D3A5;
    --color-d1d3a5-light: color-mix(in srgb, var(--color-d1d3a5-yellow) 25%, var(--surface-primary) 75%);

    --color-d8b4b5-red: #D8B4B5;
    --color-d8b4b5-light: color-mix(in srgb, var(--color-d8b4b5-red) 25%, var(--surface-primary) 75%);

    --color-d3b1cc-purple: #D3B1CC;
    --color-d3b1cc-light: color-mix(in srgb, var(--color-d3b1cc-purple) 25%, #FFFFFF 75%);
}

/* ========================================================================== */
/* Dark Mode - Minimale Optimierungen */
/* ========================================================================== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --background-lightgrey: #1a1a1a;
        --text-primary: #e8e8e8;
        --text-secondary: #b8b8b8;
        --surface-primary: #2a2a2a;
        --surface-secondary: #353535;
        --border-color: rgba(255, 255, 255, 0.12);
        --shadow-light: rgba(0, 0, 0, 0.3);
        
        /* Sanftere Schatten für Dark Mode */
        --default-box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4), -4px -4px 15px rgba(255, 255, 255, 0.02);
        --default-box-shadow-hover: -4px -4px 15px rgba(0, 0, 0, 0.4), 4px 4px 15px rgba(255, 255, 255, 0.02);
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        
        /* Dark Mode Colors - WCAG AA konform mit sanften Kontrasten */
        --background-lightgrey: #1a1a1a;
        --text-primary: #e8e8e8;
        --text-secondary: #b8b8b8;
        --surface-primary: #2a2a2a;
        --surface-secondary: #353535;
        --border-color: rgba(255, 255, 255, 0.15);
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.5);

        /* Angepasste Box Shadows für Dark Mode */
        --default-box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4), -4px -4px 15px rgba(255, 255, 255, 0.02);
        --default-box-shadow-hover: -4px -4px 15px rgba(0, 0, 0, 0.4), 4px 4px 15px rgba(255, 255, 255, 0.02);
        --default-box-shadow-dark-background: 4px 4px 15px rgba(0, 0, 0, 0.6), -4px -4px 15px rgba(255, 255, 255, 0.03);
        --default-box-shadow-dark-background-hover: -4px -4px 15px rgba(0, 0, 0, 0.6), 4px 4px 15px rgba(255, 255, 255, 0.03);

        /* Angepasste Sekundärfarbe für bessere Sichtbarkeit im Dark Mode */
        --color-secondary-light: color-mix(in srgb, var(--color-secondary, #ffffff) 15%, var(--surface-primary) 85%);

        /* Dezent aufgehellte Akzentfarben für Dark Mode */
        --color-9fd6df-blue: #A8DCE5;
        --color-9fd6df-light: color-mix(in srgb, var(--color-9fd6df-blue) 20%, var(--surface-primary) 80%);

        --color-acd5b3-green: #B5DBB9;
        --color-acd5b3-light: color-mix(in srgb, var(--color-acd5b3-green) 20%, var(--surface-primary) 80%);
        --color-24727F-dark-green: #3A8A99;

        --color-d1d3a5-yellow: #D7D9AB;
        --color-d1d3a5-light: color-mix(in srgb, var(--color-d1d3a5-yellow) 20%, var(--surface-primary) 80%);

        --color-d8b4b5-red: #DEBABB;
        --color-d8b4b5-light: color-mix(in srgb, var(--color-d8b4b5-red) 20%, var(--surface-primary) 80%);

        --color-d3b1cc-purple: #D9B7D2;
        --color-d3b1cc-light: color-mix(in srgb, var(--color-d3b1cc-purple) 20%, var(--surface-primary) 80%);
    }
}

/* ========================================================================== */
/* Typography */
/* ========================================================================== */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    src: url('fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 100 900;
    src: url('fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/Sansation/Sansation-Light.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/Sansation/Sansation-LightItalic.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Sansation/Sansation-Regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/Sansation/Sansation-Italic.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/Sansation/Sansation-Bold.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Sansation';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/Sansation/Sansation-BoldItalic.ttf') format('truetype');
}

/* ========================================================================== */
/* Base Styling */
/* ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-lightgrey);
    color: #333;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
    body {
        color: var(--text-primary);
    }
}

h1,
h2,
h3 {
    font-family: 'Sansation', 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.05;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
    max-width: 100%;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}


p {
    margin-bottom: 0rem;
}

.container {
    display: flex;
    margin: 0 auto;
    max-width: 1366px;
    padding: 0 20px;
}

.subpage-main {
    padding: calc(var(--large-padding) * 1.5) 0;
}

.subpage-main h1,
.subpage-main h2,
.subpage-main h3,
.subpage-main h4,
.subpage-main h5,
.subpage-main h6 {
    margin-top: var(--medium-padding);
}

.subpage-main h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.subpage-main h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.3rem);
}

.subpage-main h3 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
}

/* ========================================================================== */
/* Buttons */
/* ========================================================================== */
.btn-primary {
    align-items: center;
    background-color: var(--color-secondary, #ffffff);
    border-radius: var(--large-border-radius);
    color: var(--color-primary, #170c3d);
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: var(--default-box-shadow-dark-background);
}

.btn-primary:hover {
    box-shadow: var(--default-box-shadow-dark-background-hover);
    transform: scale(0.99);
}

.btn-secondary, .wp-block-button__link {
    align-items: center;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: var(--large-border-radius);
    color: var(--color-primary);
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    box-shadow: var(--default-box-shadow);
    transform: scale(1);
    transform-origin: center center;
}

.btn-secondary:hover, .wp-block-button__link:hover {
    box-shadow: var(--default-box-shadow-hover);
    transform: scale(0.99);
}

.btn-secondary-blue {
    align-items: center;
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--large-border-radius);
    color: #ffffff;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    box-shadow: var(--default-box-shadow);
    transform: scale(1);
    transform-origin: center center;
}

.btn-secondary-blue:hover {
    box-shadow: var(--default-box-shadow-hover);
    transform: scale(0.99);
}

/* ========================================================================== */
/* Header */
/* ========================================================================== */
.home-header {
    padding: 0;
    position: relative;
    z-index: 999;
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background-color: var(--surface-primary);
        box-shadow: 0 2px 5px var(--shadow-light);
    }
}

.site-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

.site-description {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .site-title {
        color: var(--text-primary);
    }
    
    .site-description {
        color: var(--text-secondary);
    }
}

/* ========================================================================== */
/* Navigation */
/* ========================================================================== */
.main-navigation {
    align-items: center;
    display: flex;
    gap: 2rem;
    height: 100px;
    justify-content: space-between;
    margin-top: 1rem;
    padding: var(--large-padding) var(--large-padding) 0;
    width: 100%;
}

.site-header .main-navigation {
    padding: var(--regular-padding) 0;
    height: auto;
    margin-top: 0;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ========================================================================== */
/* Branding */
/* ========================================================================== */
a.custom-logo-link {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.custom-logo-link img {
    max-height: 40px;
    width: auto;
}

/* Logo visibility rules for light/dark mode switching */
.custom-logo--light {
    display: inline-block;
}

.custom-logo--dark {
    display: none;
}

.custom-logo--single {
    display: inline-block;
}

/* System dark mode preference */
@media (prefers-color-scheme: dark) {
    .custom-logo--light {
        display: none;
    }

    .custom-logo--dark {
        display: inline-block;
    }
}

/* ========================================================================== */
/* Hero Sections */
/* ========================================================================== */
.front-page-hero {
    background-color: #170c3d;
    background-color: var(--color-primary, #170c3d);
    border-radius: var(--regular-border-radius);
    box-shadow: var(--default-box-shadow);
    color: var(--color-secondary, #fff);
    margin-top: -100px;
    padding: calc(6rem + 100px - 1rem) 0 6rem;
    text-align: center;
}

.front-page-hero.has-hero-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.front-page-hero.has-hero-image::before {
    background: linear-gradient(90deg, rgba(23, 12, 61, 0.33) 30%, rgba(23, 12, 61, 0.165) 69%, rgba(23, 12, 61, 0) 100%);
    border-radius: var(--regular-border-radius);
    content: "";
    inset: 0;
    position: absolute;
}

.front-page-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: var(--large-padding);
    margin: 0;
    padding: 0 var(--large-padding);
    text-align: left;
}

.hero-content div {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin: 0;
    max-width: 600px;
}

.hero-logo {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

.hero-logo .custom-logo-link {
    padding: 0;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ========================================================================== */
/* Content */
/* ========================================================================== */
.post {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    transition: border-color 0.3s ease;
}

.entry-title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--color-primary, #3498db);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.entry-content {
    margin-top: var(--large-padding);
}

/* ========================================================================== */
/* Gutenberg Blocks */
/* ========================================================================== */

.wp-block-group {
    gap: 1rem;
}

.wp-group-w50 {
    display: flex;
    gap: 1rem;
    width: 50%;
}

.wp-group-w100 {
    width: 100%;
}

.align-items-flex-start {
    align-items: flex-start;
}

.wp-group-w33 {
    width: 33.33%;
}

.wp-group-w66 {
    width: 66.66%;
}

.wp-gap-0-5rem {
    gap: 0.5rem;
}

.wp-gap-2rem {
    gap: 2rem;
}

.wp-gap-5rem {
    gap: 5rem;
}

.wp-gap-auto {
    justify-content: space-between;
}

.wp-fp-hellgruen.wp-medium-br,
.wp-medium-br {
    border-radius: var(--medium-border-radius);
}

.wp-block-group.wp-m-top-2rem,
.wp-m-top-2rem {
    margin-top: 2rem;
}

.wp-block-group.wp-m-top-5rem,
.wp-m-top-5rem {
    margin-top: 5rem;
}

.wp-w-80p {
    width: 80%;
}

.wp-stretch-full-height {
    height: 100%;
    align-items: stretch;
}

.wp-fp-hellgruen {
    background-color: var(--color-secondary-light);
    border: 1px solid var(--color-secondary);
    padding: var(--medium-padding);
    border-radius: var(--regular-border-radius);
    box-shadow: var(--default-box-shadow);
}

.wp-fp-hellgruen figure.wp-block-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 75px;
}

.wp-fp-hellgruen img {
    display: block;
    max-width: 100%;
    max-height: 75px;
    width: auto;
    height: auto;
    border-radius: var(--small-border-radius);
    object-fit: contain;
    object-position: center;
}

figure.wp-prozess {
    background-color: var(--color-primary);
    padding: var(--regular-padding);
    height: 100px;
    width: 100px;
    border-radius: var(--medium-border-radius);
    margin-bottom: var(--regular-padding);
    position: relative;
}

.wp-prozess-wrapper {
    position: relative;
}

.wp-prozess-wrapper svg {
    position: absolute;
    top: 0px;
    width: 600px;
    height: 100px;
}

.wp-prozess-wrapper svg:first-of-type {
    left: 10%;
}

.wp-prozess-wrapper svg:nth-of-type(2) {
    left: 44%;
}

.wp-prozess-wrapper svg path {
    stroke: var(--color-primary, #ABCDEF);
    stroke-width: 1;
    fill: none;
}

.wp-prozess.first {
    transform: rotate(10deg);
}
.wp-prozess.second {
    transform: rotate(-5deg);
}
.wp-prozess.third {
    transform: rotate(-10deg);
}

.wp-prozess img {
    max-height: 100%;
    width: auto;
    margin-bottom: 0.5rem;
}

.wp-paket-image {
    width: 100%;
    height: 600px;
}

figure.wp-paket-image {
    width: 100vw;
    height: 500px;
    margin: 5rem calc(50% - 50vw) 0 calc(50% - 50vw);
    max-width: none;
    z-index: 1;
    position: relative;
}

.wp-paket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Sorglos Paket */

section.wp-sorglos-paket {
    background-color: var(--background-lightgrey);
    border-radius: var(--medium-border-radius);
    margin-top: -100px;
    z-index: 2;
    position: relative;
    padding: var(--large-padding);
    box-shadow: 0 -20px 10px rgba(0, 0, 0, 0.1);
}

.wp-sorglos-item {
    border-radius: var(--medium-border-radius);
    box-shadow: var(--default-box-shadow);
    padding: var(--medium-padding);
    min-width: 0;
    word-wrap: break-word;
}

.color-blue-light {
    background-color: var(--color-9fd6df-light);
}
.color-green-light {
    background-color: var(--color-acd5b3-light);
}
.color-yellow-light {
    background-color: var(--color-d1d3a5-light);
}
.color-red-light {
    background-color: var(--color-d8b4b5-light);
}
.color-purple-light {
    background-color: var(--color-d3b1cc-light);
}

.wp-h500 {
    min-height: 500px;
    height: auto;
}

.wp-h200 {
    min-height: 200px;
    height: auto;
}

.wp-h280 {
    min-height: 280px;
    height: auto;
}

i.top-5px {
    margin-top: 5px;
}

i.dark-green {
    color: var(--color-24727F-dark-green);
}

/* Prüfung & Schulungen Section */

.wp-schulung-item {
    border-radius: var(--medium-border-radius);
    border: 1px solid var(--color-primary);
    padding: var(--medium-padding);
    height: 100%;
}

.wp-schulung-item img {
    width: clamp(70px, 18vw, 100px);
}

.wp-schulung-item h3 {
    font-size: clamp(1.25rem, 3.8vw, 1.6rem);
    line-height: 1.2;
}

/* ========================================================================== */
/* Contact Section */
/* ========================================================================== */

figure.wp-contact-image {
    width: 100%;
    height: 100%;
    margin: 0;
}

.wp-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--medium-border-radius);
    box-shadow: var(--default-box-shadow);
}

.wp-contact-wrapper {
    background-color: color-mix(in srgb, var(--color-primary, #170c3d) 5%, #FFFFFF 95%);
    border-radius: var(--medium-border-radius);
    box-shadow: var(--default-box-shadow);
    padding: var(--medium-padding);
}

.wp-contact-item {
    display: flex;
    gap: 1rem;
    padding: var(--regular-padding);
    border-radius: var(--large-border-radius);
    box-shadow: var(--default-box-shadow);
    background-color: var(--surface-primary);
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease;
}

.wp-contact-item .wp-block-group {
    gap: 0.25rem;
}

.wp-contact-item figure {
    margin: 0;
    width: 75px;
    height: 75px;
    padding: var(--regular-padding);
    background-color: var(--color-secondary);
    border-radius: var(--large-border-radius);
}

.wp-contact-item figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.wp-contact-item-link {
    /* kein Erkennbarer LinK! */
    color: inherit;
    text-decoration: none;
}

.wp-contact-item-link:hover .wp-contact-item {
    box-shadow: var(--default-box-shadow-hover);
    transform: scale(0.99);
}


/* ========================================================================== */
/* Contact Form */
/* ========================================================================== */
.elbvolt-contact-form {
    width: 100%;
}

.ev-contactform-wrapper {
    display: grid;
    gap: var(--regular-padding, 15px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ev-contactform-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.ev-field-full {
    grid-column: 1 / -1;
}

.ev-floating {
    gap: 0;
}

.ev-contactform-field label {
    color: var(--color-primary, #170c3d);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.elbvolt-contact-form input[type="text"],
.elbvolt-contact-form input[type="email"],
.elbvolt-contact-form input[type="tel"],
.elbvolt-contact-form textarea {
    background-color: #ffffff;
    border: 1px solid rgba(23, 12, 61, 0.15);
    border-radius: var(--large-border-radius, 60px);
    color: #1c1c1c;
    font: inherit;
    padding: var(--regular-padding, 15px) var(--medium-padding, 30px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    .elbvolt-contact-form input[type="text"],
    .elbvolt-contact-form input[type="email"],
    .elbvolt-contact-form input[type="tel"],
    .elbvolt-contact-form textarea {
        background-color: var(--surface-primary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
}

.ev-floating input,
.ev-floating textarea {
    padding-top: calc(var(--regular-padding, 15px) + 14px);
}

.elbvolt-contact-form textarea {
    border-radius: var(--medium-border-radius, 30px);
    min-height: 180px;
    resize: vertical;
}

.elbvolt-contact-form input:focus,
.elbvolt-contact-form textarea:focus {
    border-color: var(--color-primary, #170c3d);
    box-shadow: 0 0 0 3px rgba(23, 12, 61, 0.12);
    outline: none;
}

.elbvolt-contact-form input[type="checkbox"] {
    border: 1px solid rgba(23, 12, 61, 0.25);
    border-radius: 6px;
    height: 18px;
    width: 18px;
}

.ev-floating label {
    align-items: center;
    background-color: var(--surface-primary);
    border-radius: 6px;
    color: var(--text-secondary);
    display: inline-flex;
    gap: 0.25rem;
    left: var(--medium-padding, 30px);
    line-height: 1.1;
    padding: 0 0.35rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, background-color 0.3s ease;
}

.ev-floating textarea + label {
    top: calc(var(--regular-padding, 15px) + 18px);
}

.ev-floating input:focus + label,
.ev-floating input:not(:placeholder-shown) + label,
.ev-floating textarea:focus + label,
.ev-floating textarea:not(:placeholder-shown) + label {
    color: var(--color-primary, #170c3d);
    font-size: 0.75rem;
    top: var(--xsmall-padding, 4px);
    transform: translateY(0);
}

.ev-contactform-field:focus-within label {
    color: var(--color-primary, #170c3d);
}

.ev-required {
    color: var(--color-primary, #170c3d);
    font-weight: 700;
    line-height: 1;
}

.ev-floating .ev-required {
    font-size: 0.85em;
}

.elbvolt-contact-form button[type="submit"] {
    align-items: center;
    align-self: flex-start;
    background-color: var(--color-primary, #170c3d);
    border: 2px solid var(--color-primary, #170c3d);
    border-radius: var(--large-border-radius, 60px);
    box-shadow: var(--default-box-shadow);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    gap: 0.5rem;
    letter-spacing: 0.02em;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transform: scale(1);
    transform-origin: center center;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.elbvolt-contact-form button[type="submit"]:hover,
.elbvolt-contact-form button[type="submit"]:focus {
    box-shadow: var(--default-box-shadow-hover);
    outline: none;
    transform: scale(0.99);
}

.elbvolt-contact-form button[type="submit"]:active {
    transform: scale(0.97);
}

.ev-checkbox {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
}

.ev-checkbox label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
}

.ev-checkbox input[type="checkbox"] {
    margin: 0;
    margin-top: 4px;
}

.ev-form-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.ev-required-note {
    font-size: 0.9em;
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    /* ev-form-footer specific styles for mobile removed to keep row layout */
    
    .ev-contactform-wrapper {
        grid-template-columns: 1fr;
    }

    .elbvolt-contact-form {
        width: 100%;
    }
}




/* Responsive Design */

/* ========================================================================== */
/* Responsive */
/* ========================================================================== */

@media (max-width: 768px) {

    .subpage-main {
        padding: calc(var(--large-padding) * 2) 0;
    }

    h2 {
        text-align: center;
    }

    /* Volle Breite für Buttons auf Mobile */
    .wp-block-buttons.is-layout-flex .wp-block-button,
    .wp-block-buttons .wp-block-button {
        width: 100%;
    }

    .wp-block-buttons .wp-block-button__link {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Verhindert, dass verschachtelte Groups breiter als der Container werden */
    .wp-block-group.is-layout-flex > .wp-block-group,
    .wp-block-group .wp-block-group.is-layout-flex {
        width: 100%;
        min-width: 0;
    }

    :root {
        /* Padding Anpassungen für Mobile */
        --large-padding: 20px;
        --medium-padding: 15px;
        --small-padding: 10px;

        /* Border Radius Anpassungen für Mobile */
        --large-border-radius: 15px;
        --medium-border-radius: 10px;
        --small-border-radius: 5px;
    }

    .container {
        width: 100%;
    }

    .content-area {
        width: 100%;
    }

    section.wp-sorglos-paket {
        align-items: start;
    }

    .wp-h500,
    .wp-h200,
    .wp-h280 {
        min-height: auto;
    }

    .wp-group-w33,
    .wp-group-w66,
    .wp-group-w50 {
        width: 100%;
    }

    .main-navigation {
        flex-direction: row;
        height: auto;
        padding: 0;
        gap: 0;
    }

    .site-header .main-navigation {
        padding: var(--medium-padding) 0;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .mobile-column,
    .mobile-column.wp-block-group-is-layout-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .custom-logo-link img {
        max-height: 30px;
    }

    .front-page-hero {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
    }

    .front-page-hero.has-hero-image::before {
        border-radius: 0;
    }

    .hero-content {
        padding: 0 var(--medium-padding);
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .wp-prozess-wrapper svg {
        display: none;
    }
}

/* ========================================================================== */
/* Dark Mode Spezifische Anpassungen */
/* ========================================================================== */
@media (prefers-color-scheme: dark) {


    /* Hero Section Anpassungen für bessere Lesbarkeit */
    .front-page-hero {
        background-color: var(--color-primary, #2a2a4a);
    }

    .front-page-hero.has-hero-image::before {
        background: linear-gradient(90deg, rgba(42, 42, 74, 0.7) 20%, rgba(42, 42, 74, 0.4) 50%, rgba(42, 42, 74, 0.1) 80%, rgba(42, 42, 74, 0) 100%);
    }

    /* Buttons im Dark Mode - Verbesserte Lesbarkeit */
    .btn-primary {
        background-color: var(--color-primary, #170c3d);
        border: 2px solid var(--color-primary, #170c3d);
        color: #ffffff;
    }

    .btn-primary:hover {
        color: #ffffff;
    }

    .btn-secondary, .wp-block-button__link {
        border-color: var(--color-secondary);
        color: var(--color-secondary);
        background-color: transparent;
    }

    .btn-secondary:hover, .wp-block-button__link:hover {
        background-color: var(--color-secondary);
        color: var(--color-primary);
    }

    /* Icons with helper class are inverted to white in dark mode */
    .icon-darkmode img {
        filter: brightness(0) invert(1);
    }

    .btn-secondary-blue {
        background-color: var(--color-secondary);
        border-color: var(--color-secondary);
        color: var(--color-primary);
    }

    .btn-secondary-blue:hover {
        background-color: transparent;
        color: var(--color-secondary);
    }

    /* Form Fokus-Styles für bessere Sichtbarkeit */
    .elbvolt-contact-form input:focus,
    .elbvolt-contact-form textarea:focus {
        border-color: var(--color-primary, #9FD6DF);
        box-shadow: 0 0 0 3px rgba(159, 214, 223, 0.2);
    }

    /* Checkbox Styling */
    .elbvolt-contact-form input[type="checkbox"] {
        border: 1px solid var(--border-color);
        background-color: var(--surface-primary);
    }

    /* Sorglos Paket Section */
    section.wp-sorglos-paket {
        background-color: var(--surface-primary);
    }

    /* Kontakt Wrapper */
    .wp-contact-wrapper {
        background-color: var(--surface-secondary);
    }

    /* Schulung Items */
    .wp-schulung-item {
        border-color: var(--color-primary, #9FD6DF);
        background-color: var(--surface-primary);
    }

    /* Code und Pre Elemente */
    code, pre {
        background-color: var(--surface-secondary);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

    /* Blockquotes */
    blockquote {
        border-left: 4px solid var(--color-primary, #9FD6DF);
        background-color: var(--surface-secondary);
        color: var(--text-primary);
    }

    /* Tables */
    table {
        background-color: var(--surface-primary);
        color: var(--text-primary);
    }

    table th {
        background-color: var(--surface-secondary);
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-color);
    }

    table td {
        border-bottom: 1px solid var(--border-color);
    }

    /* WordPress Admin Bar Anpassung */
    #wpadminbar {
        background-color: var(--surface-secondary) !important;
    }

    #wpadminbar .ab-item {
        color: var(--text-primary) !important;
    }
}

/* ========================================================================== */
/* Dark Mode - Weitere kleine Anpassungen */
/* ========================================================================== */
@media (prefers-color-scheme: dark) {
    
    /* Kontakt-Elemente */
    .wp-contact-item {
        background-color: var(--surface-primary);
    }
    
    .wp-contact-wrapper {
        background-color: var(--surface-secondary);
    }
    
    /* Sorglos Paket Section */
    section.wp-sorglos-paket {
        background-color: var(--surface-primary);
    }
    
    /* Entry Title und Meta */
    .entry-title {
        color: var(--text-primary);
    }
    
    .entry-meta {
        color: var(--text-secondary);
    }
    
    /* Post Borders */
    .post {
        border-bottom-color: var(--border-color);
    }
    
    /* Farbige Buttons und Cards - dezente dunkle Farben mit heller Schrift */
    .color-blue-light {
        background-color: #1E3A42 !important;
        color: #ffffff !important;
    }
    
    .color-green-light {
        background-color: #2A3B2F !important;
        color: #ffffff !important;
    }
    
    .color-yellow-light {
        background-color: #3D3F28 !important;
        color: #ffffff !important;
    }
    
    .color-red-light {
        background-color: #453032 !important;
        color: #ffffff !important;
    }
    
    .color-purple-light {
        background-color: #3E2F38 !important;
        color: #ffffff !important;
    }
    
    /* Spezielle Button-Anpassungen für besseren Kontrast */
    .wp-fp-hellgruen {
        background-color: var(--surface-secondary) !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    /* Submit Button im Dark Mode */
    .elbvolt-contact-form button[type="submit"] {
        background-color: var(--color-secondary);
        border-color: var(--color-secondary);
        color: var(--color-primary);
    }
    
    .elbvolt-contact-form button[type="submit"]:hover,
    .elbvolt-contact-form button[type="submit"]:focus {
        background-color: transparent;
        color: var(--color-secondary);
    }
    
    /* SVG-Pfade im Dark Mode */
    .wp-prozess-wrapper svg path {
        stroke: var(--color-secondary);
    }
    
    /* Checkbox-Labels im Dark Mode */
    .ev-checkbox label {
        color: var(--text-primary);
    }

    /* Required Asterisk Visibility in Dark Mode */
    .ev-required {
        color: var(--color-d8b4b5-red); /* Using a distinct color like the red defined in root */
    }
}

/* ========================================================================== */
/* Utility */
/* ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    white-space: nowrap;
    width: 1px;
}

.alignwide {
    clear: both;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: auto;
}

.alignleft {
    float: left;
    margin-bottom: 1rem;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-bottom: 1rem;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================== */
/* Accessibility Verbesserungen */
/* ========================================================================== */
/* Fokus-Indikatoren für bessere Keyboard-Navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary, #9FD6DF);
    outline-offset: 2px;
}

/* Skip Link für Screen Reader */
.skip-link {
    background: var(--color-primary, #9FD6DF);
    color: var(--surface-primary);
    left: -9999px;
    padding: 8px 16px;
    position: absolute;
    text-decoration: none;
    top: 0;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* High Contrast Modus Support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --background-lightgrey: #FFFFFF;
        --border-color: #000000;
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --text-primary: #FFFFFF;
            --background-lightgrey: #000000;
            --border-color: #FFFFFF;
        }
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    :root {
        color-scheme: light;
        --background-lightgrey: #FFFFFF;
        --text-primary: #000000;
        --text-secondary: #333333;
        --surface-primary: #FFFFFF;
        --surface-secondary: #F5F5F5;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .site-header,
    .site-footer,
    .main-navigation,
    button,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
}

/* ========================================================================== */
/* Contact Form Status Messages */
/* ========================================================================== */
.elbvolt-form-message {
    margin: var(--regular-padding) 0;
    padding: var(--regular-padding);
    border-radius: var(--small-border-radius);
    font-weight: 500;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.elbvolt-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.elbvolt-form-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.elbvolt-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================== */
/* Contact Form Loading States and Enhancements */
/* ========================================================================== */
.elbvolt-contact-form button[type="submit"] {
    position: relative;
    transition: all 0.3s ease;
}

.elbvolt-contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.elbvolt-contact-form .submit-loading {
    opacity: 0.8;
}

#elbvolt-form-messages {
    margin-bottom: var(--regular-padding);
    display: none; /* Standardmäßig versteckt, wird per JavaScript eingeblendet */
}

#elbvolt-form-messages.show {
    display: block;
}

/* Add a subtle pulse animation for loading */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.elbvolt-contact-form button[type="submit"]:disabled .submit-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth transitions for form fields */
.ev-contactform-field input,
.ev-contactform-field textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ev-contactform-field input:focus,
.ev-contactform-field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #3498db);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Form hide state with preserved height */
.elbvolt-contact-form.form-hidden {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

/* Success content inside form container */
.elbvolt-form-success-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--regular-padding);
    background: inherit;
}

.elbvolt-form-success-content .elbvolt-form-message {
    margin-bottom: 0;
    text-align: center;
}

/*************************************************************************** */
/* Footer */
/* ========================================================================== */

.site-footer {
    background-color: var(--surface-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--large-padding) 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-top: var(--large-padding);
    box-shadow: var(--default-box-shadow);
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--medium-padding);
}

.footer-widgets {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--medium-padding);
}

.footer-widget {
    flex: 1;
    margin: 0;
    min-width: 220px;
    padding: var(--medium-padding);
    position: relative;
    transition: transform 0.3s ease;
}

.footer-widget:hover {
    transform: translateY(-2px);
}

.footer-widget + .footer-widget::before {
    content: "";
    position: absolute;
    left: calc(var(--medium-padding) * -0.5);
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: var(--border-color);
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--regular-padding);
    margin-top: var(--regular-padding);
    padding-top: var(--medium-padding);
    border-top: 1px solid var(--border-color);
}

.footer-social-links {
    display: flex;
    flex-direction: row;
    gap: var(--small-padding);
    align-items: center;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
    background-color: var(--color-primary, #170c3d);
    color: var(--color-secondary, #ffffff);
    border-color: var(--color-primary, #170c3d);
    transform: translateY(-2px);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--color-primary, #170c3d);
}

.footer-widget .menu,
.footer-widget .menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget .menu {
    display: flex;
    flex-direction: column;
    gap: var(--small-padding);
}

.footer-widget .menu li {
    display: flex;
}

.footer-widget .menu a {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-widget .menu a:hover,
.footer-widget .menu a:focus {
    color: var(--color-primary, #170c3d);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (max-width: 1024px) {
    .footer-widgets {
        gap: var(--regular-padding);
    }
}

@media (max-width: 768px) {

    .site-footer {
        border-radius: 0;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--small-padding);
    }

    .footer-social-links {
        justify-content: flex-start;
    }

    .footer-widget + .footer-widget::before {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .site-footer {
        background-color: var(--surface-secondary);
        border-top-color: var(--border-color);
        box-shadow: var(--default-box-shadow-dark-background);
    }

    .footer-widget {
        color: var(--text-primary);
    }

    .footer-widget:hover {
        transform: translateY(-2px);
    }

    .footer-bottom {
        border-top-color: var(--border-color);
    }

    .footer-social-links a {
        color: var(--text-primary);
        border-color: var(--border-color);
    }

    .footer-social-links a:hover,
    .footer-social-links a:focus {
        background-color: var(--color-secondary);
        color: var(--color-primary);
        border-color: var(--color-secondary);
    }

    .footer-links a:hover,
    .footer-links a:focus {
        color: var(--color-secondary);
    }

    .footer-copy {
        color: var(--text-secondary);
    }

    .footer-widget .menu a {
        color: var(--text-secondary);
    }

    .footer-widget .menu a:hover,
    .footer-widget .menu a:focus {
        color: var(--color-secondary);
        text-decoration-color: var(--color-secondary);
    }
}