/**
 * CUSTOM STYLES - Fotostudio Anna Wawra
 * =====================================
 * Alle projektspezifischen Styles ohne Inline-CSS
 */

/* ============================================
   Portfolio-Masonry: gleichhohe Bilder ohne Luecken
   (sitewide, verwendet auf portfolio-* Hubs)
   ============================================ */
.edgtf-pl-masonry .edgtf-pl-item { height: auto !important; }
.edgtf-pl-masonry .edgtf-pli-image { aspect-ratio: 3/4; overflow: hidden; }
.edgtf-pl-masonry .edgtf-pli-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* ============================================
   STARTSEITE - Abstände zwischen Sections
   ============================================ */

.empty-space-45 {
    height: 150px !important;
}

.empty-space-40 {
    height: 120px !important;
}

/* Text-Spalte: Spacer muss den Section-Label (wpb_singleimage_heading)
   überspringen, damit h2 bündig mit Bildkante startet (~55px Labelgröße) */
.vc_col-sm-2.vc_column_container .empty-space-32 {
    height: 58px !important;
}

@media (max-width: 768px) {
    .empty-space-45 {
        height: 70px !important;
    }
    .empty-space-40 {
        height: 55px !important;
    }
    .vc_col-sm-2.vc_column_container .empty-space-32 {
        height: 32px !important;
    }
}

/* ============================================
   SERVICE SECTIONS - Spaltenproportionen Fix
   10/12 Bild + 2/12 Text = zu schmal für h2
   Neu: 70% Bild + 30% Text
   ============================================ */

@media (min-width: 768px) {
    .vc_col-sm-10.vc_column_container {
        width: 70% !important;
    }
    .vc_col-sm-2.vc_column_container {
        width: 30% !important;
    }
}

.wpb_column.vc_col-sm-2 .wpb_text_column h2,
.wpb_column.vc_col-sm-2 .wpb_text_column h2 a {
    overflow-wrap: break-word;
    overflow: visible;
}

/* ============================================
   SILBENTRENNUNG GLOBAL DEAKTIVIEREN
   ============================================ */

* {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* ============================================
   STICKY CTA BUTTON - Mobile Only
   ============================================ */

.sticky-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 99999;
    border-top: 1px solid #eee;
}

.sticky-cta-bar .cta-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.sticky-cta-bar .cta-btn {
    flex: 1;
    padding: 14px 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.3s;
    border: none;
}

.sticky-cta-bar .cta-btn-primary {
    background: rgb(33, 33, 33);
    color: white;
}

.sticky-cta-bar .cta-btn-primary:hover {
    opacity: 0.85;
}

.sticky-cta-bar .cta-btn-secondary {
    background: transparent;
    color: rgb(33, 33, 33);
    border: 2px solid rgb(33, 33, 33);
}

.sticky-cta-bar .cta-btn-secondary:hover {
    background: rgb(33, 33, 33);
    color: white;
}

