/*
Theme Name: EXSO Modern
Theme URI: https://exso.de/
Author: EXSO. business solutions GmbH
Author URI: https://exso.de/
Description: Modernes, schnelles und barrierefreies Corporate- und Produkt-Theme für EXSO. business solutions GmbH und ExsoForm. Bewahrt die originale EXSO-Farbgebung (#28166F / #2d5c88 / #f9f9f9) und die Hausschrift SupraClassic.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: exso-modern
*/

/* ==========================================================================
   1. Font Faces - Original EXSO Hausschrift SupraClassic
   ========================================================================== */
@font-face {
    font-family: "SupraClassic-Light";
    src: url("/fonts/SupraClassic-LightWeb.woff") format("woff"),
         url("/fonts/SupraClassic-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SupraClassic-Normal";
    src: url("/fonts/SupraClassic-NormalWeb.woff") format("woff"),
         url("/fonts/SupraClassic-BookWeb.woff") format("woff"),
         url("/fonts/SupraClassic-Book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SupraClassic-Medium";
    src: url("/fonts/SupraClassic-MediumWeb.woff") format("woff"),
         url("/fonts/SupraClassic-DemiboldWeb.woff") format("woff"),
         url("/fonts/SupraClassic-Demibold.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SupraClassic-Bold";
    src: url("/fonts/SupraClassic-BoldWeb.woff") format("woff"),
         url("/fonts/SupraClassic-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. CSS Custom Properties (Original EXSO Palette + Modern Tokens)
   ========================================================================== */
:root {
    --exso-indigo: #28166F;
    --exso-indigo-dark: #1b0e4f;
    --exso-primary: #2d5c88;
    --exso-primary-light: #6c8dab;
    --exso-accent: #067cd1;
    --exso-bg: #f9f9f9;
    --exso-bg-alt: #f2f2f2;
    --exso-surface: #ffffff;
    --exso-text: #333333;
    --exso-body: #444444;
    --exso-muted: #666666;
    --exso-border: #e3e8ee;
    --exso-shadow-sm: 0 2px 8px rgba(40, 22, 111, 0.06);
    --exso-shadow-md: 0 10px 30px rgba(40, 22, 111, 0.09);
    --exso-shadow-lg: 0 20px 45px rgba(40, 22, 111, 0.14);
    --exso-radius: 12px;
    --exso-radius-sm: 8px;
    --exso-radius-lg: 18px;
    --exso-container: 1240px;
    --font-base: "SupraClassic-Normal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-medium: "SupraClassic-Medium", "SupraClassic-Normal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-bold: "SupraClassic-Bold", "SupraClassic-Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   3. Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    font-size: 1.05rem;
    line-height: 1.68;
    color: var(--exso-body);
    background-color: var(--exso-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-medium);
    color: var(--exso-text);
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 500;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.85rem); }
h2 { font-size: clamp(1.65rem, 2.6vw, 2.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); color: #3a3a3a; }
h5 { font-size: 1.1rem; font-weight: 600; color: #444444; }

p {
    margin-top: 0;
    margin-bottom: 1.15rem;
}

a {
    color: var(--exso-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--exso-indigo);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--exso-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   4. Topbar & Header Navigation
   ========================================================================== */
.exso-topbar {
    background: linear-gradient(90deg, var(--exso-indigo) 0%, var(--exso-primary) 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    padding: 8px 0;
}

.exso-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.exso-topbar-contact,
.exso-topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.exso-topbar a {
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exso-topbar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.exso-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 249, 249, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--exso-border);
    box-shadow: 0 2px 12px rgba(40, 22, 111, 0.05);
}

.exso-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
    width: fit-content;
    min-width: min(100%, var(--exso-container));
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.exso-header-inner.has-sublogo {
    gap: 20px;
}

.exso-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.exso-brand img.exso-logo {
    height: 50px;
    width: auto;
}

.exso-brand-divider {
    width: 1px;
    height: 34px;
    background: var(--exso-border);
}

.exso-brand img.exsoform-sublogo {
    height: 34px;
    width: auto;
}

/* Main Menu */
.exso-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.exso-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.exso-menu > li {
    position: relative;
}

.exso-menu > li > a {
    font-family: var(--font-medium);
    font-size: 1.08rem;
    color: var(--exso-text);
    padding: 10px 15px;
    border-radius: var(--exso-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.exso-menu > li:hover > a,
.exso-menu > li.current-menu-item > a,
.exso-menu > li.current-menu-ancestor > a {
    color: var(--exso-indigo);
    background: rgba(45, 92, 136, 0.08);
}

.exso-menu > li.has-dropdown > a::after {
    content: "▾";
    font-size: 0.75em;
    opacity: 0.7;
}

/* Dropdown Submenu */
.exso-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius);
    box-shadow: var(--exso-shadow-lg);
    padding: 10px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.exso-menu > li:hover > .exso-submenu,
.exso-menu > li:focus-within > .exso-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.exso-submenu li a {
    display: block;
    padding: 9px 14px;
    font-family: var(--font-base);
    font-size: 0.96rem;
    color: var(--exso-body);
    border-radius: 6px;
}

.exso-submenu li a:hover {
    background: rgba(45, 92, 136, 0.08);
    color: var(--exso-indigo);
    padding-left: 18px;
}

.exso-submenu-heading {
    font-family: var(--font-medium);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--exso-primary);
    padding: 8px 14px 4px;
    margin-top: 4px;
    border-top: 1px solid var(--exso-border);
}

.exso-submenu-heading:first-child {
    border-top: none;
    margin-top: 0;
}

.exso-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Menu Toggle */
.exso-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius-sm);
    padding: 8px 12px;
    font-size: 1.25rem;
    color: var(--exso-text);
    cursor: pointer;
}

/* ==========================================================================
   5. ExsoForm Dedicated Product Sub-Header Bar (SEO Hub Navigation)
   ========================================================================== */
.exsoform-hub-bar {
    background: var(--exso-surface);
    border-bottom: 2px solid var(--exso-primary);
    box-shadow: 0 4px 14px rgba(40, 22, 111, 0.06);
    padding: 10px 0;
}

.exsoform-hub-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.exsoform-hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-medium);
    color: var(--exso-indigo);
    font-size: 1rem;
}

.exsoform-hub-brand img {
    height: 30px;
    width: auto;
}

.exsoform-hub-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.exsoform-hub-links li a {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-family: var(--font-medium);
    color: var(--exso-body);
    background: var(--exso-bg);
    border: 1px solid var(--exso-border);
}

.exsoform-hub-links li a:hover,
.exsoform-hub-links li a.active {
    background: var(--exso-primary);
    color: #ffffff;
    border-color: var(--exso-primary);
}

.exsoform-hub-links li a.hub-cta {
    background: var(--exso-indigo);
    color: #ffffff;
    border-color: var(--exso-indigo);
}

.exsoform-hub-links li a.hub-cta:hover {
    background: var(--exso-primary);
    border-color: var(--exso-primary);
}

/* ==========================================================================
   6. Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-medium);
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: var(--exso-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--exso-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--exso-indigo);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--exso-shadow-md);
}

.btn-indigo {
    background: var(--exso-indigo);
    color: #ffffff;
}

.btn-indigo:hover {
    background: var(--exso-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--exso-shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--exso-primary);
    color: var(--exso-primary);
}

.btn-outline:hover {
    background: var(--exso-primary);
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: var(--exso-indigo);
}

.btn-white:hover {
    background: var(--exso-bg);
    color: var(--exso-primary);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.92rem;
}

.exso-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-medium);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    background: rgba(45, 92, 136, 0.12);
    color: var(--exso-primary);
    margin-bottom: 12px;
}

.exso-badge-indigo {
    background: rgba(40, 22, 111, 0.1);
    color: var(--exso-indigo);
}

/* ==========================================================================
   7. Hero Slider & Page Headers
   ========================================================================== */
.exso-hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--exso-indigo-dark);
    color: #ffffff;
}

.exso-slides-track {
    position: relative;
    min-height: 460px;
}

.exso-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.exso-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    min-height: 460px;
}

