﻿/* ==========================================================================
   Startseite (Home/IndexV2)
   Sayfaya özel: IndexV2 @section header içinden yüklenir
   ========================================================================== */

/* ---------- Allgemeine Sektionen ---------- */
.home-section {
  padding: 48px 0;
}

@media (min-width: 992px) {
  .home-section {
    padding: 64px 0;
  }
}

.home-section-tight {
  padding: 16px 0;
}

/* Ritim: gri (body) ↔ beyaz (alt) dönüşümlü bantlar */
.home-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Art arda iki alt bant olursa çift çizgi olmasın */
.home-section-alt+.home-section-alt {
  border-top: none;
}

/* Beyaz bant üzerindeki beyaz kartlar: hafif gri zemin → zeminden ayrışır */
.home-section-alt .home-step,
.home-section-alt .home-brand-tile {
  background: var(--bg-subtle);
  border-color: transparent;
}

.home-section-alt .home-brand-tile:hover {
  background: #ffffff;
  border-color: var(--primary);
}

/* Bölüm başlıkları ortada (tek satır başlıklar için daha dengeli) */
.home-section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.home-section-head {
  margin-bottom: 24px;
  max-width: 720px;
}

.home-section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .home-section-head h2 {
    font-size: 1.75rem;
  }
}

.home-section-head p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Başlık + link (Blog): diğer başlıklar gibi ortalı, link altta */
.home-section-head-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.home-head-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.home-head-link:hover {
  color: var(--primary-hover);
}

/* ---------- 2. Marken (beyaz bant) ---------- */
.home-brands {
  padding: 40px 0 44px;
  border-top: none;
}

.home-brands .home-section-head {
  margin-bottom: 20px;
}

.home-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 560px) {
  .home-brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .home-brand-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.home-brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.home-brand-tile img {
  max-height: 30px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: var(--transition);
}

.home-brand-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-brand-tile:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- 1. Slider (tam genişlik) ---------- */
/* İçerik hizası: site .container ile aynı (1280px - 2x20px iç boşluk) */
.home-slider {
  /* --promo-inset: max(20px, calc((100% - 1240px) / 2)); */
  /* background: var(--dark); */
}

.home-promo {
  position: relative;
  overflow: hidden;
  /* background: var(--dark); */
}

.home-promo-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-promo-track::-webkit-scrollbar {
  display: none;
}

.home-promo-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 320px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .home-promo-slide {
    min-height: 0;
    aspect-ratio: 1900 / 500;
    max-height: 560px;
  }
}

.home-promo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-promo-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px var(--promo-inset) 52px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0) 100%);
}

@media (min-width: 768px) {
  .home-promo-layer {
    padding-left: max(72px, var(--promo-inset));
    padding-right: max(72px, var(--promo-inset));
  }
}

/* Datenbank-HTML (Porto-Markup) im V2-Look darstellen */
.home-promo-layer>* {
  max-width: 560px;
}

.home-promo-layer h1,
.home-promo-layer h2,
.home-promo-layer h3,
.home-promo-layer h4 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: none;
}

.home-promo-layer h1 {
  font-size: 2rem;
}

.home-promo-layer h2 {
  font-size: 1.75rem;
}

.home-promo-layer h3 {
  font-size: 1.5rem;
}

.home-promo-layer h4 {
  font-size: 1.25rem;
}

.home-promo-layer p {
  color: #e2e8f0;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  text-transform: none;
}

.home-promo-layer a.btn,
.home-promo-layer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 6px 8px 0 0;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  width: auto;
}

.home-promo-layer .btn-dark {
  background: #ffffff;
  color: var(--dark);
}

.home-promo-layer .btn:hover {
  filter: brightness(0.95);
}

/* Veritabanından gelen hazır HTML (handy24-slider): yükseklik içerikten gelir,
   sabit oran yok → kesilme olmaz; yanlar site container'ı ile hizalı */
.home-promo-slide.home-promo-custom {
  display: block;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  padding: 36px var(--promo-inset) 56px;
  /* alt: noktalar için yer */
  /* background: var(--dark); */
}

@media (min-width: 768px) {
  .home-promo-slide.home-promo-custom {
    padding: 56px max(72px, var(--promo-inset)) 64px;
    /* min 72px: oklar içeriğe binmesin */
  }
}

.home-promo-custom>* {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* HTML içinde Porto/V2 .container varsa ikinci kez iç boşluk eklemesin */
.home-promo-custom .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.home-promo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .home-promo-arrow {
    display: flex;
  }
}

.home-promo-arrow:hover {
  background: #ffffff;
  color: var(--primary);
}

.home-promo-arrow.is-prev {
  left: 20px;
}

.home-promo-arrow.is-next {
  right: 20px;
}

.home-promo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-promo-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.home-promo-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ---------- 4. So funktioniert's ---------- */
.home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .home-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.home-step {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.home-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.home-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- 5. Empfohlene Geräte ---------- */
.home-device-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (min-width: 900px) {
    .home-device-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.home-device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-width: 0;
}

.home-device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.home-device-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.home-device-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}

.home-device-media img {
  width: 90%;
  /*height: 100%;*/
  object-fit: contain;
  transition: transform 0.4s ease;
}

.home-device-card:hover .home-device-media img {
  transform: scale(1.05);
}

.home-device-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-device-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin: 2px 0 10px;
}

