/* EVI Einkaufsverbund – static site
   Soft professional palette (green accent), mobile-first, accessible */

:root {
  --color-bg: #f6f8f7;
  --color-bg-alt: #eef3f0;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5a6578;
  --color-accent: #2a7a5c;
  --color-accent-hover: #1e5f47;
  --color-accent-soft: rgba(42, 122, 92, 0.12);
  --color-border: #d5e0da;
  --color-timeline: #c5d0ca;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 35, 50, 0.04), 0 8px 24px rgba(26, 35, 50, 0.06);
  --shadow-hover: 0 4px 12px rgba(26, 35, 50, 0.08), 0 16px 40px rgba(26, 35, 50, 0.08);
  --max-width: 68rem;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px var(--color-accent-soft), 0 0 0 1px var(--color-accent);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

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

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 248, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo:hover {
  color: var(--color-text);
}

.logo-img {
  height: 2.15rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.logo-text-main {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-text-sub {
  font-size: 0.7rem;
  font-weight: 550;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 420px) {
  .logo-text-sub {
    display: none;
  }
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #4a9a78 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark-text {
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--color-accent);
}

@media (max-width: 767px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .site-nav a:hover {
    background: var(--color-accent-soft);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem 1.35rem;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .site-nav ul {
    gap: 0.15rem 0.9rem;
  }

  .site-nav a {
    font-size: 0.88rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 122, 92, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 122, 92, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.hero-orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -10%;
  right: -5%;
  background: rgba(42, 122, 92, 0.28);
  animation: float 18s ease-in-out infinite;
}

.hero-orb--2 {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  bottom: 5%;
  left: -8%;
  background: rgba(90, 160, 130, 0.22);
  animation: float 22s ease-in-out infinite reverse;
}

.hero-shape {
  position: absolute;
  border: 1.5px solid rgba(42, 122, 92, 0.18);
  border-radius: 18px;
  opacity: 0.7;
}

.hero-shape--1 {
  width: min(160px, 28vw);
  height: min(160px, 28vw);
  top: 18%;
  right: 12%;
  transform: rotate(18deg);
}

.hero-shape--2 {
  width: min(90px, 18vw);
  height: min(90px, 18vw);
  bottom: 16%;
  right: 28%;
  border-radius: 50%;
  border-style: dashed;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 18px); }
}

.hero-content {
  position: relative;
  max-width: 42rem;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-text);
}

.hero-tagline {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

.section-header {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(42, 122, 92, 0.35);
}

.card--feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card--feature p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.card-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.card--with-image {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.85rem;
}

.card--with-image .card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  background: var(--color-bg-alt);
}

.card--with-image h3,
.card--with-image p {
  padding-inline: 0.4rem;
}

.card--with-image p {
  padding-bottom: 0.35rem;
}

.card--compact .card-image {
  aspect-ratio: 16 / 9;
}

.card--location .card-icon {
  margin-bottom: 0.75rem;
}

/* Highlight / Zentraleinkauf panel */
.highlight-panel {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.highlight-accent {
  background: linear-gradient(180deg, var(--color-accent), #4a9a78);
}

.highlight-body {
  padding: 1.35rem 1.5rem;
}

.highlight-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.highlight-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* Schwerpunkt */
.focus-panel {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (min-width: 800px) {
  .focus-panel {
    grid-template-columns: minmax(240px, 1.05fr) 1.15fr;
  }
}

.focus-media {
  margin: 0;
  background: var(--color-bg-alt);
  min-height: 14rem;
}

.focus-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
}

.focus-copy {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.focus-copy > p {
  margin: 0;
  color: var(--color-text-muted);
}

.focus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.focus-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--color-text);
  font-size: 0.98rem;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* More services */
.more-services {
  margin-top: 2rem;
}

.more-services-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.cards--more {
  margin-bottom: 1.25rem;
}

.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .chip-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  box-shadow: var(--shadow);
}

.chip strong {
  color: var(--color-text);
  font-weight: 650;
}

.refs-link-wrap {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.refs-hint {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Contact */
.contact-panel {
  display: grid;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}

@media (min-width: 560px) {
  .contact-panel {
    grid-template-columns: 1.15fr 1fr;
    max-width: none;
    padding: 2rem;
  }
}

.contact-address {
  font-style: normal;
  margin: 0;
}

.contact-name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.contact-address p {
  margin: 0;
  color: var(--color-text-muted);
}

.contact-meta {
  margin-top: 0.75rem !important;
  font-size: 0.92rem;
}

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

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  font-weight: 550;
  text-decoration: none;
  word-break: break-word;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: #163028;
  color: #c5d0ca;
  font-size: 0.92rem;
}

.site-footer a {
  color: #9ecfba;
}

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

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr 1.4fr;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa89c;
}

.footer-impressum p,
.footer-privacy p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.footer-privacy p:last-child {
  margin-bottom: 0;
}

.footer-copy {
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8fa89c;
}

.footer-copy a {
  text-decoration: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Reference photo gallery */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--color-bg-alt);
}
.gallery-item figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.gallery-cat {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}
.gallery-title {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.35;
}

.contact-note {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 28rem;
}