.exso-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(27, 14, 79, 0.86) 0%, rgba(45, 92, 136, 0.68) 55%, rgba(45, 92, 136, 0.25) 100%);
}

.exso-slide-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 64px 0;
}

.exso-slide-content h1,
.exso-slide-content h2 {
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.exso-slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.exso-slider-controls {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.exso-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.exso-slider-dot.active {
    background: #ffffff;
    transform: scale(1.15);
}

/* Page Banner / Header */
.exso-page-header {
    background: linear-gradient(135deg, var(--exso-indigo) 0%, var(--exso-primary) 100%);
    color: #ffffff;
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}

.exso-page-header::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -40%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.exso-page-header h1 {
    color: #ffffff;
    margin-bottom: 10px;
}

.exso-page-header .exso-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 820px;
    margin: 0;
}

.exso-breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
}

.exso-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.exso-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   8. Sections, Grids & Cards
   ========================================================================== */
.exso-section {
    padding: 72px 0;
}

.exso-section-alt {
    background-color: var(--exso-bg-alt);
}

.exso-section-white {
    background-color: var(--exso-surface);
}

.exso-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.exso-section-header p {
    font-size: 1.12rem;
    color: var(--exso-muted);
}

.exso-grid {
    display: grid;
    gap: 28px;
}