/* Show only on mobile – strikt unten fixiert (Kundenwunsch 18.09.: nie in der Bildschirmmitte) */
@media (max-width: 768px) {
    .sticky-cta-bar {
        display: block;
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        z-index: 99999;
    }

    body {
        padding-bottom: 70px;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .sticky-cta-bar {
        display: none !important;
    }
}

/* ============================================
   FOOTER MOBILE OPTIMIERUNGEN
   ============================================ */

.edgtf-footer-top-holder .site-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edgtf-footer-top-holder .site-block-button__link .fa {
    margin-right: .4em;
}

@media (min-width: 769px) {
    .edgtf-footer-top-holder .edgtf-columns-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content {
        display: flex;
        align-items: center;
    }
    
    .edgtf-footer-top-holder .widget,
    .edgtf-footer-top-holder p,
    .edgtf-footer-top-holder .site-block-buttons,
    .edgtf-footer-top-holder .site-block-columns {
        margin: 0;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content1,
    .edgtf-footer-top-holder .edgtf-column-content2,
    .edgtf-footer-top-holder .edgtf-column-content3 {
        flex: 0 0 auto;
        max-width: none;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content1,
    .edgtf-footer-top-holder .edgtf-column-content2 {
        min-height: 56px;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content4 {
        display: none;
    }
    
    .edgtf-footer-top-holder #block-31 {
        display: none;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content1 .site-block-buttons,
    .edgtf-footer-top-holder .edgtf-column-content2 .site-block-buttons {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: .6rem;
        justify-content: flex-start;
        align-items: center;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content2 .site-block-columns,
    .edgtf-footer-top-holder .edgtf-column-content2 .site-block-column {
        display: flex;
        align-items: center;
    }
    
    .edgtf-footer-top-holder .edgtf-column-content1 .site-block-button,
    .edgtf-footer-top-holder .edgtf-column-content2 .site-block-button {
        display: inline-flex;
        width: 260px;
    }
    
    .edgtf-footer-top-holder .site-block-button__link {
        width: 100%;
        padding: .5em 1.2em;
        font-size: .9rem;
        line-height: 1.2;
        min-height: 52px;
        white-space: nowrap;
    }
    
    .edgtf-footer-top-holder .footer-address-links {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .edgtf-footer-top-holder .edgtf-column-content4,
    .edgtf-footer-top-holder #block-31 {
        display: none;
    }
}

/* ============================================
   WP STATS HIDING
   ============================================ */

img#wpstats {
    display: none;
}

/* ============================================
   GOOGLE SITE KIT
   ============================================ */

.googlesitekit-sign-in-with-google__frontend-output-button {
    max-width: 320px;
}

/* ============================================
   NAV CTA BUTTON - Desktop "Termin buchen"
   ============================================ */

@media (min-width: 769px) {
    li.nav-cta-button {
        display: flex !important;
        align-items: center !important;
        align-self: center !important;
    }

    li.nav-cta-button > a,
    li.nav-cta-button > a:link,
    li.nav-cta-button > a:visited {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        height: auto !important;
        min-height: 0 !important;
        width: fit-content !important;
        background-color: #212121 !important;
        color: #fff !important;
        /* Nav-exakte Typografie — font-size & letter-spacing vom Theme übernehmen */
        font-size: inherit !important;
        letter-spacing: inherit !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        /* Eng am Text — kein aufgeblähter Block */
        padding: 7px 13px !important;
        border-radius: 0 !important;
        transition: background-color 0.2s ease;
        margin-left: 12px;
        touch-action: manipulation;
    }

    li.nav-cta-button > a:hover {
        background-color: #3a3a3a !important;
        color: #fff !important;
    }

    li.nav-cta-button > a:focus-visible {
        outline: 2px solid #212121 !important;
        outline-offset: 3px !important;
    }

    li.nav-cta-button > a .edgtf-item-text,
    li.nav-cta-button > a:hover .edgtf-item-text {
        color: #fff !important;
        line-height: 1 !important;
    }

    li.nav-cta-button > a .edgtf-item-outer,
    li.nav-cta-button > a .edgtf-item-inner {
        display: contents !important;
    }

    li.nav-cta-button > a .plus {
        display: none !important;
    }
}

/* ============================================
   REVIEWS FLOATING WIDGET - unten links
   ============================================ */

.reviews-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9998;
    max-width: 320px;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .reviews-float,
    .reviews-float + *,
    [class*="elfsight-app-"],
    [class^="eapps-"] { display: none !important; }
}

/* ============================================
   WPB ANIMATE NO-SCRIPT FALLBACK
   ============================================ */

/* Startzustand: unsichtbar – Animation blendet ein (verhindert Flash-Effekt).
   No-JS-Fallback (opacity: 1) ist korrekt in inline-styles-cleanup.css gesetzt. */
.wpb_animate_when_almost_visible {
    opacity: 0;
}

/* ============================================
   REVIEWS SECTION - Kundenstimmen Startseite
   ============================================ */

.reviews-section {
    background: transparent;
    padding: 80px 40px;
    margin: 0;
}

.reviews-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 14px;
}

.reviews-header-left h2 {
    color: #212121 !important;
    font-size: 1.9rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.reviews-header-left p {
    color: #555;
    font-size: 0.9rem;
    max-width: 460px;
    line-height: 1.7;
    margin: 0;
}

.reviews-rating-box {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 22px 28px;
    min-width: 210px;
    flex-shrink: 0;
}

.reviews-rating-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.reviews-rating-stars {
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 2px;
}

.reviews-rating-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #212121;
    line-height: 1;
}

.reviews-rating-subline {
    font-size: 0.78rem;
    color: #666;
    margin: 0;
}

.reviews-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #e0e0e0;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
    font-family: inherit;
}

.review-name {
    font-weight: 600;
    color: #212121;
    font-size: 0.92rem;
    line-height: 1.2;
}

.review-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.review-stars {
    color: #f5a623;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.review-text {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.65;
    flex: 1;
}

.review-badge {
    font-size: 0.7rem;
    color: #aaa;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}

@media (max-width: 767px) {
    .reviews-section {
        padding: 56px 0;
    }

    .reviews-section-inner {
        padding: 0 20px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 20px;
    }

    .reviews-header-left h2 {
        font-size: 1.5rem;
    }

    .reviews-track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        padding-right: 20px;
        grid-template-columns: none;
    }

    .reviews-track::-webkit-scrollbar {
        display: none;
    }

    /* Eine Karte = eine Viewport-Breite, damit der Text nie abgeschnitten ist */
    .review-card {
        flex: 0 0 auto;
        width: calc(100vw - 56px);
        min-width: 0;
        max-width: 360px;
        scroll-snap-align: center;
        padding: 20px;
    }

    .review-text {
        font-size: 0.88rem;
        line-height: 1.6;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ============================================
   PAGE END CTA - Zweiter CTA am Seitenende
   ============================================ */

.page-end-cta {
    background: #212121;
    padding: 70px 40px;
    text-align: center;
}

.page-end-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.page-end-cta-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
}

.page-end-cta h2 {
    color: #fff !important;
    font-size: 1.9rem;
    margin-bottom: 14px;
    line-height: 1.2;
}

.page-end-cta-sub {
    color: #888;
    font-size: 0.92rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.page-end-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.page-end-cta-btn-primary,
.page-end-cta-btn-secondary {
    flex: 0 0 240px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.page-end-cta-btn-primary {
    background: #fff;
    color: #212121 !important;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
    display: inline-block;
}

.page-end-cta-btn-primary:hover {
    opacity: 0.85;
}

.page-end-cta-btn-secondary {
    border: 1px solid #555;
    color: #fff !important;
    padding: 14px 30px;
    font-size: 0.9rem;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: border-color 0.2s;
    display: inline-block;
}

.page-end-cta-btn-secondary:hover {
    border-color: #999;
}

.page-end-cta-studio {
    margin-top: 32px;
    text-align: center;
    color: #bbb;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
}

.page-end-cta-studio p {
    margin: 0;
}

.page-end-cta-studio-brand {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.page-end-cta-studio-links {
    margin-top: 6px !important;
    letter-spacing: 0.08em;
}

.page-end-cta-studio-links a {
    color: #bbb !important;
    text-decoration: none !important;
}

.page-end-cta-studio-links a:hover {
    color: #fff !important;
}

/* Sitewide Utility: Desktop-/Mobile-Only Text-Inlines */
.cta-desktop-only { display: inline; }
.cta-mobile-only  { display: none; }

/* Tablet: Inner-Container fuellt mehr Breite, Buttons schrumpfen */
@media (max-width: 899px) {
    .page-end-cta {
        padding: 60px 28px;
    }

    .page-end-cta-inner {
        max-width: 100%;
    }

    .page-end-cta-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-end-cta-btn-primary,
    .page-end-cta-btn-secondary {
        flex: 1 1 200px;
        max-width: 260px;
        padding: 13px 20px;
        font-size: 0.85rem;
    }
}

/* Mobil: 3 Inline-Buttons ausblenden (Sticky-Bar uebernimmt), Texte umbrechen */
@media (max-width: 767px) {
    .cta-desktop-only { display: none; }
    .cta-mobile-only  { display: inline; }

    .page-end-cta {
        padding: 50px 20px;
    }

    .page-end-cta h2 {
        font-size: 1.45rem;
    }

    .page-end-cta-sub {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    /* Die 3 Inline-CTAs sind auf Mobil redundant zur Sticky-Bar */
    .page-end-cta-buttons {
        display: none !important;
    }

    .page-end-cta-studio {
        margin-top: 28px;
        font-size: 0.75rem;
        line-height: 1.8;
    }

    .page-end-cta-studio-brand {
        letter-spacing: 0.04em;
        font-size: 0.78rem;
    }

    .page-end-cta-studio-links {
        letter-spacing: 0.05em;
    }
}

/* ============================================
   SERVICE PRICE HINTS - "ab X €" Startseite
   ============================================ */

.service-price-hint {
    font-size: 0.82rem;
    color: #888;
    margin-top: 12px;
    line-height: 1.4;
}

.service-price-hint a {
    color: #212121;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.service-price-hint a:hover {
    border-color: #212121;
}

/* ============================================
   BLOG - Bildergalerie-Grid im Artikel
   Weitere Blog-Bilder (neben Titelbild) als responsives Grid
   ============================================ */

.edgtf-blog-image-grid {
    display: grid;
    gap: 12px;
    margin: 30px 0;
}

.edgtf-blog-image-grid figure {
    margin: 0;
}

.edgtf-blog-image-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.edgtf-blog-image-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.edgtf-blog-image-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.edgtf-blog-image-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .edgtf-blog-image-grid-cols-3,
    .edgtf-blog-image-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .edgtf-blog-image-grid-cols-2,
    .edgtf-blog-image-grid-cols-3,
    .edgtf-blog-image-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG-ÜBERSICHT - Einheitliche Thumbnail-Breite/Höhe
   Nur in der Blog-Liste (edgtf-blog-standard), NICHT im Single-View.
   Orientierung an 2:3 Hochformat (wie Titelbilder der neuesten Blogs).
   ============================================ */

.edgtf-blog-holder.edgtf-blog-standard .edgtf-post-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.edgtf-blog-holder.edgtf-blog-standard .edgtf-post-image img,
.edgtf-blog-holder.edgtf-blog-standard .edgtf-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.edgtf-blog-holder.edgtf-blog-standard .edgtf-post-image img {
    object-fit: cover;
    object-position: center;
}

/* ============================================
   BLOG SINGLE HERO - Kein Upscaling jenseits der Bild-Pixelbreite
   ============================================ */

.edgtf-blog-holder.edgtf-blog-single .edgtf-post-image {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.edgtf-blog-holder.edgtf-blog-single .edgtf-post-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ============================================
   RELATED POSTS - Thematisch passende Blogs aus derselben Kategorie
   Grid: Spaltenanzahl = Anzahl Karten (max. 4); Karten 900 px breit,
   native Aspect-Ratio, zentriert. Responsive: 2 Spalten < 768 px, 1 Spalte < 480 px.
   ============================================ */

.edgtf-related-posts-holder .edgtf-related-posts-inner {
    display: grid;
    gap: 24px;
    justify-content: center;
    align-items: start;
}

/* Neutralise clearfix pseudo-elements that would otherwise become grid items. */
.edgtf-related-posts-holder .edgtf-related-posts-inner::before,
.edgtf-related-posts-holder .edgtf-related-posts-inner::after {
    content: none;
    display: none;
}

.edgtf-related-posts-holder .edgtf-related-posts-inner--cols-1 { grid-template-columns: minmax(0, 280px); }
.edgtf-related-posts-holder .edgtf-related-posts-inner--cols-2 { grid-template-columns: repeat(2, minmax(0, 280px)); }
.edgtf-related-posts-holder .edgtf-related-posts-inner--cols-3 { grid-template-columns: repeat(3, minmax(0, 280px)); }
.edgtf-related-posts-holder .edgtf-related-posts-inner--cols-4 { grid-template-columns: repeat(4, minmax(0, 280px)); }

/* Reset theme's float/width on the card itself (theme sets 23% + float:left). */
.edgtf-related-posts-holder .edgtf-related-posts-inner .edgtf-related-post {
    width: auto;
    max-width: none;
    margin: 0;
    float: none;
    display: block;
}

.edgtf-related-posts-holder .edgtf-related-post-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.edgtf-related-posts-holder .edgtf-related-post-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.edgtf-related-posts-holder .edgtf-related-post-image a,
.edgtf-related-posts-holder .edgtf-related-post-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.edgtf-related-posts-holder .edgtf-related-post-image img {
    object-fit: cover;
    object-position: center top;
}

.edgtf-related-posts-holder .edgtf-related-post-title {
    margin: 0;
    padding: 0 4px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none;
}

.edgtf-related-posts-holder .edgtf-related-post-title a {
    font-size: 14px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .edgtf-related-posts-holder .edgtf-related-posts-inner--cols-3,
    .edgtf-related-posts-holder .edgtf-related-posts-inner--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 280px));
    }
}

@media (max-width: 480px) {
    .edgtf-related-posts-holder .edgtf-related-posts-inner--cols-2,
    .edgtf-related-posts-holder .edgtf-related-posts-inner--cols-3,
    .edgtf-related-posts-holder .edgtf-related-posts-inner--cols-4 {
        grid-template-columns: minmax(0, 280px);
    }
}

/* ============================================
   CTA-Textblock am Seiten-/Artikelende zentrieren
   ("Jetzt Termin online buchen", optional "→ Quicklinks",
   "Ich freue mich auf dich!") — sitewide, egal ob in
   .edgtf-blog-single-cta Wrapper oder frei im Content.
   ============================================ */
.edgtf-blog-single-cta { text-align: center; }
.edgtf-blog-single-cta p { text-align: center; }

p.edgtf-cta-block,
p.edgtf-cta-block + p,
p.edgtf-cta-block + p + p { text-align: center; }

/* ============================================
   Blog-Post-Meta: "Uncategorized"-Kategorie verstecken
   (leere WP-Default-Kategorie, ergibt inhaltlich keinen Mehrwert)
   ============================================ */
.edgtf-post-info-category { display: none; }
