/* U-Veral AG — Optimized Static Stylesheet */
:root {
  --brand-primary: #1a64b7;
  --brand-primary-dark: #134d8f;
  --brand-accent: #3366cc;
  --brand-link: #1a5296;
  --brand-link-hover: #0078a0;
  --text-main: #222222;
  --text-muted: #555e68;
  --bg-page: #ffffff;
  --bg-subtle: #f4f6f9;
  --bg-footer: #232323;
  --border-light: #e2e7ee;
  --shadow-sm: 0 2px 8px rgba(18, 32, 45, 0.06);
  --shadow-md: 0 6px 20px rgba(18, 32, 45, 0.10);
  --radius: 6px;
  --container-max: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
}

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

a {
  color: var(--brand-link);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-link-hover);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: #162433;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.85rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* Branding Header */
.site-branding {
  background: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
}

.site-branding a {
  display: inline-block;
}

.site-branding img {
  margin: 0 auto;
  max-height: 92px;
  width: auto;
}

/* Primary Navigation */
.site-nav-wrap {
  background-color: var(--brand-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  margin: 0.5rem 0;
}

.nav-toggle:hover {
  background: rgba(0, 0, 0, 0.15);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

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

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0 1.1rem;
  height: 56px;
  text-decoration: none;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a,
.nav-menu > li.active > a {
  background-color: #272727;
  color: #ffffff;
  text-decoration: none;
}

.nav-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-caret {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.has-dropdown:hover .nav-caret,
.has-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: #2f2f2f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 200;
}

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.open > .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  color: #f3f5f8;
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-dropdown li:last-child a {
  border-bottom: none;
}

.nav-dropdown li a:hover,
.nav-dropdown li.active a {
  background-color: #1f1f1f;
  color: #ffffff;
  text-decoration: none;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #12202d;
}

.slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 830;
  max-height: 540px;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
  color: #ffffff;
  padding: 1.75rem 1.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 32, 45, 0.55);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.slider-btn:hover {
  background: rgba(26, 100, 183, 0.9);
}

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 0.75rem;
  right: 1.25rem;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  cursor: pointer;
}

.slider-dot.is-active {
  background: #ffffff;
}

/* Main Content */
main {
  flex: 1 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.lead-title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #162433;
  margin-bottom: 0.4rem;
}

.lead-since {
  font-weight: 400;
  color: var(--text-muted);
}

.lead-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--brand-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Home product overview list */
.product-overview-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.85rem;
}

.product-overview-list li {
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-primary);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-overview-list li strong {
  display: block;
  color: #162433;
  margin-bottom: 0.15rem;
}

.notice-box {
  background: #eef4fc;
  border: 1px solid #c9ddf6;
  border-left: 4px solid var(--brand-primary);
  color: #174178;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.5rem 0;
}

.owner-sig {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem;
}

/* Two-column layout for Product subpages */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.sidebar-nav {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-nav h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary);
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li + li {
  margin-top: 0.25rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.9375rem;
}

.sidebar-nav a:hover {
  background: #e3ecf8;
  color: var(--brand-primary-dark);
  text-decoration: none;
}

.sidebar-nav li.active a {
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.category-card h3 {
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Partner / Product rows */
.partner-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.partner-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.partner-logo {
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 70px;
  max-width: 185px;
  width: auto;
  object-fit: contain;
}

.partner-info {
  flex: 1;
}

.partner-info h3,
.partner-info h4 {
  margin-bottom: 0.35rem;
}

.partner-info p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--brand-primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--brand-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

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

/* Product bullet list (e.g. Kunststoffbehälter) */
.product-group {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.product-group h4 {
  color: var(--brand-primary);
  margin-bottom: 0.65rem;
}

.product-group ul {
  margin: 0;
  padding-left: 1.25rem;
}

.product-group li + li {
  margin-top: 0.45rem;
}

/* Contact Cards (Über uns) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.team-role {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #162433;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.contact-links svg {
  width: 18px;
  height: 18px;
  fill: var(--brand-primary);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  max-width: 680px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 1rem;
}

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

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: #162433;
}

.req-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: #d93829;
  color: #ffffff;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #c6d0dc;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text-main);
}

.form-control:focus {
  border-color: var(--brand-primary);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  display: none;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: #e6f6ec;
  border: 1px solid #9ad6b0;
  color: #165c30;
}

.form-status.error {
  display: block;
  background: #fdeceb;
  border: 1px solid #f2b4af;
  color: #8f1d14;
}

/* Map Embed & 2-Click Consent */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  max-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent {
  text-align: center;
  max-width: 520px;
  padding: 2rem 1.5rem;
}

.map-consent svg {
  color: var(--brand-primary);
  margin: 0 auto 0.75rem;
}

.map-consent-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.map-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Sitemap */
.sitemap-list {
  list-style: none;
  padding-left: 0;
}

.sitemap-list > li {
  margin-bottom: 0.5rem;
}

.sitemap-list ul {
  list-style: disc;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
}

/* Legal / Privacy text */
.legal-content {
  max-width: 820px;
}

.legal-content h3 {
  margin-top: 1.75rem;
  color: var(--brand-primary);
}

/* Footer */
.site-footer {
  background-color: var(--bg-footer);
  color: #e6e9ee;
  padding: 1.75rem 0;
  margin-top: auto;
  font-size: 0.92rem;
}

.site-footer a {
  color: #6ec4ea;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-address {
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 860px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partner-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-logo {
    flex: none;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    padding-bottom: 0.75rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > li > a {
    height: auto;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.18);
    padding-left: 1rem;
  }

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

  .slider-track {
    aspect-ratio: 16 / 9;
  }

  .slider-dots {
    display: none;
  }

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