.exso-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.exso-grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.exso-grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Modern Card */
.exso-card {
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius);
    overflow: hidden;
    box-shadow: var(--exso-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--exso-shadow-md);
    border-color: var(--exso-primary-light);
}

.exso-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exso-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.exso-card-img.contain-img {
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--exso-border);
}

.exso-card-img.contain-img img {
    object-fit: contain;
    max-height: 140px;
}

.exso-card:hover .exso-card-img img {
    transform: scale(1.04);
}

.exso-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.exso-card-body h3,
.exso-card-body h4 {
    margin-bottom: 10px;
    color: var(--exso-text);
}

.exso-card-body p {
    color: var(--exso-muted);
    font-size: 0.98rem;
    flex-grow: 1;
}

.exso-card-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--exso-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-medium);
    font-size: 0.95rem;
    color: var(--exso-primary);
}

/* Tag Pills inside Portfolio / Solution Cards */
.exso-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.exso-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(45, 92, 136, 0.1);
    color: var(--exso-primary);
    font-family: var(--font-medium);
}

/* ==========================================================================
   9. Legacy Download & Partner Tiles (.downloadKachel modernized!)
   ========================================================================== */
.exso-kachel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.downloadKachel {
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--exso-shadow-sm);
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
}

.downloadKachel:hover {
    transform: translateY(-4px);
    box-shadow: var(--exso-shadow-md);
    border-color: var(--exso-primary);
}

.downloadKachel > img {
    max-height: 90px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.downloadKachel h4,
.kachelText h4 {
    font-family: var(--font-medium);
    font-size: 1.2rem;
    color: var(--exso-indigo);
    margin: 0 0 10px;
    text-align: center;
}

.downloadKachel p,
.kachelText p {
    color: var(--exso-muted);
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   10. Pricing & Edition Cards (Replaces WooCommerce Cart)
   ========================================================================== */
.exso-price-card {
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--exso-shadow-sm);
    transition: all 0.25s ease;
    position: relative;
}

.exso-price-card.featured {
    border: 2px solid var(--exso-indigo);
    box-shadow: var(--exso-shadow-md);
}

.exso-price-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--exso-indigo);
    color: #ffffff;
    font-family: var(--font-medium);
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 999px;
}

