/**
 * Schwanenschutz OÖ — Custom CSS
 * Alle Design-Werte direkt von web.schwanenschutz.org extrahiert
 */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    --color-dark:     #2A4065;
    --color-dark-alt: #0F1015;
    --color-gold:     #C4972A;
    --color-coral:    #E88484;
    --color-white:    #FFFFFF;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Open Sans', system-ui, sans-serif;

    --section-padding-v: clamp(4rem, 8vw, 8rem);
    --section-padding-h: clamp(1.5rem, 5vw, 6rem);
    --max-width: 1200px;
}


/* =====================================================
   GLOBAL RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark-alt);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}


/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    font-weight: 700;
}

h1, .wp-block-heading[class*="h1"] { font-weight: 900; }
h2 { font-weight: 700; }
h3 { font-weight: 600; letter-spacing: 0.08em; }

p {
    font-family: var(--font-body);
    line-height: 1.75;
}

strong, b {
    font-weight: 700;
}


/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    background-color: var(--color-dark) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.site-header .wp-block-navigation a {
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: opacity 0.2s;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a[aria-current="page"] {
    opacity: 0.7;
}

.site-header .wp-block-site-title a {
    color: #fff !important;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Nav */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    color: #fff !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--color-dark) !important;
}


/* =====================================================
   SECTIONS
   ===================================================== */
.section-dark {
    background-color: var(--color-dark) !important;
    color: #fff;
}

.section-dark p,
.section-dark li {
    color: rgba(255,255,255,0.9);
}

.section-dark a {
    color: var(--color-gold);
}

.section-light {
    background-color: #fff !important;
    color: var(--color-dark-alt);
}

.section-black {
    background-color: var(--color-dark-alt) !important;
    color: #fff;
}


/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
}

.hero .wp-block-cover__inner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--section-padding-h);
}

.hero h1 {
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Notfall-Banner in Hero (Spenden-Seite) */
.notfall-banner-top {
    position: absolute;
    top: 2rem;
    right: var(--section-padding-h);
    color: var(--color-coral) !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.notfall-banner-top a {
    color: var(--color-coral) !important;
}


/* =====================================================
   BUTTONS — OUTLINE STYLE (1:1 wie Original)
   ===================================================== */
.wp-block-button__link,
.wp-element-button {
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 0.85rem !important;
    padding: 0.8em 1.8em !important;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none !important;
}

/* Outline Weiß — auf dunklem Hintergrund */
.is-style-outline-white .wp-block-button__link,
.btn-outline-white .wp-block-button__link {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.is-style-outline-white .wp-block-button__link:hover,
.btn-outline-white .wp-block-button__link:hover {
    background: rgba(255,255,255,0.1) !important;
}

/* Outline Gold — auf dunklem oder hellem Hintergrund */
.is-style-outline-gold .wp-block-button__link,
.btn-outline-gold .wp-block-button__link {
    background: transparent !important;
    color: var(--color-gold) !important;
    border: 2px solid var(--color-gold) !important;
}

.is-style-outline-gold .wp-block-button__link:hover,
.btn-outline-gold .wp-block-button__link:hover {
    background: rgba(196,151,42,0.1) !important;
}

/* WordPress Standard-Outline-Stil überschreiben */
.wp-block-button.is-style-outline .wp-block-button__link {
    border-radius: 0 !important;
    border-width: 2px !important;
}


/* =====================================================
   BILDER — HALBKREIS & VOLLKREIS
   ===================================================== */

/* Halbkreis: oben gerade, unten rund */
.half-circle-image,
.wp-block-image.half-circle img,
figure.half-circle img {
    border-radius: 0 0 50% 50% !important;
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.half-circle-wrap {
    overflow: hidden;
    border-radius: 0 0 50% 50%;
    aspect-ratio: 1 / 1;
}

.half-circle-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vollkreis: für Galerie */
.full-circle-image,
.gallery-circle img,
.wp-block-image.full-circle img {
    border-radius: 50% !important;
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.full-circle-wrap {
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.full-circle-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bild rechts abgeschnitten (wie Sektion 2 auf der Startseite) */
.image-clip-right {
    overflow: hidden;
    border-radius: 0 0 0 50%;
}

.image-clip-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =====================================================
   3-SPALTEN KARTEN-GRID
   ===================================================== */
.cards-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.card-with-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-with-image .card-image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.card-with-image .card-image img {
    border-radius: 0 0 50% 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.card-with-image .card-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    margin: 0 0 0.75rem;
}

.card-with-image .card-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}


/* =====================================================
   GALERIE — VOLLKREIS 3-SPALTIG
   ===================================================== */
.gallery-circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-circles figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.gallery-circles figure img {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.gallery-circles figcaption {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    line-height: 1.5;
}

/* WordPress Gallery Block — Vollkreis */
.wp-block-gallery.gallery-circle .wp-block-image img {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}


/* =====================================================
   2-SPALTEN LAYOUT (Text + Bild)
   ===================================================== */
.two-col-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.two-col-text-image.image-left {
    direction: rtl;
}

.two-col-text-image.image-left > * {
    direction: ltr;
}


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: var(--color-dark) !important;
}

.site-footer p {
    color: rgba(255,255,255,0.8);
}

.site-footer a {
    color: var(--color-gold);
}


/* =====================================================
   SPEZIFISCHE SEKTIONEN
   ===================================================== */

/* Zitat-Kasten (Schwan in Not Seite) */
.quote-box {
    border-left: 4px solid var(--color-coral);
    padding-left: 1.5rem;
}

.quote-box h3 {
    color: var(--color-coral) !important;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
}

/* Notfall-Kontakt-Block */
.notfall-block {
    border-left: 4px solid var(--color-coral);
    padding: 2rem;
    background: rgba(232, 132, 132, 0.08);
}

.notfall-block a[href^="tel"] {
    color: var(--color-coral) !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-top: 0.5rem;
}

/* IBAN / Bankdaten */
.bank-details {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 2;
}

.bank-details strong {
    color: var(--color-gold);
    display: inline-block;
    min-width: 130px;
}


/* =====================================================
   GOLD HEADING (auf dunklem BG)
   ===================================================== */
.has-gold-color { color: var(--color-gold) !important; }
.has-coral-color { color: var(--color-coral) !important; }
.has-dark-background-color { background-color: var(--color-dark) !important; }
.has-dark-alt-background-color { background-color: var(--color-dark-alt) !important; }


/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .cards-3col {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-circles {
        grid-template-columns: 1fr 1fr;
    }

    .two-col-text-image {
        grid-template-columns: 1fr;
    }

    .two-col-text-image.image-left {
        direction: ltr;
    }
}

@media (max-width: 600px) {
    .cards-3col {
        grid-template-columns: 1fr;
    }

    .gallery-circles {
        grid-template-columns: 1fr 1fr;
    }

    .hero .wp-block-cover__inner-container {
        padding: 0 1.5rem;
    }
}


/* =====================================================
   WORDPRESS BLOCK OVERRIDES
   ===================================================== */

/* Kein border-radius auf Buttons */
.wp-block-button__link {
    border-radius: 0 !important;
}

/* Cover-Block Bilder */
.wp-block-cover {
    background-attachment: scroll;
}

/* Columns kein gap auf Mobile */
@media (max-width: 600px) {
    .wp-block-columns {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Separator */
.wp-block-separator {
    border-color: rgba(255,255,255,0.2);
    opacity: 1;
}

/* Wide align korrigieren */
.wp-block-group.alignfull {
    width: 100%;
    max-width: none;
}

/* Editor-Ansicht: Goldene Überschriften */
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
