/*
Theme Name:         Interieur & Meer – Child
Theme URI:          https://interieurmeer.de
Description:        Maßgeschneidertes Child-Theme für Interieur & Meer (Segelmacherei & Polsterei, Steinhude) auf Basis von Twenty Twenty-Four. Maritim-eleganter Markenauftritt mit eigenem Farbschema, Typografie und Block-Patterns.
Author:             Interieur & Meer
Author URI:         https://interieurmeer.de
Template:           twentytwentyfour
Version:            1.0.0
Requires at least:  6.4
Tested up to:       6.5
Requires PHP:       7.4
License:            GNU General Public License v2 or later
License URI:        http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        interieurmeer-child
Tags:               maritim, handwerk, business, one-page, block-theme, full-site-editing
*/

/* -------------------------------------------------------------
   Basis-Layer – ergänzt theme.json mit Detail-Styling,
   das sich nicht im globalen Style-Engine abbilden lässt.
   ------------------------------------------------------------- */

:root {
    --im-primary:    #1E3A5F;
    --im-secondary:  #4A90C2;
    --im-sand:       #E8D5A9;
    --im-rope:       #B08968;
    --im-light:      #F5F7FA;
    --im-text:       #1A1A1A;
    --im-muted:      #555555;
}

/* Smooth Scroll für Anker-Navigation */
html { scroll-behavior: smooth; }

/* Überschriften: maritim-klassische Serif */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Fließtext */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-feature-settings: "kern", "liga";
    color: var(--im-text);
}

/* Große Hero-Überschriften */
.im-hero h1 {
    font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.im-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.75), rgba(74, 144, 194, 0.55)),
                var(--im-primary);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.im-hero p { color: rgba(255, 255, 255, 0.92); }

/* Primärer Button */
.wp-block-button.is-style-im-primary .wp-block-button__link {
    background-color: var(--im-sand);
    color: var(--im-primary);
    border-radius: 4px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wp-block-button.is-style-im-primary .wp-block-button__link:hover {
    background-color: #d9c092;
    transform: translateY(-2px);
}

/* Sekundärer (Outline-) Button */
.wp-block-button.is-style-im-outline .wp-block-button__link {
    background: transparent;
    color: var(--im-primary);
    border: 2px solid var(--im-primary);
    border-radius: 4px;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

/* Leistungs-Karten */
.im-service-card {
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.im-service-card:hover {
    box-shadow: 0 18px 40px -20px rgba(30, 58, 95, 0.35);
    transform: translateY(-4px);
    border-color: var(--im-secondary);
}

.im-service-card h3 {
    color: var(--im-primary);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.im-service-card .im-icon {
    width: 48px;
    height: 48px;
    color: var(--im-secondary);
}

/* Section-Hintergründe */
.im-section-sand { background-color: var(--im-sand); }
.im-section-light { background-color: var(--im-light); }
.im-section-dark { background-color: var(--im-primary); color: #fff; }
.im-section-dark h2,
.im-section-dark h3 { color: #fff; }

/* Kontakt-Block */
.im-contact-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.im-contact-block .im-info-item {
    padding: 1.5rem;
    background: #fff;
    border-left: 4px solid var(--im-secondary);
    border-radius: 0 6px 6px 0;
}

.im-contact-block .im-info-item strong {
    display: block;
    color: var(--im-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

/* Header / Navigation */
.wp-block-site-title a {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--im-primary);
    text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
    font-weight: 500;
    font-size: 0.95rem;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--im-secondary);
}

/* Footer */
.im-footer {
    background: var(--im-primary);
    color: #cfd8e3;
    padding: 3.5rem 0 2rem;
}

.im-footer h4 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.im-footer a { color: #cfd8e3; text-decoration: none; }
.im-footer a:hover { color: var(--im-sand); }

.im-footer .im-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Öffnungszeiten-Tabelle */
.im-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.im-hours li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    white-space: nowrap;
}

.im-hours li:last-child { border-bottom: 0; }

.im-hours .im-day {
    font-weight: 500;
    flex-shrink: 0;
}

.im-hours li > span:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Fallback für sehr schmale Spalten: kleinere Schrift und kompaktere Darstellung */
@media (max-width: 420px) {
    .im-hours li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}

/* Responsive Feinschliff */
@media (max-width: 768px) {
    .im-hero { min-height: 55vh; }
    .im-service-card { padding: 2rem 1.5rem; }
}

/* Google-Bewertungen-Teaser im Footer */
.im-google-teaser {
    background: rgba(255, 255, 255, 0.04);
}

.im-google-teaser a:hover span {
    opacity: 0.85;
}

/* Fallback-Karten für Bewertungen (solange kein Plugin aktiv) */
.im-reviews-fallback {
    display: block;
}

.im-reviews-fallback .wp-block-column {
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.im-reviews-fallback .wp-block-column:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(30, 58, 95, 0.2);
}

/* Wenn Plugin aktiv ist, Fallback-Karten ausblenden (optional via Body-Class) */
.has-google-reviews-active .im-reviews-fallback {
    display: none;
}

/* Accessibility – Fokus-Stile */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 3px solid var(--im-secondary);
    outline-offset: 3px;
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .im-service-card,
    .wp-block-button.is-style-im-primary .wp-block-button__link {
        transition: none;
    }
}
