/* --------------------------------
   IMAGE GRID ROWS – exactly 3 per row
-------------------------------- */

.fr-image-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 40px auto !important;
    max-width: 1180px !important;
}

.fr-image-row > figure {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px !important;
    margin: 0;
}

.fr-image-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet – 2 per row */
@media (max-width: 900px) {
    .fr-image-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile – 1 per row */
@media (max-width: 600px) {
    .fr-image-row {
        grid-template-columns: 1fr !important;
    }
}


/* --------------------------------
   Pricing Section – spacing
-------------------------------- */

.fr-pricing-section {
    max-width: 1180px;
    margin: 50px auto 70px;
}

.fr-pricing-section h2 {
    margin-bottom: 12px;
}

.fr-pricing-intro {
    margin-bottom: 28px;
    color: #333;
    font-size: 1.02rem;
}


/* --------------------------------
   Pricing Cards – equal height
-------------------------------- */

.fr-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.fr-card {
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
}

.fr-card h3 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    font-size: 1.14rem;
    font-weight: 600;
    color: #222;
}

.fr-card-desc {
    margin: 2px 0 10px;
    font-size: 0.93rem;
    color: #555;
    line-height: 1.35;
}

.fr-price {
    font-size: 1.2rem;
    font-weight: 400;
    color: #111;
    margin: 18px 0 20px;
    padding: 16px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.fr-card-btn {
    margin-top: 20px !important;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    background: #222;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    transition: background 0.25s ease;
}

.fr-card-btn:hover {
    background: #333;
}


/* --------------------------------
   Included / Optional – 2 columns
-------------------------------- */

.fr-include-optional {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 40px;
}

.fr-include-optional h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.fr-include-optional p {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #333;
}


/* --------------------------------
   Responsive Pricing
-------------------------------- */

@media (max-width: 900px) {

    .fr-pricing-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .fr-card {
        padding: 22px 18px;
    }

    .fr-include-optional {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* --------------------------------
  Contact button
-------------------------------- */

.fr-contact-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    background: #222;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    transition: background 0.25s ease;
}

.fr-contact-btn:hover {
    background: #333;
}


/* --------------------------------
   Stil-Section – 2 Spalten (no divider)
-------------------------------- */

#portrait-stil {
    max-width: 1180px;
    margin: 50px auto 0;
}

#portrait-stil p {
    color: #333;
}

.fr-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 32px 0 40px;
    align-items: flex-start;
}

.fr-style-divider {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.fr-style-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fr-style-item h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #222;
}

.fr-style-item p {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.45;
    color: #333;
}

@media (max-width: 900px) {

    .fr-style-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fr-style-col {
        gap: 24px;
    }
}


/* --------------------------------
   Content width normalization
-------------------------------- */

.entry-content > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}


/* --------------------------------
   Remove last margin from "Im Preis enthalten"
-------------------------------- */

#preise p:last-of-type {
    margin-bottom: 0 !important;
}


/* --------------------------------
   Fix: Buttons must NOT inherit global link styles
-------------------------------- */

.fr-card-btn,
.fr-card-btn:link,
.fr-card-btn:visited,
.fr-contact-btn,
.fr-contact-btn:link,
.fr-contact-btn:visited {
    text-decoration: none !important;
    color: #fff !important;
}

.fr-card-btn:hover,
.fr-contact-btn:hover {
    text-decoration: none !important;
    color: #fff !important;
    background: #333 !important;
}