.home-device-more {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- 3. Services & Vorteile (_ServicesV2) ---------- */
.home-services-section {
  padding-top: 56px;
}

.home-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* mobil: 2x2, uzun dikey liste yerine */
  gap: 12px;
}

@media (min-width: 600px) {
  .home-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1080px) {
  .home-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.home-service {
  --svc-color: #22c55e;
  --svc-soft: rgba(34, 197, 94, 0.4);
  --svc-glow: rgba(74, 222, 128, 0.45);
  --svc-glow-2: rgba(187, 247, 208, 0.25);
  --svc-bar: linear-gradient(90deg, #4ade80, #22c55e);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 28px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease;
}

@media (min-width: 600px) {
  .home-service {
    padding: 38px 24px 34px;
  }
}

.home-service.is-purple {
  --svc-color: #c084fc;
  --svc-soft: rgba(192, 132, 252, 0.4);
  --svc-glow: rgba(216, 180, 254, 0.5);
  --svc-glow-2: rgba(243, 232, 255, 0.25);
  --svc-bar: linear-gradient(90deg, #d8b4fe, #a855f7);
}

.home-service.is-blue {
  --svc-color: #38bdf8;
  --svc-soft: rgba(56, 189, 248, 0.4);
  --svc-glow: rgba(125, 211, 252, 0.5);
  --svc-glow-2: rgba(224, 242, 254, 0.25);
  --svc-bar: linear-gradient(90deg, #7dd3fc, #0284c7);
}

.home-service.is-amber {
  --svc-color: #fbbf24;
  --svc-soft: rgba(251, 191, 36, 0.4);
  --svc-glow: rgba(252, 211, 77, 0.5);
  --svc-glow-2: rgba(254, 243, 199, 0.25);
  --svc-bar: linear-gradient(90deg, #fcd34d, #f59e0b);
}

.home-service:hover {
  transform: translateY(-8px);
  border-color: var(--svc-soft);
  box-shadow:
    0 20px 30px -10px color-mix(in srgb, var(--svc-color) 18%, transparent),
    0 20px 25px -5px rgba(0, 0, 0, 0.07),
    0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* İkon alanı */
.home-service-icon {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .home-service-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 26px;
  }
}

.home-service-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--svc-glow) 0%, var(--svc-glow-2) 70%, transparent 100%);
  filter: blur(12px);
  opacity: 0.75;
}

.home-service-ring {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}

.home-service:hover .home-service-ring {
  transform: scale(1.06) rotate(15deg);
  border-color: var(--svc-soft);
}

.home-service-icon img {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.06));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

@media (min-width: 600px) {
  .home-service-icon img {
    width: 86px;
    height: 86px;
  }
}

.home-service:hover .home-service-icon img {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.1));
}

/* Vurgu çizgisi */
.home-service-bar {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--svc-bar);
  margin-bottom: 20px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-service:hover .home-service-bar {
  width: 68px;
}

/* Metinler */
.home-service h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--dark);
  margin: 0 0 12px;
}

@media (min-width: 1080px) {
  .home-service h3 {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.home-service p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 230px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {

  .home-service,
  .home-service-ring,
  .home-service-icon img,
  .home-service-bar {
    transition: none;
  }

  .home-service:hover {
    transform: none;
  }
}

/* ---------- 7. Schnell gefunden ---------- */
.home-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .home-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-pick-col {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.home-pick-col h3 {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}

.home-pick-col ul {
  list-style: none;
}

.home-pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.home-pick-item:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.home-pick-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.home-pick-item img.is-icon {
  padding: 8px;
}

/* ---------- 8. Bewertungen ---------- */
.home-reviews .home-section-head {
  margin-bottom: 8px;
}

/* ---------- 9. Blog ---------- */
.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-blog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.home-blog-card {
  transition: var(--transition);
}

.home-blog-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-subtle);
  overflow: hidden;
}

.home-blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-blog-body {
  padding: 16px 18px 20px;
}

.home-blog-body time {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.home-blog-body h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin: 4px 0 6px;
}

.home-blog-body h3 a:hover {
  color: var(--primary);
}

.home-blog-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 10. SEO-Text ---------- */
.home-seo-section {
  padding-top: 0;
}

.home-seo {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
}

@media (min-width: 768px) {
  .home-seo {
    padding: 40px;
  }
}

.home-seo-content {
  position: relative;
  max-height: 260px;
  overflow: hidden;
}

.home-seo-content::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  pointer-events: none;
}

.home-seo.is-open .home-seo-content {
  max-height: none;
}

.home-seo.is-open .home-seo-content::after {
  display: none;
}

.home-seo-toggle {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 0;
}

.home-seo-toggle:hover {
  color: var(--primary-hover);
}

.home-seo.no-toggle .home-seo-toggle {
  display: none;
}

.home-seo-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Services: mobil (2x2) için kompakt boyutlar ---------- */
@media (max-width: 599px) {
  .home-service {
    padding: 22px 12px 20px;
    border-radius: var(--radius-lg);
  }

  .home-service-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
  }

  .home-service-icon img {
    width: 56px;
    height: 56px;
  }

  .home-service-bar {
    margin-bottom: 12px;
  }

  /* Uzun Almanca kelimeler (Kostenvoranschlag) dar kartta bölünmesin:
     mobilde büyük harf + harf aralığı kapalı */
  .home-service h3 {
    font-size: 0.875rem;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 6px;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .home-service p {
    font-size: 0.78rem;
  }
}