:root {
--bg: #f5f7fb;
--surface: #ffffff;
--surface-soft: #f1f5f9;
--surface-dark: #0b1220;
--surface-dark-2: #111827;
--text: #101828;
--text-muted: #475467;
--text-soft: #98a2b3;
--line: rgba(16, 24, 40, 0.08);
--line-strong: rgba(16, 24, 40, 0.16);
--white: #ffffff;
--blue: #0e5fd8;
--blue-dark: #0b4fb4;
--blue-soft: rgba(14, 95, 216, 0.12);
--blue-glow: rgba(14, 95, 216, 0.24);
--success: #12b76a;
--radius-sm: 14px;
--radius: 22px;
--radius-lg: 30px;
--shadow-sm: 0 12px 28px rgba(2, 6, 23, 0.06);
--shadow: 0 24px 60px rgba(2, 6, 23, 0.12);
--shadow-dark: 0 28px 80px rgba(0, 0, 0, 0.28);
--container: 1200px;
--header-height: 84px;
--transition: 220ms ease;

/* Chat-Design auf globale Variablen abgestimmt */
--chat-accent:        var(--blue);
--chat-accent-hover:  var(--blue-dark);
--chat-bg:            var(--surface);
--chat-surface:       var(--surface-soft);
--chat-border:        var(--line-strong);
--chat-text:          var(--text);
--chat-text-muted:    var(--text-muted);
--chat-bot-bg:        var(--surface-soft);
--chat-user-bg:       var(--blue);
--chat-user-text:     var(--white);
--chat-shadow:        0 18px 44px rgba(15, 23, 42, 0.18);
--chat-radius:        20px;
--chat-width:         380px;
--chat-height:        540px;
--chat-fab-size:      56px;
--chat-z:             9000;
--chat-ease:          cubic-bezier(0.16, 1, 0.3, 1);
--chat-duration:      0.26s;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
padding-top: var(--header-height);
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background: var(--bg);
line-height: 1.6;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}

img {
max-width: 100%;
display: block;
}

a {
color: inherit;
text-decoration: none;
}

button,
input,
select,
textarea {
font: inherit;
}

button {
cursor: pointer;
}

.site {
overflow: clip;
}

.skip-link {
position: absolute;
top: -100px;
left: 16px;
z-index: 9999;
background: var(--blue);
color: var(--white);
padding: 12px 16px;
border-radius: 12px;
}

.skip-link:focus {
top: 12px;
}

.container {
width: min(var(--container), calc(100% - 32px));
margin: 0 auto;
}

.section {
padding: 88px 0;
scroll-margin-top: calc(var(--header-height) + 18px);
position: relative;
z-index: 1;
}

.section-soft {
background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

.section-dark {
background:
radial-gradient(circle at top right, rgba(14, 95, 216, 0.22), transparent 28%),
radial-gradient(circle at left bottom, rgba(14, 95, 216, 0.12), transparent 24%),
linear-gradient(135deg, #07111f 0%, #0b1220 55%, #0f172a 100%);
color: var(--white);
}

.section-heading {
max-width: 760px;
margin: 0 auto 44px;
text-align: center;
}

.section-heading.left {
margin-left: 0;
margin-right: 0;
text-align: left;
}

.section-heading.light h2,
.section-heading.light p {
color: var(--white);
}

.section-heading h2 {
margin: 0;
font-size: clamp(2rem, 4vw, 3.15rem);
line-height: 1.12;
letter-spacing: -0.03em;
}

.section-heading p {
margin: 16px 0 0;
color: var(--text-muted);
font-size: 1.05rem;
}

.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
color: var(--blue);
font-size: 0.86rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
}

.section-dark .eyebrow,
.section-heading.light .eyebrow {
color: #90b8ff;
}

.eyebrow::before {
content: "";
width: 28px;
height: 2px;
border-radius: 999px;
background: currentColor;
}

/* HEADER */

.site-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 9999;
min-height: var(--header-height);
background: rgba(255, 255, 255, 0.94);
backdrop-filter: blur(14px);
border-bottom: 1px solid rgba(16, 24, 40, 0.06);
transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
border-color: rgba(16, 24, 40, 0.06);
}

