/* =====================================================
   MOTZ AGRAR e.U. — Haupt-Stylesheet
   ===================================================== */

:root {
  --blue:       #1a6fd4;
  --blue-dark:  #0d4fa0;
  --blue-deep:  #071e3d;
  --yellow:     #f5b829;
  --yellow-dk:  #c9940f;
  --white:      #ffffff;
  --gray-light: #f5f6f8;
  --gray-mid:   #e2e6ed;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --border:     #dde3ee;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 70px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2.5px solid var(--blue);
  box-shadow: 0 2px 24px rgba(13,79,160,0.08);
  transition: background 0.3s;
}
.nav-logo img {
  height: 44px;
  transition: opacity 0.2s;
}
.nav-logo img:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--gray-light); color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white);
  margin-left: 8px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
  animation-fill-mode: forwards;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s ease, transform 7s ease;
}
/* Individual slide images */
.hero-slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1800&q=80'); }
.hero-slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1800&q=80'); }
.hero-slide:nth-child(3) { background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1800&q=80'); }
.hero-slide:nth-child(4) { background-image: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=1800&q=80'); }

/* Dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,30,61,0.82) 0%,
    rgba(13,79,160,0.45) 60%,
    rgba(7,30,61,0.30) 100%
  );
  z-index: 1;
}
/* Yellow accent line at bottom */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 860px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--yellow);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-desc {
  margin-top: 24px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  line-height: 1.75;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.9s forwards;
}

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 80px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: #1a1200;
}
.btn-primary:hover { background: var(--yellow-dk); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,184,41,0.35); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,111,212,0.3); }

/* ── SECTIONS ── */
section { padding: 88px 48px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title em {
  font-style: normal;
  color: var(--blue);
}

/* ── ABOUT STRIP ── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-text p {
  margin-top: 24px;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.85;
}
.about-text p + p { margin-top: 14px; }
.about-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Yellow accent block */
.about-image::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  background: var(--yellow);
  border-radius: 4px;
  z-index: -1;
}

/* ── LEISTUNGEN ── */
.leistungen-section { background: var(--gray-light); }
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,111,212,0.12);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: #e8f0fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--blue); }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── STROH & HEU BANNER ── */
.handel-section {
  background: var(--blue-deep);
  color: var(--white);
  padding: 80px 48px;
}
.handel-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.handel-text .section-label { color: var(--yellow); }
.handel-text .section-label::before { background: var(--yellow); }
.handel-text .section-title { color: var(--white); }
.handel-text p {
  margin-top: 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.98rem;
  line-height: 1.8;
}
.handel-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.handel-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--yellow);
  padding: 20px 24px;
  border-radius: 8px;
}
.handel-badge-icon { font-size: 2rem; }
.handel-badge-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.handel-badge-text span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ── EINSATZGEBIET ── */
.gebiet-section { background: var(--white); }
.gebiet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.gebiet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.gebiet-pill .dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* ── CALL TO ACTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 72px 48px;
  text-align: center;
  color: var(--white);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-section p {
  margin-top: 14px;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}
.cta-section .btn { margin-top: 32px; }

/* ── KONTAKT PAGE ── */
.page-header {
  background: var(--blue-deep);
  padding: 100px 48px 56px;
  border-bottom: 4px solid var(--yellow);
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.page-header p {
  margin-top: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
  padding: 72px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.kontakt-info h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}
.krow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.krow:last-of-type { border-bottom: none; }
.krow-icon {
  width: 40px; height: 40px;
  background: #e8f0fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.krow-detail strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 3px;
}
.krow-detail span { font-size: 0.93rem; color: #4b5563; line-height: 1.6; }

/* Form */
.form-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}
.form-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.form-check input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.form-check label {
  font-size: 0.84rem;
  color: #6b7280;
  line-height: 1.5;
}
.form-check a { color: var(--blue); text-decoration: underline; }
.form-note { font-size: 0.78rem; color: #9ca3af; margin-top: 14px; }

/* ── LEGAL PAGE ── */
.legal-body { padding: 72px 48px; max-width: 860px; margin: 0 auto; }
.legal-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 40px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-body h2:first-child { border-top: none; margin-top: 0; }
.legal-body p { font-size: 0.95rem; color: #4b5563; line-height: 1.8; margin-bottom: 10px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}
.legal-tab {
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.legal-panel { display: none; }
.legal-panel.active { display: block; }

/* ── FOOTER ── */
footer {
  background: #071e3d;
  padding: 48px;
  color: rgba(255,255,255,0.4);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo img { height: 34px; opacity: 0.6; filter: brightness(0) invert(1); }
.footer-copy { font-size: 0.8rem; line-height: 1.9; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--yellow); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 64px 24px; }
  .hero-content { padding: 0 28px; }
  .hero-dots { left: 28px; }
  .about-grid,
  .handel-inner,
  .leistungen-grid,
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .page-header { padding: 90px 24px 44px; }
  .kontakt-grid { padding: 48px 24px; }
  .form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .legal-body { padding: 48px 24px; }
  footer { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .leistungen-grid { grid-template-columns: 1fr; }
  .handel-section, .cta-section { padding: 56px 24px; }
}
