/* Safari soll Texte nicht eigenmaechtig aufblasen (manueller Nutzer-Zoom bleibt unberuehrt) */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* KapiYapi Shop - Frontend CSS */

:root {
    --bg: #fafaf9;
    --bg-alt: #f3f2ef;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #a0998f;
    --accent: #64748b;
    --accent-hover: #475569;
    --border: #e8e5df;
    --border-light: #f0ede8;
    --radius: 8px;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --transition: 0.2s ease;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === PREVIEW BAR === */
.preview-bar {
    background: #1e2235;
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}
.preview-bar a {
    color: #fbbf24;
    margin-left: 1rem;
    font-weight: 500;
    text-decoration: underline;
}

/* === HEADER === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text);
}
.header-nav {
    display: flex;
    gap: 2rem;
}
.header-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color var(--transition);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}
.header-nav a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.lang-switcher a {
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all var(--transition);
}
.lang-switcher a:hover {
    color: var(--text);
    background: var(--bg-alt);
}
.lang-active {
    color: var(--text);
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    background: var(--bg-alt);
    border-radius: 4px;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #1e2235 0%, #2d3148 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* === SECTIONS === */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.05em;
}
.section-divider {
    width: 50px;
    height: 1px;
    background: var(--border);
    margin: 1.5rem auto 3rem;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* === MODEL GRID === */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.model-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}
.model-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.model-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-alt);
}
.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.model-card:hover .model-image img { transform: scale(1.03); }
.model-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}
.model-info {
    padding: 1.5rem;
}
.model-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.model-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.model-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* === USP === */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}
.usp-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.usp h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.usp p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === DOOR DETAIL === */
.door-detail { padding: 3rem 2rem; }
.door-detail-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Gallery */
.door-gallery { position: sticky; top: 90px; }
.gallery-main {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-alt);
    margin-bottom: 1rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
}
.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.gallery-thumbs img:hover { border-color: var(--accent); }
.gallery-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

/* Config */
.door-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.door-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.door-base-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.price-label { font-size: 0.85rem; color: var(--text-secondary); }
.price-value { font-size: 1.25rem; font-weight: 600; }

/* Config Groups */
.config-group {
    margin-bottom: 1.75rem;
}
.config-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.config-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.option-item:hover { border-color: var(--accent); }
.option-item.selected { border-color: var(--text); background: var(--bg-alt); }
.option-item input[type="radio"] { display: none; }
.option-name { flex: 1; font-size: 0.9rem; }
.option-surcharge { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* Color Options */
.config-colors {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.color-option {
    cursor: pointer;
}
.color-option input[type="radio"] { display: none; }
.color-swatch {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all var(--transition);
}
.color-option input:checked + .color-swatch {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--text);
}

/* Total */
.config-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 2px solid var(--text);
    margin-top: 2rem;
}
.total-label {
    font-size: 1rem;
    font-weight: 500;
}
.total-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* === FOOTER === */
.site-footer {
    background: #1e2235;
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 0.2em;
}
.footer-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hero-title { font-size: 2rem; }
    .hero { padding: 4rem 1.5rem; }
    .door-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
    .door-gallery { position: static; }
    .models-grid { grid-template-columns: 1fr; }
}