.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
min-height: var(--header-height);
}

.brand-image {
display: inline-flex;
align-items: center;
flex-shrink: 0;
}

.brand-logo {
display: block;
width: auto;
height: 62px;
max-width: 260px;
object-fit: contain;
}

.brand-logo-footer {
height: 56px;
max-width: 240px;
}

.site-nav {
display: flex;
align-items: center;
gap: 24px;
}

.site-nav a {
position: relative;
font-size: 0.95rem;
font-weight: 600;
color: #0f172a;
}

.site-nav a::after {
content: "";
position: absolute;
left: 0;
bottom: -8px;
width: 100%;
height: 2px;
border-radius: 999px;
transform: scaleX(0);
transform-origin: right;
background: var(--blue);
transition: transform var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
transform: scaleX(1);
transform-origin: left;
}

.nav-toggle {
display: none;
width: 50px;
height: 50px;
border: 1px solid var(--line);
border-radius: 16px;
background: var(--surface);
padding: 0;
}

.nav-toggle span {
display: block;
width: 20px;
height: 2px;
margin: 5px auto;
background: #0f172a;
border-radius: 999px;
transition: transform var(--transition), opacity var(--transition);
}

/* BUTTONS */

.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 52px;
padding: 0 22px;
border-radius: 16px;
border: 1px solid transparent;
font-weight: 800;
letter-spacing: -0.01em;
transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.button:hover,
.button:focus-visible {
transform: translateY(-2px);
}

.button-primary {
color: var(--white);
background: linear-gradient(135deg, var(--blue) 0%, #2879f0 100%);
box-shadow: 0 16px 34px rgba(14, 95, 216, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.button-secondary {
color: var(--text);
border-color: var(--line-strong);
background: rgba(255, 255, 255, 0.74);
}

.section-dark .button-secondary {
color: var(--white);
border-color: rgba(255, 255, 255, 0.18);
background: rgba(255, 255, 255, 0.08);
}

.button-full {
width: 100%;
}

.button-small {
min-height: 40px;
padding: 0 16px;
font-size: 0.9rem;
}

.header-cta {
white-space: nowrap;
}

/* HERO */

.hero {
position: relative;
width: 100%;
height: 90vh;
min-height: 600px;
max-height: 900px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.hero-video-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

.hero-overlay {
position: absolute;
inset: 0;
z-index: 1;
background:
linear-gradient(to top, rgba(4, 9, 20, 0.85) 0%, rgba(4, 9, 20, 0.45) 50%, rgba(4, 9, 20, 0.2) 100%);
}

.hero-content {
position: relative;
z-index: 2;
padding-bottom: 56px;
display: flex;
flex-direction: column;
gap: 32px;
}

.hero-copy {
max-width: 780px;
}

.hero-copy h1 {
margin: 0;
font-size: clamp(2.8rem, 5.2vw, 5rem);
line-height: 1.02;
letter-spacing: -0.05em;
color: var(--white);
}

.hero-lead {
margin: 20px 0 0;
color: rgba(255, 255, 255, 0.82);
font-size: 1.1rem;
max-width: 62ch;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 28px;
}

.hero-highlights {
display: flex;
flex-wrap: wrap;
gap: 14px;
}

.mini-badge {
flex: 1 1 auto;
min-width: 150px;
max-width: 220px;
padding: 16px 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
backdrop-filter: blur(12px);
}

.mini-badge strong {
display: block;
font-size: 1.1rem;
color: var(--white);
font-weight: 800;
}

.mini-badge span {
display: block;
margin-top: 4px;
color: rgba(255, 255, 255, 0.72);
font-size: 0.9rem;
}

.floating-panel {
display: none;
}

.hero-grid,
.hero-visual,
.media-hero {
display: contents;
}

/* PROMISE / SERVICES */

.promise-strip {
position: relative;
z-index: 2;
margin-top: -36px;
padding-top: 0;
}

.promise-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 20px;
}

.promise-card,
.service-card,
.transport-card,
.usp-card,
.stat-card,
.process-step,
.legal-card,
.contact-card,
.form-card,
.transport-note,
.metric-inline,
.warehouse-gallery-card {
background: var(--surface);
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
}

.promise-card {
padding: 28px;
border-radius: 24px;
}

.promise-card h2 {
margin: 0 0 10px;
font-size: 1.22rem;
letter-spacing: -0.02em;
}

.promise-card p {
margin: 0;
color: var(--text-muted);
}

.service-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 22px;
}

.service-card {
padding: 28px;
border-radius: 24px;
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow);
border-color: rgba(14, 95, 216, 0.2);
}

.service-icon {
width: 56px;
height: 56px;
display: grid;
place-items: center;
margin-bottom: 18px;
border-radius: 16px;
background: linear-gradient(135deg, rgba(14, 95, 216, 0.12), rgba(14, 95, 216, 0.2));
color: var(--blue);
font-weight: 900;
}

.service-card h3,
.transport-card h3,
.usp-card h3,
.process-step h3,
.transport-note h3,
.legal-card h3,
.warehouse-gallery-content h3 {
margin: 0 0 12px;
font-size: 1.18rem;
letter-spacing: -0.02em;
}

.service-card p,
.transport-card p,
.usp-card p,
.process-step p,
.transport-note p,
.legal-card p {
margin: 0;
color: var(--text-muted);
}

.service-card ul {
margin: 18px 0 0;
padding: 0;
list-style: none;
}

.service-card li {
position: relative;
padding-left: 18px;
margin-top: 10px;
color: var(--text-muted);
}

.service-card li::before {
content: "";
position: absolute;
left: 0;
top: 11px;
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--blue);
}

