/* =============================================
   Briel Spedition – Brand-aligned Styles
   Colors: Charcoal #2c3136, Logo-Blue #183AA0
   ============================================= */

:root {
  --color-primary: #2c3136;
  --color-primary-light: #3d4349;
  --color-primary-dark: #1e2226;
  --color-brand-blue: #183aa0;
  --color-brand-blue-hover: #132f85;
  --color-brand-blue-light: #e8eef8;
  --gradient-brand: linear-gradient(90deg, #132f85 0%, #183aa0 50%, #5b8fd9 100%);
  --color-accent: #5c646d;
  --color-accent-hover: #4a5159;
  --color-accent-light: #8a9299;
  --color-green: #2c3136;
  --color-green-hover: #1e2226;
  --color-green-light: #eef0f1;
  --color-white: #ffffff;
  --color-gray-50: #f7f7f8;
  --color-gray-100: #eef0f1;
  --color-gray-200: #dde0e3;
  --color-gray-400: #9aa0a6;
  --color-gray-600: #5c646d;
  --color-gray-800: #2c3136;
  --color-gray-900: #1e2226;
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(44, 49, 54, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 49, 54, 0.1);
  --shadow-lg: 0 10px 40px rgba(44, 49, 54, 0.12);
  --radius: 4px;
  --radius-lg: 6px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- SVG Icons ---- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo-img {
  height: 86px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
}

.header .logo-img {
  mix-blend-mode: multiply;
}

.logo-img--footer {
  height: 58px;
  max-width: 250px;
  background: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-blue);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--color-brand-blue);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-brand-blue) !important;
  color: var(--color-white) !important;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-brand-blue-hover) !important;
  color: var(--color-white) !important;
  box-shadow: 0 6px 20px rgba(24, 58, 160, 0.28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 34, 38, 0.92) 0%,
    rgba(44, 49, 54, 0.85) 50%,
    rgba(61, 67, 73, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 9rem 0 4rem;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-badge-divider {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: rgba(255, 255, 255, 0.75);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--color-brand-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 58, 160, 0.32);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
  display: block;
}

/* ---- Section common ---- */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  color: var(--color-brand-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-gray-600);
  font-size: 1.05rem;
}

/* ---- Services ---- */
.services {
  background: var(--color-gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card-image {
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 2rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(44, 49, 54, 0.15);
}

.service-icon .icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.service-list li .icon {
  width: 16px;
  height: 16px;
  color: var(--color-brand-blue);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ---- Partner ---- */
.partner {
  background: var(--color-primary);
  color: var(--color-white);
  overflow-x: clip;
}

.partner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.partner-content {
  min-width: 0;
}

.partner-content h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.partner-content p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.5rem;
}

.partner-content .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.partner-badge-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.partner-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 2rem;
  border-radius: var(--radius);
  max-width: 100%;
}

.partner-badge-brand {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

.partner-badge-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 1rem;
}

.partner-image {
  position: relative;
  margin: 0;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.45rem;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform var(--transition), box-shadow var(--transition);
}

.partner-image:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.partner-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  border-radius: calc(var(--radius-lg) - 2px);
  transition: transform 0.7s ease;
}

.partner-image:hover img {
  transform: scale(1.04);
}

/* ---- About / Company ---- */
.about {
  background: var(--color-gray-50);
}

.about-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-gray-800);
  margin-top: 1rem;
}

.about-unified {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.about-unified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  z-index: 1;
}

.about-unified-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.about-image {
  margin: 0;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-gray-200);
}

.about-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.about-caption {
  padding: 1.25rem 1.5rem;
  background: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
}