.exso-price-box {
    background: var(--exso-bg);
    border-radius: var(--exso-radius-sm);
    padding: 16px;
    margin: 16px 0 20px;
    border: 1px solid var(--exso-border);
}

.exso-price-net {
    font-family: var(--font-bold);
    font-size: 1.75rem;
    color: var(--exso-indigo);
    line-height: 1.1;
}

.exso-price-old {
    text-decoration: line-through;
    color: #999999;
    font-size: 1rem;
    margin-right: 8px;
}

.exso-price-breakdown {
    font-size: 0.85rem;
    color: var(--exso-muted);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed var(--exso-border);
    padding-top: 6px;
}

/* ==========================================================================
   11. Single Portfolio / Content Layout
   ========================================================================== */
.exso-content-wrap {
    padding: 56px 0;
}

.exso-article-card {
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius-lg);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: var(--exso-shadow-sm);
}

.exso-portfolio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 960px) {
    .exso-portfolio-layout.has-media {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }
}

.exso-portfolio-media {
    position: sticky;
    top: 110px;
}

.exso-media-frame {
    background: var(--exso-surface);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius);
    padding: 16px;
    box-shadow: var(--exso-shadow-sm);
    margin-bottom: 20px;
}

.exso-media-frame img {
    border-radius: var(--exso-radius-sm);
    margin: 0 auto;
}

.exso-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.exso-gallery-thumbs a {
    border: 1px solid var(--exso-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exso-gallery-thumbs a:hover {
    border-color: var(--exso-primary);
}

.intro {
    font-size: 1.2rem;
    font-family: var(--font-medium);
    color: var(--exso-indigo);
    line-height: 1.55;
    padding-left: 18px;
    border-left: 4px solid var(--exso-primary);
    margin-bottom: 28px;
}

.text-section {
    margin-bottom: 28px;
}

.text-section h4 {
    color: var(--exso-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

/* Video Responsive Container */
.exso-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--exso-radius);
    box-shadow: var(--exso-shadow-md);
    margin-bottom: 28px;
}

.exso-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   12. Forms (Contact & Webcast)
   ========================================================================== */
.exso-form {
    display: grid;
    gap: 20px;
}

.exso-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.exso-form label {
    display: block;
    font-family: var(--font-medium);
    font-size: 0.95rem;
    color: var(--exso-text);
    margin-bottom: 6px;
}

.exso-form input[type="text"],
.exso-form input[type="email"],
.exso-form input[type="tel"],
.exso-form input[type="datetime-local"],
.exso-form input[type="date"],
.exso-form select,
.exso-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--exso-body);
    background: var(--exso-bg);
    border: 1px solid var(--exso-border);
    border-radius: var(--exso-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.exso-form input:focus,
.exso-form select:focus,
.exso-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--exso-primary);
    box-shadow: 0 0 0 3px rgba(45, 92, 136, 0.15);
}

.exso-alert {
    padding: 16px 20px;
    border-radius: var(--exso-radius-sm);
    margin-bottom: 24px;
    font-family: var(--font-medium);
}

.exso-alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.exso-alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* ==========================================================================
   13. Footer & Cookie Banner
   ========================================================================== */
.exso-footer {
    background: #1e2430;
    color: rgba(255, 255, 255, 0.82);
    padding: 64px 0 32px;
    margin-top: 64px;
    border-top: 4px solid var(--exso-primary);
}

.exso-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 36px;
    margin-bottom: 48px;
}

.exso-footer h4 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.exso-footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--exso-primary-light);
}

.exso-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exso-footer-links li {
    margin-bottom: 10px;
}

.exso-footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.exso-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.exso-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.exso-footer-bottom-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.exso-footer-bottom-menu a {
    color: rgba(255, 255, 255, 0.78);
}

.exso-footer-bottom-menu a:hover {
    color: #ffffff;
}

