/* SGF Discount App – Website Styles */

:root {
    --sgf-gruen: #009540;
    --sgf-gruen-dark: #007a34;
    --sgf-gruen-light: #e6f5ec;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f8fff5;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* Header / Navigation */
header {
    background-color: var(--sgf-gruen);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

header h1 a {
    color: var(--white);
    text-decoration: none;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Main content */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Hero on index page */
.hero {
    background: linear-gradient(135deg, var(--sgf-gruen), var(--sgf-gruen-dark));
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem 4rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
    display: inline-block;
    padding: 0.28rem 0.85rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
}

.hero p {
    font-size: 1.15rem;
    color: #ffffff !important;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.36);
}

.download-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.75rem;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 880px;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.store-card,
.store-card:visited,
.store-card:hover,
.store-card:active,
.store-card small,
.store-card strong,
.store-card span {
    color: #ffffff !important;
}

.ios-card {
    background: linear-gradient(135deg, #0b0b0b, #2b2b2b);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.44);
    transform: none;
}

.ios-card .store-icon {
    background: rgba(255, 255, 255, 0.24);
    font-size: 1.45rem;
}

.android-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.3));
}

.store-card:hover {
    background: rgba(0, 0, 0, 0.48);
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    text-decoration: none;
}

.ios-card:hover {
    background: linear-gradient(135deg, #111111, #353535);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.48);
    transform: translateY(-3px);
}

.store-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.store-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-text small {
    font-size: 0.74rem;
    opacity: 0.86;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.store-text strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.download-note {
    margin-top: 0.85rem;
    margin-bottom: 0;
    font-size: 0.92rem;
    opacity: 1;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

/* Section headings */
h2 {
    color: var(--sgf-gruen);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

h3 {
    color: var(--sgf-gruen-dark);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

p,
li {
    margin-bottom: 0.5rem;
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--sgf-gruen);
}

/* Feature grid on index */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Table styles for privacy page */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th,
td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--sgf-gruen-light);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--sgf-gruen-dark);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

footer a {
    color: var(--white);
    opacity: 0.85;
    margin: 0 0.75rem;
    text-decoration: none;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .links {
    margin-bottom: 0.5rem;
}

footer .copy {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        margin-left: 0.75rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .store-card {
        width: 100%;
        justify-content: flex-start;
    }

    .download-links {
        max-width: 360px;
    }

    .hero h2 {
        padding: 0.2rem 0.5rem;
    }

    .card {
        padding: 1.25rem;
    }
}