@font-face {
    font-family: 'Hind';
    src: url('../assets/fonts/Hind-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Hind';
    src: url('../assets/fonts/Hind-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Hind';
    src: url('../assets/fonts/Hind-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Hind';
    src: url('../assets/fonts/Hind-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Hind';
    src: url('../assets/fonts/Hind-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #00305d;
    background: #ffffff;
    min-height: 100vh;
}

.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top white bar */
.top-white-bar {
    height: 65px;
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-logo-top {
    background: #e8f5e0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 50px 50px 10px 50px;
    display: none;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 57.33333% 42.66667%;
    gap: 0;
    align-items: stretch;
}

.hero-content {
    background: #76b82a;
    padding: 60px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 28px;
    max-width: 690px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #1A1919;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-text {
    font-size: 1.0625rem;
    font-weight: 400;
    color: #1A1919;
    line-height: 1.7;
}

.hero-text p {
    margin-bottom: 20px;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

/* Logo Side */
.hero-logo-side {
    background: #e8f5e0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 50px 45px 60px 45px;
}

.main-logo {
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    width: 95%;
}

.main-logo svg {
    width: 95%;
    height: auto;
}

.main-logo img {
    width: 95%;
    height: auto;
}

.cta-hint {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 620px;
    padding-left: 5%;
}

.cta-hint-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #76b82a;
    border-radius: 0;
    margin-top: 3px;
}

.cta-hint-text {
    min-width: 410px;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1A1919;
    line-height: 1.5;
    flex: 1;
}

.cta-hint-text strong {
    font-weight: 700;
}

.cta-hand {
    position: absolute;
    top: 35px;
    left: 450px;
    margin-left: 0;
    flex-shrink: 0;
    align-self: flex-end;
}

.cta-hand img {
    width: 75px;
    height: auto;
}

/* Pharmacy Cards Section */
.pharmacy-section {
    background: #ffffff;
    height: 194px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.pharmacy-logo-wrapper {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pharmacy-separator {
    width: 1px;
    height: 129px;
    background: #76b82a;
    flex-shrink: 0;
}

.pharmacy-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 12px;
}

.pharmacy-card:hover {
    transform: scale(1.03);
}

.pharmacy-card:active {
    transform: scale(0.98);
}

/* Site Footer */
.site-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 40px;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #00305d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #76b82a;
}

/* Kleeblatt - fixed height */
.pharmacy-card[data-pharmacy="kleeblatt"] img {
    width: 100%;
    height: 120px;
}

/* Easy Apotheke - fixed width (larger) */
.pharmacy-card[data-pharmacy="easy"] img {
    width: 380px;
    height: auto;
}

/* Ärztehaus - fixed height */
.pharmacy-card[data-pharmacy="aerztehaus"] img {
    width: auto;
    height: 120px;
}

@media (max-width: 1600px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .cta-hint {
        width: 400px;
    }

    .cta-hand {
        top: 75px;
        left: 250px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .top-white-bar {
        height: 55px;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        padding: 50px 60px 70px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .main-logo img {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .top-white-bar {
        height: 45px;
    }

    .hero-logo-side .main-logo {
        display: none;
    }

    .mobile-logo-top {
        display: block;
    }

    .mobile-logo-top .main-logo {
        width: 100%;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-content {
        padding: 40px 80px 60px;
    }

    .hero-logo-side {
        padding: 40px 50px 60px 40px;
        align-items: flex-start;
    }

    .main-logo {
        margin-bottom: 50px;
    }

    .main-logo img {
        width: 50%;
    }

    .cta-hint {
        width: 600px;
        align-self: center;
    }

    .cta-hint-text {
        min-width: 300px;
        max-width: 360px;
    }

    .cta-hand {
        top: 75px;
        left: 300px;
    }

    .cta-hand img {
        width: 75px;
        height: auto;
    }

    /* Scale down pharmacy logos to prevent overflow */
    .pharmacy-card[data-pharmacy="kleeblatt"] img {
        height: 105px;
    }

    .pharmacy-card[data-pharmacy="easy"] img {
        width: 340px;
    }

    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        height: 105px;
    }

    .pharmacy-separator {
        height: 113px;
    }
}

@media (max-width: 900px) {
    .pharmacy-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        height: auto;
        padding: 40px 20px;
    }

    .pharmacy-separator {
        width: 300px;
        height: 1px;
        background: #76b82a;
    }

    /* Reorder: Easy, Sep, Kleeblatt, Sep, Ärztehaus */
    .pharmacy-logo-wrapper:nth-child(3) { order: 3; }  /* Easy - first */
    .pharmacy-separator:nth-child(2) { order: 2; }     /* Separator 1 */
    .pharmacy-logo-wrapper:nth-child(1) { order: 1; }  /* Kleeblatt - third */
    .pharmacy-separator:nth-child(4) { order: 4; }     /* Separator 2 */
    .pharmacy-logo-wrapper:nth-child(5) { order: 5; }  /* Ärztehaus - fifth */

    /* Reset all logos to height constraint for mobile */
    .pharmacy-card[data-pharmacy="kleeblatt"] img,
    .pharmacy-card[data-pharmacy="easy"] img,
    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        width: auto;
        height: 129px;
        max-width: 300px;
    }

    /* Increase logo sizes for 1024px-768px range */
    .pharmacy-card[data-pharmacy="kleeblatt"] img,
    .pharmacy-card[data-pharmacy="easy"] img,
    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        width: auto;
        height: 220px;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .top-white-bar {
        height: 35px;
    }

    .site-footer {
        padding: 18px 28px;
    }

    .site-footer a {
        font-size: 0.875rem;
    }

    .hero-content {
        padding: 32px 28px 50px;
    }

    .hero-logo-side {
        padding: 32px 28px 50px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 18px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .main-logo {
        margin-bottom: 40px;
    }

    .main-logo img {
        width: 65%;
    }

    .cta-hint {
        width: auto;
        max-width: 90%;
        gap: 12px;
    }

    .cta-hint-icon {
        width: 16px;
        height: 16px;
    }

    .cta-hint-text {
        font-size: 1.5rem;
        min-width: 0;
    }

    .cta-hand {
        top: 75px;
        left: 285px;
    }

    .cta-hand img {
        width: 60px;
    }

    .pharmacy-section {
        gap: 24px;
    }

    .pharmacy-card {
        padding: 0 16px;
    }

    /* Increase logo sizes for 768px-600px range */
    .pharmacy-card[data-pharmacy="kleeblatt"] img,
    .pharmacy-card[data-pharmacy="easy"] img,
    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        width: auto;
        height: 180px;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .top-white-bar {
        height: 25px;
    }

    .mobile-logo-top {
        padding-top: 40px;
    }

    .hero-content {
        padding: 28px 20px 40px;
    }

    .hero-logo-side {
        padding: 28px 20px 40px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.65;
    }

    .main-logo {
        margin-bottom: 30px;
        width: 87%;
    }

    .main-logo img {
        width: 65%;
    }

    .cta-hint {
        flex-direction: row;
        gap: 16px;
        max-width: 80%;
    }

    .cta-hint-text {
        font-size: 1.25rem;
        min-width: 220px;
        max-width: 250px;
    }

    .cta-hand {
        align-self: flex-end;
        margin-top: 0;
        top: 95px;
        left: 150px;
    }

    .cta-hand img {
        width: 50px;
    }

    .pharmacy-section {
        gap: 20px;
    }

    .pharmacy-separator {
        width: 280px;
    }

    .pharmacy-card {
        padding: 0 12px;
    }

    .pharmacy-card img {
        max-width: 280px;
    }

    .pharmacy-logo-wrapper {
        min-height: 120px;
    }

    /* Increase logo sizes for 600px-400px range */
    .pharmacy-card[data-pharmacy="kleeblatt"] img,
    .pharmacy-card[data-pharmacy="easy"] img,
    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        width: auto;
        height: 160px;
        max-width: 380px;
    }
}

@media (max-width: 400px) {
    .top-white-bar {
        height: 20px;
    }

    .site-footer {
        padding: 16px 16px;
    }

    .site-footer a {
        font-size: 0.8125rem;
    }

    .hero-content {
        padding: 24px 16px 36px;
    }

    .hero-logo-side {
        padding: 24px 16px 36px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .main-logo {
        margin-bottom: 24px;
    }

    .main-logo img {
        width: 95%;
    }

    .cta-hint {
        max-width: 80%;
        padding-left: 0;
    }

    .cta-hint-text {
        font-size: 1rem;
        min-width: 250px;
        max-width: 300px;
    }

    .cta-hand {
        top: 50px;
        left: 205px;
    }

    .cta-hand img {
        width: 44px;
    }

    .pharmacy-card img {
        max-width: 240px;
    }

    /* Increase logo sizes for 768px-600px range */
    .pharmacy-card[data-pharmacy="kleeblatt"] img,
    .pharmacy-card[data-pharmacy="easy"] img,
    .pharmacy-card[data-pharmacy="aerztehaus"] img {
        width: auto;
        height: 140px;
        max-width: 100%;
    }
}