/* WAREHOUSING */

.warehouse-top-row {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
gap: 32px;
align-items: flex-start;
margin-bottom: 32px;
}

.warehouse-text-left p {
margin: 0 0 12px;
color: var(--text-muted);
font-size: 1.02rem;
}

.warehouse-text-left p:last-child {
margin-bottom: 0;
}

.warehouse-text-right {
display: grid;
gap: 12px;
}

.feature-card {
padding: 16px 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.96);
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
}

.feature-card strong {
display: block;
margin-bottom: 4px;
font-size: 1rem;
}

.feature-card span {
display: block;
color: var(--text-muted);
font-size: 0.94rem;
}

.warehouse-gallery-row {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}

.warehouse-gallery-card {
overflow: hidden;
border-radius: 22px;
background: #ffffff;
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
transition: transform var(--transition), box-shadow var(--transition);
}

.warehouse-gallery-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow);
}

.warehouse-gallery-image {
width: 100%;
height: 190px;
object-fit: cover;
display: block;
background: #dfe7f1;
transition: transform var(--transition);
}

.warehouse-gallery-card:hover .warehouse-gallery-image {
transform: scale(1.03);
}

.warehouse-gallery-content {
padding: 12px 14px 14px;
}

.warehouse-gallery-content h3 {
margin: 0 0 2px;
font-size: 0.98rem;
}

.warehouse-gallery-content p {
margin: 0;
color: var(--text-muted);
font-weight: 600;
font-size: 0.9rem;
}

/* TRANSPORT */

.transport-cards-centered {
display: flex;
justify-content: center;
}

.transport-cards {
display: grid;
grid-template-columns: repeat(4, minmax(0, 280px));
gap: 20px;
justify-content: center;
}

.transport-card {
padding: 0;
border-radius: 24px;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 100%;
}

.transport-card-image {
width: 100%;
height: 160px;
overflow: hidden;
background: var(--surface-soft);
flex-shrink: 0;
}

.transport-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform var(--transition);
}

.transport-card:hover .transport-img {
transform: scale(1.04);
}

.transport-card h3 {
padding: 18px 22px 0;
margin: 0 0 8px;
font-size: 1.18rem;
letter-spacing: -0.02em;
}