/* Cookie Banner (Original BST Cookie settings modernized) */
.exso-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1140px;
    background: #262b36;
    color: #ffffff;
    border: 1px solid #444d5e;
    border-radius: var(--exso-radius);
    padding: 18px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.exso-cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.exso-cookie-banner a {
    color: #8ec5fc;
    text-decoration: underline;
}

.exso-cookie-btn {
    background: var(--exso-accent);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--exso-radius-sm);
    font-family: var(--font-medium);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.exso-cookie-btn:hover {
    background: var(--exso-primary);
}

/* ==========================================================================
   14. Responsive Breakpoints (Tablet & Mobile / Smartphone)
   ========================================================================== */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1120px) {
    .exso-header-inner,
    .exso-header-inner.has-sublogo {
        width: 100%;
        min-width: 0;
        min-height: 70px;
        padding: 0 16px;
        gap: 12px;
    }

    .exso-brand {
        min-width: 0;
        flex-shrink: 1;
        gap: 10px;
    }

    .exso-brand img.exso-logo {
        height: 40px;
        width: auto;
    }

    .exso-brand img.exsoform-sublogo {
        height: 26px;
        width: auto;
    }

    .exso-brand-divider {
        height: 26px;
    }

    .exso-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-family: var(--font-medium);
        font-size: 1rem;
        padding: 8px 14px;
        background: var(--exso-surface);
    }

    .exso-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--exso-surface);
        border-bottom: 2px solid var(--exso-primary);
        box-shadow: var(--exso-shadow-lg);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .exso-nav.open {
        display: flex;
    }

    .exso-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .exso-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--exso-border);
    }

    .exso-menu > li:last-child {
        border-bottom: none;
    }

    .exso-menu > li > a {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 1.05rem;
    }

    .exso-submenu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 8px;
        padding: 6px 8px 10px 14px;
        background: var(--exso-bg);
        margin: 0 0 8px;
        min-width: 0;
        width: 100%;
    }

    .exso-menu > li.mobile-open > .exso-submenu,
    .exso-menu > li.current-menu-item > .exso-submenu {
        display: block;
    }

    .exso-header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        padding-top: 8px;
    }

    .exso-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .exso-portfolio-media {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Compact Topbar on Smartphones */
    .exso-topbar {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .exso-topbar-inner {
        justify-content: center;
        gap: 8px 14px;
    }

    .exso-topbar-contact span,
    .exso-topbar-links a:last-child {
        display: none;
    }

    /* Responsive Grids -> Single Column on Phones */
    .exso-grid,
    .exso-grid-2,
    .exso-grid-3,
    .exso-grid-4,
    .exso-kachel-grid,
    .exso-form-row,
    .exso-footer-grid,
    main [style*="minmax(3"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Typography & Spacing adjustments for Mobile */
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.25rem; }

    .exso-section {
        padding: 40px 0;
    }

    .exso-section-header {
        margin-bottom: 28px;
    }

    .exso-content-wrap {
        padding: 24px 0;
    }

    .exso-article-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .exso-page-header {
        padding: 32px 0;
    }

    .exso-page-header .exso-subtitle {
        font-size: 1.02rem;
    }

    /* Hero Slider on Mobile */
    .exso-slides-track,
    .exso-slide.active {
        min-height: 360px;
    }

    .exso-slide-content {
        padding: 36px 0 52px;
    }

    .exso-slide-content p {
        font-size: 1.02rem;
        margin-bottom: 20px;
    }

    .intro {
        font-size: 1.06rem;
        padding-left: 14px;
        margin-bottom: 20px;
    }

    .exso-card-body,
    .downloadKachel,
    .exso-price-card {
        padding: 20px 16px;
    }

    .exso-footer {
        padding: 40px 0 24px;
        margin-top: 40px;
    }

    .exso-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .exso-footer-bottom-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .exso-brand img.exso-logo {
        height: 32px;
    }

    .exso-brand img.exsoform-sublogo {
        height: 22px;
    }

    .exso-brand-divider {
        height: 22px;
    }

    .exso-header-actions {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
    }
}
