/*
Theme Name: Sportstudio
Theme URI: https://www.sportstudio-lichterfelde.de
Description: Ein leichtgewichtiges Block-Theme für das Sportstudio Lichterfelde.
Author: Junie
Version: 1.0.0
*/

/* Header Styles */
header.wp-block-group {
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 10px 20px;
}

.wp-block-navigation {
    width: 100%;
}

.wp-block-navigation__container {
    justify-content: flex-end;
}

.wp-block-navigation .wp-block-navigation-item a {
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: #666;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
    color: #2ea3f2;
}

/* Section Padding (Divi style) */
.et_pb_section {
    padding: 50px 0;
    position: relative;
    width: 100%;
}

.et_pb_row {
    max-width: 1080px;
    margin: 0 auto;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.et_pb_column {
    flex: 1;
    min-width: 250px;
}

.et_pb_text {
    margin-bottom: 30px;
}

.et_pb_image {
    margin-bottom: 30px;
    text-align: center;
}

.et_pb_image img {
    max-width: 100%;
    height: auto;
}

.et_pb_button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #2ea3f2;
    color: #2ea3f2;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 20px;
}

.et_pb_heading {
    margin-bottom: 20px;
}

/* Specific Block constraints */
.wp-block-group.is-layout-constrained > .wp-block-group,
.wp-block-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2em;
    color: #333;
    margin-bottom: 20px;
}

p {
    line-height: 1.7em;
    margin-bottom: 1.7em;
}

ul, ol {
    line-height: 1.7em;
    margin-bottom: 1.7em;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* Tables (Course Schedule etc.) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f9f9f9;
    font-weight: 700;
    color: #2ea3f2;
}

/* Pricing Table Simplification */
.et_pb_pricing_table {
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 5px;
    text-align: center;
}

.et_pb_pricing_heading h2 {
    color: #2ea3f2;
    margin-top: 0;
}

.et_pb_sum {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

/* Button Styling (Divi style) */
.wp-block-button__link {
    background-color: transparent;
    border: 2px solid #2ea3f2;
    color: #2ea3f2;
    border-radius: 3px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.wp-block-button__link:hover {
    background-color: #2ea3f2;
    color: #fff;
}

/* Team & Blurb Styles (Divi-like) */
.wp-block-columns.is-style-team-grid {
    gap: 30px;
}

.wp-block-column.is-style-team-member {
    text-align: center;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wp-block-column.is-style-team-member img {
    border-radius: 50%;
    margin-bottom: 15px;
}

/* Blurb & CTA Styles */
.et_pb_blurb {
    margin-bottom: 30px;
}

.et_pb_blurb_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.et_pb_main_blurb_image {
    margin-bottom: 20px;
}

.et_pb_blurb_container h4 {
    color: #2ea3f2;
}

.et_pb_promo {
    background-color: #2ea3f2;
    color: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.et_pb_promo h2 {
    color: #fff;
}

.et_pb_promo_button {
    margin-top: 20px;
}

/* Testimonial Style */
.wp-block-pullquote.is-style-divi {
    border: none;
    background: #f0f9ff;
    padding: 30px;
    position: relative;
    border-radius: 8px;
}

.wp-block-pullquote.is-style-divi p {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
}

.wp-block-pullquote.is-style-divi cite {
    display: block;
    margin-top: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2ea3f2;
}

/* Slider / Cover Block Replacement */
.wp-block-cover.is-light .wp-block-cover__inner-container {
    color: #000;
}

.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
    color: inherit;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .wp-block-cover__inner-container h1,
    .wp-block-cover__inner-container h2 {
        font-size: 2rem;
    }
}
