/* =========================================================
   Container Preisvergleich — Modern Design
   ========================================================= */

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

:root {
  --primary:    #1a6b3c;
  --primary-d:  #145530;
  --primary-l:  #e8f5ee;
  --accent:     #f97316;
  --accent-d:   #ea6a0a;
  --text:       #1a1f2e;
  --text-2:     #4b5563;
  --text-3:     #9ca3af;
  --bg:         #f8faf9;
  --white:      #ffffff;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     12px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HEADER
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.3px;
}
.logo strong { color: var(--primary); }

nav {
  display: flex;
  gap: 8px;
}
nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
nav a:hover {
  color: var(--primary);
  background: var(--primary-l);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: linear-gradient(135deg, #0f3d24 0%, #1a6b3c 45%, #2d9158 100%);
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.hero-text .sub {
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* --- Search Card --- */
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.input-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,.12);
}

.btn-search {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(249,115,22,.35);
}

.btn-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(249,115,22,.45);
}
.btn-search:active { transform: translateY(0); }

.hint {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--text-3);
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 20px;
}

.trust-item {
  flex: 1;
  text-align: center;
  color: #fff;
}
.trust-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}
.trust-item span {
  font-size: .75rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* --- Hero Visual --- */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.container-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform .2s, background .2s;
}
.container-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.18);
}

.cc-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.container-card strong {
  display: block;
  font-weight: 700;
  font-size: .9rem;
}
.container-card span {
  font-size: .8rem;
  opacity: .7;
}

/* =========================================================
   SUCHERGEBNISSE
   ========================================================= */

#ergebnisse {
  padding: 60px 0;
}
#ergebnisse.hidden { display: none; }
#ergebnisse h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Result cards injected by script.js */
.anbieter-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.anbieter-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.anbieter-card .badge-best {
  display: inline-block;
  background: #dcfce7;
  color: var(--primary-d);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.anbieter-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.anbieter-card .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.anbieter-card .price small {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-3);
}
.anbieter-card .btn-contact {
  display: block;
  margin-top: 14px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}
.anbieter-card .btn-contact:hover { background: var(--primary-d); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how {
  padding: 80px 0;
  background: var(--white);
}

.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

.how h2, .types h2, .partners h2, .faq h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 40px;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #2d9158 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.5;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-3);
  padding-top: 52px;
  flex-shrink: 0;
}

/* =========================================================
   CONTAINER TYPES
   ========================================================= */

.types {
  padding: 80px 0;
  background: var(--bg);
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.type-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  cursor: pointer;
}

.type-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.type-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.type-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.type-card p {
  font-size: .85rem;
  color: var(--text-2);
  margin-bottom: 14px;
  line-height: 1.5;
}

.price-range {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.sizes {
  font-size: .78rem;
  color: var(--text-3);
}

/* =========================================================
   PREMIUM PARTNERS
   ========================================================= */

.partners {
  padding: 80px 0;
  background: var(--white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.partner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.partner-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.partner-tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-l);
  padding: 3px 10px;
  border-radius: 99px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  padding: 80px 0;
  background: var(--bg);
}

.faq-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color .2s;
}

.faq-item:hover { border-color: var(--primary); }

.faq-item h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #0f1f15;
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  max-width: 1120px;
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; }
  .hero { padding: 48px 0 56px; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid { flex-direction: column; }
  .step-arrow { display: none; }
}

@media (max-width: 600px) {
  .search-row { flex-direction: column; }
  .btn-search { width: 100%; text-align: center; }
  .types-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  nav { display: none; }
  .trust-bar { flex-wrap: wrap; gap: 12px; }
  .trust-divider { display: none; }
}
