/* ==========================================================================
   Grömitz Yachten – Maritime Segelboot-Verkaufswebsite
   Farbschema: Dunkelblau, Weiß, Gold-Akzent
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f1d36;
    --navy-light: #1a2d4f;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --gold: #c9a84c;
    --gold-light: #ddc06a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 29, 54, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-highlight {
    color: var(--gold);
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: var(--gray-300);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background:
        url('https://images.unsplash.com/photo-1540946485063-a40da27545f8?w=1600&q=80')
        center / cover no-repeat;
    margin-top: 72px; /* Push below fixed header */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 29, 54, 0.85) 0%,
        rgba(15, 29, 54, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--gray-300);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ---------- Sections ---------- */
.boats-section,
.related-section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* ---------- Boats Grid ---------- */
.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* ---------- Boat Card Wrapper ---------- */
.boat-card-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.boat-card-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.boat-card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* ---------- Carousel / Slider ---------- */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background: var(--navy);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.carousel-slide img {
    display: block;
    width: 100%;
    object-fit: contain;
}

/* Karten-Karussell: festes Seitenverhältnis */
.boat-card-image .carousel-slide img {
    aspect-ratio: 16 / 10;
}

/* Detail-Karussell: größeres Seitenverhältnis */
.carousel-detail .carousel-slide img {
    aspect-ratio: 4 / 3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--navy);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel:hover .carousel-btn,
.carousel-detail .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.carousel-detail .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    opacity: 1;
}

.carousel-detail .carousel-btn-prev {
    left: 16px;
}

.carousel-detail .carousel-btn-next {
    right: 16px;
}

.carousel-detail .carousel-dots {
    bottom: 16px;
}

.carousel-detail .carousel-dot {
    width: 10px;
    height: 10px;
}

/* ---------- Boat Card ---------- */
.boat-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.boat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.boat-card-image {
    position: relative;
    overflow: hidden;
}

.boat-card-image img {
    display: block;
    width: 100%;
    object-fit: contain;
}

.boat-card-wrapper:hover .carousel-slide,
.boat-card:hover .carousel-slide {
    transform: scale(1.05);
}

.boat-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boat-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.boat-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.boat-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}

.boat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.boat-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
}

.boat-card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    transition: color var(--transition);
}

.boat-card:hover .boat-card-cta {
    color: var(--gold);
}

/* ---------- Detail Page ---------- */
.detail-hero {
    padding-top: 96px;
    padding-bottom: 16px;
    background: var(--navy);
}

.back-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--gold-light);
}

.detail-section {
    padding: 40px 0 80px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.detail-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--navy);
}

.detail-image img {
    display: block;
    width: 100%;
    object-fit: contain;
}

.detail-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--navy);
    margin-bottom: 8px;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 32px;
}

.detail-specs h2,
.detail-description h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.95rem;
}

.specs-table th {
    color: var(--gray-500);
    font-weight: 600;
    width: 40%;
    background: var(--gray-50);
}

.specs-table td {
    color: var(--gray-700);
    font-weight: 500;
}

.detail-description {
    margin-bottom: 32px;
}

.detail-description p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

.detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Error Page ---------- */
.error-section {
    padding-top: 160px;
    padding-bottom: 100px;
    text-align: center;
}

.error-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.error-section p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ---------- Related Section ---------- */
.related-section {
    background: var(--gray-100);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: var(--gray-300);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--gray-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.footer-admin-link {
    color: var(--gray-500);
    transition: color var(--transition);
}

.footer-admin-link:hover {
    color: var(--gold);
}

.footer-link {
    color: var(--gray-300);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--gold);
}

/* ---------- Legal Pages ---------- */
.legal-section {
    padding: 120px 0 80px;
}

.legal-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 12px 0;
    }

    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .hero {
        height: 70vh;
        min-height: 400px;
        margin-top: 90px; /* Taller margin on mobile for stacked header */
    }

    .hero-content {
        padding-top: 20px;
    }

    .boats-section,
    .related-section {
        padding: 56px 0;
    }

    .boats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .container { padding: 0 1rem; }
    .hero h1 { font-size: 2.5rem; }
    .detail-grid, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Header Navigation */
.public-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.public-nav .nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.public-nav .nav-link:hover {
    color: var(--gold);
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        height: auto;
        padding: 12px 0;
    }
}