.transport-card p {
padding: 0 22px 22px;
margin: 0;
color: var(--text-muted);
}

/* USP, STATS, PROCESS */

.usp-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}

.usp-card {
padding: 24px;
border-radius: 22px;
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.12);
box-shadow: none;
}

.usp-card p {
color: rgba(255, 255, 255, 0.78);
}

.usp-card h3 {
color: var(--white);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}

.stat-card {
padding: 28px;
border-radius: 24px;
text-align: center;
}

.stat-value {
display: block;
font-size: clamp(2.2rem, 5vw, 3.6rem);
line-height: 1;
font-weight: 900;
color: var(--blue);
letter-spacing: -0.05em;
}

.stat-label {
display: block;
margin-top: 12px;
color: var(--text-muted);
font-weight: 600;
}

.process-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 20px;
}

.process-step {
position: relative;
padding: 30px 24px 24px;
border-radius: 24px;
}

.process-number {
display: inline-flex;
align-items: center;
justify-content: center;
width: 54px;
height: 54px;
margin-bottom: 18px;
border-radius: 16px;
background: linear-gradient(135deg, rgba(14, 95, 216, 0.12), rgba(14, 95, 216, 0.2));
color: var(--blue);
font-weight: 900;
}

/* LOCATION / KONTAKT */

.standort-image {
width: 100%;
height: auto;
object-fit: contain;
display: block;
}

.visual-panel {
position: relative;
}

.media-location iframe {
width: 100%;
min-height: 320px;
border: 0;
border-radius: 22px;
}

.address-box {
display: inline-grid;
gap: 2px;
padding: 20px 22px;
margin-top: 10px;
border-radius: 22px;
background: var(--surface);
border: 1px solid var(--line);
box-shadow: var(--shadow-sm);
}

.contact-grid {
display: grid;
grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
gap: 28px;
align-items: start;
}

.contact-copy p {
color: rgba(255, 255, 255, 0.8);
font-size: 1.04rem;
}

.contact-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
margin-top: 28px;
}

.contact-card {
display: grid;
gap: 8px;
padding: 20px;
border-radius: 22px;
color: var(--white);
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.12);
transition: transform var(--transition), background var(--transition);
}

.contact-card:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.12);
}

.contact-label {
color: #90b8ff;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.14em;
text-transform: uppercase;
}

.form-card {
padding: 28px;
padding-top: 70px;
border-radius: 28px;
background: var(--surface);
min-height: 760px;
}

.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}

.field {
display: grid;
gap: 8px;
}

.field-full {
grid-column: 1 / -1;
}

label {
font-weight: 700;
color: #0f172a;
}

input,
select,
textarea {
width: 100%;
min-height: 54px;
padding: 14px 16px;
border: 1px solid rgba(16, 24, 40, 0.12);
border-radius: 16px;
color: var(--text);
background: #fff;
outline: none;
transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

textarea {
min-height: 160px;
resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
border-color: rgba(14, 95, 216, 0.5);
box-shadow: 0 0 0 4px rgba(14, 95, 216, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
border-color: rgba(240, 68, 56, 0.62);
box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.12);
}

.form-actions {
margin-top: 20px;
}

.form-note {
margin: 14px 0 0;
color: var(--text-muted);
font-size: 0.94rem;
}

.form-status {
min-height: 24px;
margin: 10px 0 0;
color: var(--success);
font-weight: 700;
}

/* LEGAL / FOOTER */

.legal-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}

.legal-card {
padding: 28px;
border-radius: 24px;
}

.legal-card-wide {
max-width: 100%;
}

.adsp-list {
display: grid;
gap: 14px;
margin-top: 18px;
}

.adsp-item {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 10px;
}

.adsp-label {
font-weight: 600;
color: var(--text);
}

.site-footer {
padding: 28px 0 22px;
color: var(--white);
background: #060d18;
}

.footer-grid {
display: grid;
grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr));
gap: 26px;
padding-bottom: 24px;
}

.footer-links,
.footer-contact {
display: grid;
gap: 10px;
align-content: start;
}

