/* ===========================================
   GPS Rechtsanwälte - Landing Page V3 Styles
   Mobile-First Design
   =========================================== */

/* CSS Variables */
:root {
    --primary-color: #1a237e;
    --primary-dark: #0d1442;
    --accent-color: #c9a227;
    --accent-light: #d4b44a;
    --accent-hover: #b8911f;
    --success-color: #2e7d32;
    --success-light: #4caf50;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    padding-bottom: 100px;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   Header mit Bewertung
   =========================================== */
.header {
    background: var(--bg-white);
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 36px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
}

.header-rating .stars {
    color: var(--accent-color);
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-label {
    color: var(--text-light);
    font-weight: 500;
}

.location-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===========================================
   Hero Section - Foto ohne Siegel
   =========================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 30px 0 40px;
    color: white;
}

.hero-content {
    text-align: center;
}

.anwalt-hero {
    display: inline-block;
    margin-bottom: 20px;
}

.anwalt-foto-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.anwalt-info-hero {
    margin-bottom: 20px;
}

.anwalt-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.anwalt-titel {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stars {
    color: var(--accent-color);
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    font-weight: 600;
}

.rating-count {
    opacity: 0.8;
    font-weight: 400;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* CTA Banner Ocker */
.cta-banner-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.cta-banner-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

/* ===========================================
   Problems Section
   =========================================== */
.problems {
    padding: 40px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.problem-list {
    list-style: none;
    margin-bottom: 25px;
}

.problem-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.problem-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.checkmark {
    width: 32px;
    height: 32px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-right: 14px;
    flex-shrink: 0;
}

.problem-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-color);
}

/* Inline CTA Button - Zweizeilig */
.cta-button-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-white);
    color: var(--success-color);
    border: 2px solid var(--success-color);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    margin: 0 auto;
    max-width: 280px;
}

.cta-button-inline:hover {
    background: var(--success-color);
    color: white;
}

.cta-button-inline .phone-icon {
    font-size: 24px;
}

.cta-text-inline {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cta-line1 {
    font-size: 14px;
    font-weight: 600;
}

.cta-line2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===========================================
   Process Section
   =========================================== */
.process {
    padding: 40px 0;
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* ===========================================
   Testimonials Slideshow
   =========================================== */
.testimonials {
    padding: 40px 0;
    background: var(--bg-white);
    overflow: hidden;
}

.testimonial-slider {
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 25px 20px;
    text-align: center;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.avatar-initials {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: transparent;
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ===========================================
   Article Section
   =========================================== */
.article {
    padding: 40px 0;
    background: var(--bg-light);
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.article-intro {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
}

.article-point {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-point:last-of-type {
    border-bottom: none;
    margin-bottom: 25px;
}

.point-number {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.point-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.point-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.article-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--success-color);
    border: 2px solid var(--success-color);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.article-cta:hover {
    background: var(--success-color);
    color: white;
}

/* ===========================================
   Callback Form
   =========================================== */
.callback-form {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===========================================
   Location Section mit Map
   =========================================== */
.location {
    padding: 30px 0;
    background: var(--bg-white);
}

.location-info {
    text-align: center;
    margin-bottom: 20px;
}

.location-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.address {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 5px;
}

.hours {
    font-size: 14px;
    color: var(--text-light);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    padding: 25px 0;
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

/* ===========================================
   Sticky CTA Bar - Vertikal gestapelt
   =========================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px 15px 10px;
}

.sticky-cta-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-width: 400px;
    margin: 0 auto;
}

/* Header-Zeile: Headline links, Badge rechts */
.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sticky-headline {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

/* Erreichbarkeits-Badge rechts */
.available-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.green-dot {
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    box-shadow: 0 0 6px #00c853;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.available-text {
    font-size: 11px;
    font-weight: 600;
    color: #00a844;
}

.sticky-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.sticky-call {
    background: linear-gradient(135deg, var(--success-color) 0%, #1b5e20 100%);
    color: white;
}

.sticky-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SVG Phone Icon */
.phone-icon-svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.sticky-number {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Rückruf Link unter dem Button */
.sticky-callback-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 0 0;
    transition: var(--transition);
}

.sticky-callback-link:hover {
    color: var(--accent-color);
}

.callback-icon {
    font-size: 13px;
}

.sticky-subtext {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 2px;
}

/* ===========================================
   Desktop Styles
   =========================================== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .container {
        max-width: 800px;
    }

    .logo {
        height: 45px;
    }

    .header-rating .stars {
        font-size: 14px;
    }

    .anwalt-foto-large {
        width: 220px;
        height: 220px;
    }

    .anwalt-name {
        font-size: 28px;
    }

    .hero-title {
        font-size: 42px;
    }

    .problem-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .problem-item {
        margin-bottom: 0;
    }

    .cta-button-inline {
        max-width: 320px;
    }

    .process-steps {
        flex-direction: row;
        gap: 20px;
    }

    .step {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        border-left: none;
        border-top: 4px solid var(--accent-color);
    }

    .article-card {
        padding: 40px;
    }

    .form-card {
        max-width: 500px;
        margin: 0 auto;
        padding: 40px;
    }

    .location .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    .location-info {
        text-align: left;
        margin-bottom: 0;
    }

    .map-container iframe {
        height: 250px;
    }

    .sticky-cta {
        padding: 6px 15px 8px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .anwalt-foto-large {
        width: 250px;
        height: 250px;
    }

    .hero-title {
        font-size: 48px;
    }
}

/* ===========================================
   Accessibility
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
