/* ============================================================
   Padelfinder — Profile CSS v1.0.0
   Style: Booking.com Mobile — clean, card-based, mobile-first
   ============================================================ */

/* ── Wrap ── */
.pf-profile-wrap {
    width: 100%;
    background: var(--pf-white);
    padding-bottom: 60px;
    box-sizing: border-box;
}
@media (min-width: 700px) {
    .pf-profile-wrap {
        max-width: 680px;
        margin: 0 auto;
    }
}


/* ── Foto Slider ── */
.pf-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 16 / 9;
}

.pf-slider--placeholder {
    background: var(--pf-grey-bg);
    aspect-ratio: 16/9;
}

.pf-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.pf-slide {
    min-width: 100%;
    flex-shrink: 0;
    line-height: 0;
    height: 100%;
}

.pf-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Arrows */
.pf-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pf-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.18s ease;
    z-index: 10;
}

.pf-slider-btn:hover {
    background: var(--pf-white);
    transform: translateY(-50%) scale(1.05);
}

.pf-slider-btn--prev { left: 12px; }
.pf-slider-btn--next { right: 12px; }

/* On mobile: hide arrows, show counter only */
@media (max-width: 600px) {
    .pf-slider-btn { display: none; }
}

/* Counter */
.pf-slider-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    z-index: 10;
    pointer-events: none;
}

/* ── Profile Header ── */
.pf-profile-header {
    padding: 20px 20px 0;
    position: relative;
}

.pf-profile-logo {
    display: inline-block;
    border-radius: var(--pf-radius-sm);
    overflow: hidden;
    border: 2px solid var(--pf-grey-border);
    margin-bottom: 12px;
    background: var(--pf-grey-bg);
}

.pf-profile-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pf-profile-title-block h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pf-text);
    margin: 0 0 6px;
    line-height: 1.25;
}

.pf-profile-address {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--pf-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Open/Closed badge */
.pf-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
}

.pf-open-badge--open {
    background: #d1fae5;
    color: #065f46;
}

.pf-open-badge--closed {
    background: #111111;
    color: #ffffff;
}

.pf-open-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pf-open-badge--open .pf-open-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

.pf-open-badge--closed .pf-open-dot {
    background: #ef4444;
}

/* ── CTA Buttons ── */
.pf-profile-cta {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.pf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    border: 2px solid transparent;
}

.pf-cta-btn--primary {
    background: var(--pf-blue);
    color: var(--pf-white);
    flex: 1;
    justify-content: center;
}

.pf-cta-btn--primary:hover {
    background: var(--pf-blue-dark);
    color: var(--pf-white);
}

.pf-cta-btn--outline {
    background: transparent;
    color: var(--pf-blue);
    border-color: var(--pf-blue);
}

.pf-cta-btn--outline:hover {
    background: var(--pf-blue-light);
}

/* ── Sections ── */
.pf-section {
    padding: 20px 20px 0;
    margin-bottom: 8px;
}

.pf-section--map {
    padding-bottom: 0;
}

.pf-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pf-text-muted);
    margin: 0 0 14px;
}

/* ── Ausstattung Grid ── */
.pf-ausstattung-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 400px) {
    .pf-ausstattung-grid { grid-template-columns: repeat(2, 1fr); }
}

.pf-ausstattung-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px;
    background: var(--pf-grey-bg);
    border-radius: var(--pf-radius);
    border: 1.5px solid var(--pf-grey-border);
    text-align: center;
}

.pf-ausstattung-icon {
    color: var(--pf-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-ausstattung-card span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pf-text);
    line-height: 1.3;
}

/* Trainer Box */
.pf-trainer-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--pf-blue-light);
    border-radius: var(--pf-radius);
    border: 1.5px solid rgba(26,86,160,0.12);
}

.pf-trainer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(26,86,160,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pf-trainer-box strong {
    font-size: 0.9rem;
    color: var(--pf-text);
}

.pf-trainer-contact {
    font-size: 0.85rem;
    color: var(--pf-blue);
    text-decoration: none;
    font-weight: 500;
}

.pf-trainer-contact:hover {
    text-decoration: underline;
}

/* ── Beschreibung ── */
.pf-beschreibung {
    font-size: 0.95rem;
    color: var(--pf-text);
    line-height: 1.65;
    margin: 0;
}

/* ── Öffnungszeiten Tabelle ── */
.pf-opening-table {
    background: var(--pf-grey-bg);
    border-radius: var(--pf-radius);
    overflow: hidden;
    border: 1.5px solid var(--pf-grey-border);
}

.pf-oh-table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 1px solid var(--pf-grey-border);
    font-size: 0.9rem;
}

.pf-oh-table-row:last-child {
    border-bottom: none;
}

.pf-oh-table-row--today {
    background: var(--pf-blue-light);
}

.pf-oh-table-row--today .pf-oh-table-day {
    font-weight: 700;
    color: var(--pf-blue);
}

.pf-oh-table-day {
    font-weight: 500;
    color: var(--pf-text);
    min-width: 36px;
}

.pf-oh-table-time {
    color: var(--pf-text);
    font-variant-numeric: tabular-nums;
}

.pf-oh-table-time--closed {
    color: var(--pf-red);
    font-weight: 500;
}

/* ── YouTube ── */
.pf-youtube-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--pf-radius);
    background: #000;
}

.pf-youtube-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--pf-radius);
}

/* ── Map ── */
#pf-map {
    width: 100%;
    height: 240px;
    border-radius: var(--pf-radius);
    overflow: hidden;
    background: var(--pf-grey-bg);
    margin-bottom: 10px;
}

.pf-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--pf-blue);
    text-decoration: none;
    font-weight: 500;
}

.pf-maps-link:hover {
    text-decoration: underline;
}

/* ── Footer / Back ── */
.pf-profile-footer {
    padding: 24px 20px 0;
}

.pf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pf-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s;
}

.pf-back-link:hover {
    color: var(--pf-blue);
}

/* ── Dividers between sections ── */
.pf-section + .pf-section {
    border-top: 1px solid var(--pf-grey-border);
    padding-top: 20px;
    margin-top: 12px;
}

.pf-profile-cta + .pf-section {
    border-top: 1px solid var(--pf-grey-border);
}

/* ── Desktop ── */
@media (min-width: 680px) {
    .pf-profile-wrap {
        border-left:  1px solid var(--pf-grey-border);
        border-right: 1px solid var(--pf-grey-border);
        margin-top: 32px;
        border-radius: var(--pf-radius) var(--pf-radius) 0 0;
        overflow: hidden;
    }
    .pf-slider { border-radius: 0; }
    #pf-map { height: 300px; }
}