.footer-links strong,
.footer-contact strong {
color: var(--white);
}

.footer-brand p,
.footer-links a,
.footer-contact a,
.footer-contact span {
color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 18px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.62);
font-size: 0.94rem;
}

/* ANIMATION / REVEAL */

.reveal {
opacity: 0;
transform: translateY(22px);
transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}

/* Rechtliche Seiten */

.legal-page .section-heading {
margin-bottom: 40px;
}

.legal-page .legal-card-wide {
padding: 32px 30px 30px;
line-height: 1.7;
}

.legal-page .legal-card-wide h3 {
margin-top: 26px;
margin-bottom: 10px;
font-size: 1.18rem;
}

.legal-page .legal-card-wide h3:first-of-type {
margin-top: 0;
}

.legal-page .legal-card-wide p {
margin: 4px 0 14px;
}

/* BREAKPOINTS */

.stats-grid + .process-grid {
margin-top: 32px;
}

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .footer-grid,
  .usp-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .transport-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .promise-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .warehouse-top-row {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 76px;
  }

  .brand-logo {
    height: 52px;
    max-width: 220px;
  }

  .brand-logo-footer {
    height: 48px;
    max-width: 200px;
  }

  .nav-toggle {
    display: inline-block;
    flex-shrink: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 10px;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(14, 95, 216, 0.08);
  }

  .hero-grid,
  .contact-grid,
  .footer-grid,
  .usp-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .transport-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .warehouse-top-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .warehouse-gallery-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-visual {
    min-height: unset;
  }

  .media-hero {
    min-height: 460px;
  }

  .hero-video {
    min-height: 460px;
  }

  .promise-strip {
    margin-top: 0;
    padding-top: 24px;
  }

  .contact-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .legal-page .legal-card-wide {
    padding: 26px 20px 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 72px 0;
  }

  .brand-logo {
    height: 44px;
    max-width: 180px;
  }

  .brand-logo-footer {
    height: 42px;
    max-width: 170px;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .mini-badge {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .transport-cards {
    grid-template-columns: 1fr;
  }

  .promise-card,
  .service-card,
  .transport-card,
  .usp-card,
  .stat-card,
  .process-step,
  .legal-card,
  .form-card {
    padding: 22px;
    border-radius: 20px;
  }

  .warehouse-gallery-card {
    padding: 0;
  }

  .media-hero,
  .media-network,
  .media-location {
    min-height: 280px;
  }

  .hero-video {
    min-height: 280px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════
   CHAT WIDGET STYLES
   ═══════════════════════════════════════════════ */

/* ── FAB-Button ── */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: var(--chat-fab-size);
  height: var(--chat-fab-size);
  border-radius: 50%;
  background: var(--chat-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
  z-index: var(--chat-z);
  transition: background var(--chat-duration) var(--chat-ease),
              transform  var(--chat-duration) var(--chat-ease),
              box-shadow var(--chat-duration) var(--chat-ease);
}
.chat-fab:hover {
  background: var(--chat-accent-hover);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.45);
}
.chat-fab:active { transform: translateY(0) scale(0.96); }

.chat-fab-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity var(--chat-duration) var(--chat-ease),
              transform var(--chat-duration) var(--chat-ease);
}
.chat-icon-close              { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.chat-fab.is-open .chat-icon-open  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.chat-fab.is-open .chat-icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* ── Chat-Fenster ── */
.chat-window {
  position: fixed;
  bottom: calc(var(--chat-fab-size) + 32px);
  right: 24px;
  width: var(--chat-width);
  height: var(--chat-height);
  background: var(--chat-bg);
  border-radius: var(--chat-radius);
  box-shadow: var(--chat-shadow);
  border: 1px solid var(--chat-border);
  display: flex;
  flex-direction: column;
  z-index: calc(var(--chat-z) - 1);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity var(--chat-duration) var(--chat-ease),
              transform var(--chat-duration) var(--chat-ease);
}
.chat-window.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.chat-window.is-maximized {
  width:  min(760px, calc(100vw - 48px));
  height: min(88vh, 720px);
  bottom: 24px;
  right:  24px;
  border-radius: 22px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .chat-window,
  .chat-window.is-maximized {
    width: 100vw;
    height: 100dvh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    transform-origin: bottom center;
  }
  .chat-fab { bottom: 16px; right: 16px; }
}

/* ── Header ── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  color: #f9fafb;
  flex-shrink: 0;
  user-select: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  background: rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #e5edff;
}
.chat-avatar svg { width: 18px; height: 18px; }
.chat-title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
}
.chat-status {
  font-size: 0.72rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
}
.chat-header-actions { display: flex; gap: 2px; }

.chat-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: rgba(226, 232, 240, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.chat-ctrl-btn:hover {
  background: rgba(15, 23, 42, 0.4);
  color: #ffffff;
}
.chat-ctrl-btn svg   { width: 15px; height: 15px; }

/* ── Nachrichten-Bereich ── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-behavior: smooth;
  background: linear-gradient(
    180deg,
    rgba(241, 245, 249, 0.9) 0%,
    rgba(248, 250, 252, 0.98) 40%,
    #ffffff 100%
  );
}
.chat-messages::-webkit-scrollbar        { width: 4px; }
.chat-messages::-webkit-scrollbar-track  { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb  {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 2px;
}

/* Nachrichten-Zeilen */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: chatIn 0.22s var(--chat-ease) both;
}
.chat-msg--user { align-self: flex-end; align-items: flex-end; }
.chat-msg--bot  { align-self: flex-start; align-items: flex-start; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sprechblasen */
.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg--bot  .chat-bubble {
  background: var(--chat-bot-bg);
  color: var(--chat-text);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}
.chat-msg--user .chat-bubble {
  background: var(--chat-user-bg);
  color: var(--chat-user-text);
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.24);
}

/* Typing-Indikator */
.chat-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px 2px;
}
.chat-typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--chat-text-muted);
  border-radius: 50%;
  display: inline-block;
  animation: chatDot 1.3s infinite;
}
.chat-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
  0%, 65%, 100% { transform: translateY(0);    opacity: 0.45; }
  30%           { transform: translateY(-5px); opacity: 1;    }
}