.about-caption strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.about-caption span {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.about-panel {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-panel p {
  color: var(--color-gray-800);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-panel p:last-of-type {
  margin-bottom: 1.5rem;
}

.about-highlights {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray-200);
}

.about-highlight-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlights strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.about-highlights span {
  color: var(--color-gray-600);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---- Gallery strip ---- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  height: 320px;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition);
}

.gallery-strip img:hover {
  filter: brightness(1.08);
}

/* ---- Contact ---- */
.contact {
  background: var(--color-gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.contact-details li:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-details span,
.contact-details a {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.contact-form-wrapper {
  position: relative;
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-brand-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.form-privacy input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--color-brand-blue);
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: var(--color-green-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-gray-200);
}

.form-message.error {
  display: block;
  background: #fdecea;
  color: #8b2e24;
  border: 1px solid #f5c6cb;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.75rem;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.visitor-counter {
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}

.visitor-count {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* ---- Legal pages ---- */
.legal-page {
  padding-top: 135px;
  padding-bottom: 4rem;
  min-height: 80vh;
}

.legal-page h1 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.legal-page p,
.legal-page address {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  font-style: normal;
}

.legal-page a {
  word-break: break-all;
}

.impressum-person {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--color-gray-50);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  border: 1px solid var(--color-gray-200);
}

.impressum-person img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.impressum-person-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.impressum-person-info .role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .partner-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
  }

  .partner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .partner-badge {
    display: flex;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin-inline: 0;
  }

  .partner-image {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
  }

  .gallery-strip img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-img {
    height: 64px;
    max-width: 220px;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 240px;
  }

  .about-panel {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-badge {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .partner-badge-brand {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
  }

  .impressum-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

/* ---- Floating Action Buttons ---- */
.fab {
  position: fixed;
  bottom: 1.5rem;
  z-index: 999;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44, 49, 54, 0.25);
}

.fab .icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle {
  left: 1.5rem;
  background: var(--color-primary);
}

.sound-toggle:hover {
  box-shadow: 0 8px 28px rgba(44, 49, 54, 0.25);
}

.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.fab-stack .fab {
  position: relative;
  bottom: auto;
  right: auto;
}

.email-fab {
  background: var(--color-primary);
  color: var(--color-white);
  overflow: visible;
}

.email-fab:hover {
  color: var(--color-white);
  box-shadow: 0 8px 28px rgba(44, 49, 54, 0.25);
}

.email-fab .email-icon {
  width: 26px;
  height: 26px;
  overflow: visible;
  animation: email-send 5s ease-in-out infinite;
}

.email-body {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.35;
}

.email-flap {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.35;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 12px 9px;
  animation: email-flap-fold 5s ease-in-out infinite;
}

.email-heart {
  fill: #d63b3b;
  transform-origin: 12px 13px;
  animation: email-heart 5s ease-in-out infinite;
}

.email-stamp {
  fill: var(--color-brand-blue);
}

.email-stamp-mark {
  fill: #ffffff;
}

.email-speed {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0;
  animation: email-speed 5s ease-in-out infinite;
}

.email-speed--2 {
  animation-delay: 0.08s;
}

.email-fab:hover .email-icon,
.email-fab:hover .email-flap,
.email-fab:hover .email-heart,
.email-fab:hover .email-speed {
  animation-play-state: paused;
}

@keyframes email-flap-fold {
  0%, 12%, 82%, 100% {
    transform: scaleY(-1);
  }
  42% {
    transform: scaleY(-0.15);
  }
  54% {
    transform: scaleY(1);
  }
  66% {
    transform: scaleY(1);
  }
  76% {
    transform: scaleY(-1);
  }
}

@keyframes email-heart {
  0%, 48%, 78%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  56%, 68% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes email-speed {
  0%, 54%, 74%, 100% {
    opacity: 0;
    transform: translateX(0);
  }
  62%, 70% {
    opacity: 0.85;
    transform: translateX(-1px);
  }
}

@keyframes email-send {
  0%, 52%, 78%, 100% {
    transform: translate(0, 0);
  }
  62% {
    transform: translate(2px, -5px);
  }
  70% {
    transform: translate(0, 0);
  }
}

.phone-fab {
  width: 54px;
  height: 54px;
  background: var(--color-primary-light);
  overflow: visible;
  isolation: isolate;
}

.phone-fab-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.phone-fab-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(24, 58, 160, 0.5);
  animation: phone-wave 3s cubic-bezier(0, 0.2, 0.4, 1) infinite;
}

.phone-fab-wave:nth-child(1) {
  animation-delay: 0s;
}

.phone-fab-wave:nth-child(2) {
  animation-delay: 1s;
}

.phone-fab-wave:nth-child(3) {
  animation-delay: 2s;
}

.phone-fab .icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
  animation: phone-ring 2.4s ease-in-out infinite;
  transform-origin: center;
}

.phone-fab:hover .phone-fab-wave,
.phone-fab:hover .icon {
  animation-play-state: paused;
}

@keyframes phone-wave {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes phone-ring {
  0%, 45%, 100% {
    transform: rotate(0deg) scale(1);
  }
  6% {
    transform: rotate(-16deg) scale(1.05);
  }
  12% {
    transform: rotate(16deg) scale(1.05);
  }
  18% {
    transform: rotate(-12deg) scale(1.03);
  }
  24% {
    transform: rotate(12deg) scale(1.03);
  }
  30% {
    transform: rotate(-6deg) scale(1.02);
  }
  36% {
    transform: rotate(6deg) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-fab-wave,
  .phone-fab .icon,
  .email-fab .email-icon,
  .email-flap,
  .email-heart,
  .email-speed {
    animation: none;
  }
}

.sound-toggle .icon-sound-on {
  display: none;
}

.sound-toggle.is-playing .icon-sound-off {
  display: none;
}

.sound-toggle.is-playing .icon-sound-on {
  display: block;
}

@media (max-width: 768px) {
  .fab {
    bottom: 1.25rem;
    width: 46px;
    height: 46px;
  }

  .fab-stack {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.7rem;
  }

  .phone-fab {
    width: 50px;
    height: 50px;
  }

  .phone-fab .icon {
    width: 26px;
    height: 26px;
  }

  .sound-toggle {
    left: 1.25rem;
  }
}
