@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* style.css - Helles, freundliches Design mit rotem Akzent */
:root {
  --bg: #e5e9f0; /* Leicht angepasster Hintergrund für Glassmorphismus */
  --card: rgba(255, 255, 255, 0.7); /* Transparente Karten für Glassmorphismus */
  --muted: #64748b;
  --accent: #d22339;
  --accent-2: #28a745;
  --text: #334155;
  --container: 1100px;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-color: #d5dee9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: url("img/bg_body.jpg") no-repeat center center fixed;
  background-size: cover;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.container {
  width: 95%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
.site-header {
  background: var(--card); /* Transparenter Header */
  backdrop-filter: blur(10px); /* Glassmorphismus-Effekt */
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mobile Header */
.header-mobile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}
.header-mobile-container .logo {
    margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #000;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-accent {
  color: var(--accent);
}

.logo img {
  display: none;
}

main {
  padding-bottom: 4rem;
}

/* Nav & search */
.desktop-header-content {
    display: none;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
}
.header-top-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-search {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.4);
}

.nav-search input[type="search"] {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s ease-in-out;
  flex-grow: 1;
}

.nav-search input[type="search"]:focus {
  outline: none;
}

.nav-search .btn-search {
  padding: 0.5rem 1rem;
  border-left: 1px solid var(--border-color);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.nav-search .btn-search:hover {
  background: #e2e8f0;
}

/* Desktop-Suchen-Button als Text */
.main-nav .btn-search {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

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

.secondary-nav {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 1rem;
}
.secondary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.secondary-nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}
.secondary-nav a:hover {
    color: var(--accent);
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 24px;
}

/* Mobile-spezifische Elemente */
.burger-mobile, .search-icon-mobile {
  display: none; /* Auf Desktop ausgeblendet */
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menü Overlay */
.mobile-menu-overlay {
  display: none;
  width: 100%;
  position: absolute;
  top: 70px;
  left: 0;
  background-color: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-overlay.open {
    display: block;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

/* Mobile Such Overlay */
.mobile-search-overlay {
  display: none;
  width: 100%;
  position: fixed;
  top: 70px;
  left: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem;
  box-shadow: var(--shadow);
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
}

.mobile-search-overlay.open {
    display: flex;
    transform: translateY(0);
}

.mobile-search-form {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.mobile-search-form input {
    flex-grow: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.mobile-search-form button {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(240, 242, 245, 0.7), rgba(240, 242, 245, 0.7)), url("img/header-background.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: 3rem;
  color: var(--accent);
  font-family: 'Dancing Script', cursive;
}
.hero-subtext {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}
.hero-search {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hero-search input {
  width: 60%;
  max-width: 700px;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease-in-out;
}
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Base button styles */
.btn {
  border: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}
.btn-primary {
  background: var(--accent);
}
.btn-primary:hover {
  background: #c31e33;
}

.btn-secondary {
    background: var(--muted);
}
.btn-secondary:hover {
    background: #475569;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text);
}
.btn-outline:hover {
    background: #f1f5f9;
}

/* Content sections */
.content-section {
  padding: 2rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}
.section-header a {
    color: var(--accent);
    font-weight: 600;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
}
.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-content {
  padding: 1.5rem;
}
.card-content h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1rem;
}

/* Releases Slider (Scrollbar wird auf mobilen Geräten verborgen) */
.release-slider-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 1rem;
}

.release-slider-inner {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.release-card {
    min-width: 280px;
    margin-right: 1.5rem;
}

.release-card img {
    border-radius: var(--radius);
    display: block;
    width: 100%;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* News/Blog section */
.blog-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    transition: transform 0.2s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-horizontal {
    display: flex;
    flex-direction: row-reverse; /* Bild rechts, Text links */
    align-items: center;
    gap: 1rem;
}

.blog-card-horizontal .blog-card-thumb {
    flex: 1 1 50%;
}

.blog-card-horizontal .blog-card-content {
    flex: 1 1 50%;
    padding: 0;
}

.blog-card-thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
}
.blog-card-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}
.blog-card-content p {
    margin: 0;
    font-size: 0.9rem;
}
.blog-card-content .btn {
    margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer-section h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a {
    display: block;
    padding: 0.25rem 0;
    color: var(--muted);
    transition: color 0.2s ease-in-out;
}
.footer-links a:hover {
    color: var(--accent);
}
.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.social-links a {
    color: var(--muted);
    font-size: 1.5rem;
    transition: color 0.2s ease-in-out;
}
.social-links a:hover {
    color: var(--accent);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding-top: 1rem;
    margin-top: 2rem;
    color: var(--muted);
}
.footer-bottom p {
    margin: 0;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text);
}
.newsletter-form button {
    padding: 0.75rem;
}

/* Products and search page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.search-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

/* Filter styles */
.filter-form {
    padding: 1rem;
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.filter-form h3 {
    margin: 0 0 1rem;
}
.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.filter-group .filter-label {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-group .filter-label i {
    transition: transform 0.2s ease-in-out;
}
.filter-group.open .filter-label i {
    transform: rotate(180deg);
}
.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.filter-group.open .filter-options {
    max-height: 500px;
}
.filter-option {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Mobile Filter-Button */
.filter-toggle-mobile {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.5rem;
}
.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}
.breadcrumbs a {
    color: var(--muted);
    font-size: 0.9rem;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    color: var(--text);
    font-size: 0.9rem;
}

/* Detail Page */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.product-image img {
    width: 100%;
    border-radius: var(--radius);
}
.product-info h1 {
    margin-top: 0;
    font-size: 2rem;
}
.product-price {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
}
.product-meta {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.product-meta p {
    margin: 0.5rem 0;
}
.product-buy {
    margin-top: 2rem;
}
.shop-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.shop-item-name {
    font-weight: 600;
}
.shop-item-price {
    font-weight: 700;
    color: var(--accent);
}
.btn-buy {
    background: var(--accent-2);
}
.btn-buy:hover {
    background: #218838;
}

/* Responsive */
@media (min-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    /* Desktop Header */
    .header-mobile-container {
        display: none;
    }
    .desktop-header-content {
        display: flex;
    }
    .hero {
        padding: 3rem;
    }
    .card-content h3 {
        font-size: 1.5rem;
    }
    .card-content p {
        font-size: 1rem;
    }
    .blog-cards {
        flex-direction: row;
        gap: 2rem;
    }
    .search-container {
        grid-template-columns: 250px 1fr;
    }
    .filter-form {
        margin-bottom: 0;
    }
    .filter-toggle-mobile {
        display: none;
    }
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-card-horizontal {
        flex-direction: row-reverse;
    }
    .blog-card-horizontal .blog-card-thumb {
        flex: 1 1 40%;
    }
    .blog-card-horizontal .blog-card-content {
        flex: 1 1 60%;
    }
}

@media (min-width: 1024px) {
    .header-top-desktop .nav-search {
        flex-grow: 1;
    }
}

/* Neue Styles für den Releases-Slider */
.releases-section {
    padding: 2rem 0;
}
.releases-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}
.releases-slider {
    display: flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    -webkit-animation: scroll-left 40s linear infinite;
}
.releases-slider:hover {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}
.releases-slider .card {
    min-width: 300px;
    margin-right: 1.5rem;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Styles für die "Top Artikel" Sektion */
.top-artikel-section {
    padding: 2rem 0;
}

/* Neue Styles für Blog-Artikel auf der Index-Seite */
.blog-card.horizontal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.blog-card.horizontal .blog-card-thumb {
    order: 2; /* Bild rechts */
    flex: 1;
}

.blog-card.horizontal .blog-card-content {
    order: 1; /* Text links */
    flex: 2;
    padding: 0;
}

@media (max-width: 767px) {
    .blog-card.horizontal {
        flex-direction: column;
    }
    .blog-card.horizontal .blog-card-thumb,
    .blog-card.horizontal .blog-card-content {
        order: initial;
    }
}