/* Fehler-Bubble */
.chat-msg--error .chat-bubble {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.82rem;
}

/* ── Eingabe-Bereich ── */
.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: var(--chat-bg);
  border-top: 1px solid var(--chat-border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--chat-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  background: var(--chat-surface);
  color: var(--chat-text);
  outline: none;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.chat-input:focus {
  border-color: var(--chat-accent);
  box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.18);
  background: #ffffff;
}
.chat-input::placeholder  { color: var(--chat-text-muted); }
.chat-input:disabled      { opacity: 0.6; cursor: not-allowed; }

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--chat-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.12s, opacity 0.18s;
}
.chat-send-btn:hover    { background: var(--chat-accent-hover); transform: scale(1.06); }
.chat-send-btn:active   { transform: scale(0.93); }
.chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.chat-send-btn svg      { width: 15px; height: 15px; }
/* ═══════════════════════════════════════════════ */
.chat-fab {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  left: auto !important;
  top: auto !important;
  inset: auto 16px 16px auto !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
  background: var(--chat-accent) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35) !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.chat-fab:hover {
  background: var(--chat-accent-hover) !important;
}

.chat-window {
  position: fixed !important;
  right: 24px !important;
  bottom: 88px !important;
  left: auto !important;
  top: auto !important;
  width: min(380px, calc(100vw - 32px)) !important;
  height: min(540px, calc(100dvh - 120px)) !important;
  z-index: 999998 !important;
}

@media (max-width: 640px) {
  .chat-fab {
    right: 16px !important;
    bottom: 16px !important;
    inset: auto 16px 16px auto !important;
    width: 56px !important;
    height: 56px !important;
  }

  .chat-window {
    right: 12px !important;
    left: 12px !important;
    bottom: 84px !important;
    width: auto !important;
    height: min(70dvh, 560px) !important;
  }
}