/* ============================================================
   S&G Getränke GbR – Hauptstylesheet
   Farben: Dunkelblau #1D2C59 | Orange #F16825 | Grün #8AB942
   Hintergrund dunkel: #0B1020
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1D2C59;
  --blue-dark:  #0B1020;
  --blue-mid:   #162040;
  --orange:     #F16825;
  --orange-dark:#C9521A;
  --green:      #8AB942;
  --green-dark: #6E9A2E;
  --white:      #FFFFFF;
  --gray-light: #F5F7FA;
  --gray-mid:   #E2E8F0;
  --gray-text:  #64748B;
  --text-dark:  #1A2340;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --transition: .25s ease;
  --font-main:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--blue); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--blue-dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3 { color: var(--white); }
.section-gray { background: var(--gray-light); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(241,104,37,.35); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

/* === HEADER / NAVIGATION === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29,44,89,.12);
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,1);
  box-shadow: 0 2px 20px rgba(29,44,89,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.header-logo img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  color: var(--blue);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: var(--blue); }
.header-cta { flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: .75rem 1.5rem;
  font-weight: 500;
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.mobile-nav .btn { margin: .75rem 1.5rem; display: block; text-align: center; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,16,32,.92) 0%, rgba(29,44,89,.75) 60%, rgba(11,16,32,.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(241,104,37,.15);
  border: 1px solid rgba(241,104,37,.4);
  color: var(--orange);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-services span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--blue);
  padding: 1.25rem 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: center;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.9);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* === SECTION HEADER === */
.section-header { margin-bottom: 3rem; }
.section-header.text-center .section-label { display: block; }

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.75rem; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: rgba(29,44,89,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue);
}
.card-icon.orange { background: rgba(241,104,37,.1); color: var(--orange); }
.card-icon.green  { background: rgba(138,185,66,.12); color: var(--green-dark); }
.card h3 { margin-bottom: .75rem; }
.card p  { color: var(--gray-text); font-size: .92rem; margin-bottom: 1.25rem; }
.card-list { margin-bottom: 1.5rem; }
.card-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  color: var(--gray-text); font-size: .88rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--gray-mid);
}
.card-list li:last-child { border-bottom: none; }
.card-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: .55rem;
}

/* === WHY US === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.why-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.why-item:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.why-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(241,104,37,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--orange);
}
.why-item h4 { color: var(--white); margin-bottom: .5rem; }
.why-item p  { color: rgba(255,255,255,.65); font-size: .88rem; margin: 0; }

/* === STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}
.step-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step-item h3 { margin-bottom: .75rem; }
.step-item p  { color: var(--gray-text); font-size: .92rem; margin: 0; }

/* === SORTIMENT GRID === */
.sortiment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.sortiment-item {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.sortiment-item:hover {
  border-color: var(--blue);
  background: rgba(29,44,89,.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sortiment-item .icon { font-size: 2rem; margin-bottom: .5rem; }
.sortiment-item span { font-size: .85rem; font-weight: 600; color: var(--blue); }

/* === LIEFERGEBIET === */
.delivery-map-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  color: var(--white);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.delivery-map-placeholder svg { opacity: .5; }

/* === CONTACT FORM === */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  background: var(--white);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  grid-column: 1 / -1;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--blue);
}
.form-checkbox label { font-size: .875rem; color: var(--gray-text); }
.form-checkbox a { color: var(--blue); text-decoration: underline; }
.form-success {
  display: none;
  background: rgba(138,185,66,.1);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--green-dark);
  font-weight: 600;
}
.form-error-msg {
  color: #dc2626;
  font-size: .82rem;
  margin-top: .25rem;
}
/* Honeypot */
.hp-field { display: none !important; }

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); margin-bottom: 1.5rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.contact-row-text p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.contact-row-text a { color: var(--white); font-weight: 600; }
.contact-row-text a:hover { color: var(--orange); }
.contact-buttons { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }

/* === FOOTER === */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact-item {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
  font-size: .88rem;
}
.footer-contact-item svg { color: var(--orange); flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.75); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

/* === MOBILE STICKY BAR === */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--blue-dark);
  border-top: 2px solid var(--orange);
  padding: .75rem 1rem;
}
.mobile-sticky-inner {
  display: flex;
  gap: .5rem;
  justify-content: center;
}
.mobile-sticky-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .5rem;
  border-radius: var(--radius);
  color: var(--white);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-sticky-btn:hover { background: rgba(255,255,255,.1); }
.mobile-sticky-btn.primary { background: var(--orange); }
.mobile-sticky-btn.primary:hover { background: var(--orange-dark); }
.mobile-sticky-btn svg { width: 22px; height: 22px; }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--gray-light);
  padding: .75rem 0;
  font-size: .82rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
  list-style: none;
}
.breadcrumb li + li::before { content: '›'; margin-right: .25rem; color: var(--gray-text); }
.breadcrumb a { color: var(--blue); }
.breadcrumb li:last-child { color: var(--gray-text); }

/* === PAGE HERO (Unterseiten) === */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 7rem 0 4rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 650px; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.9); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn-secondary { border-color: rgba(255,255,255,.7); }

/* === LEGAL PAGES === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: .75rem; font-size: 1.1rem; }
.legal-content p, .legal-content li { color: var(--gray-text); font-size: .95rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: .35rem; }
.legal-content a { color: var(--blue); text-decoration: underline; }

/* === 404 === */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { font-size: 6rem; color: var(--orange); margin-bottom: 0; }
.error-page h2 { margin-bottom: 1rem; }

/* === ALERTS === */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: rgba(138,185,66,.12); border: 1px solid var(--green); color: var(--green-dark); }
.alert-error   { background: rgba(220,38,38,.08); border: 1px solid #dc2626; color: #dc2626; }

/* === UTILITIES === */
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-sticky { display: block; }
  body { padding-bottom: 80px; }
  .hero { min-height: 90vh; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .sortiment-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .sortiment-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar-inner { gap: .5rem 1rem; }
  h1 { font-size: 1.9rem; }
}

/* === PRINT === */
@media print {
  .site-header, .mobile-sticky, .site-footer { display: none; }
  body { padding: 0; }
}
