/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 80px 12px;
    gap: 16px;
    position: relative;
}

/* Card Container */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 42rem;
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #2563eb;
}

.card-content {
    padding: 16px;
}

/* Input Bereich */
.input-container {
    position: relative;
    margin-bottom: 16px;
}

.input-label {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 500;
}

.euro-symbol {
    position: absolute;
    right: 12px;
    top: 70%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    height: 20px;
    display: flex;
    align-items: center;
}

input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ergebnis Container */
.result-container {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.result-taxpayers {
    font-size: 1rem;
    margin-bottom: 12px;
}

.highlight {
    color: #2563eb;
    font-weight: bold;
    font-size: 1.125rem;
}

.info-list {
    color: #4b5563;
    font-size: 0.875rem;
    margin-top: 8px;
    padding-left: 16px;
}

.info-list li {
    margin-bottom: 4px;
}

.disclaimer {
    color: #6b7280;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 12px;
}

.hidden {
    display: none;
}

/* Beispiele Bereich */
.examples-container {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.examples-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.example-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-card:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.example-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.example-amount {
    color: #2563eb;
    font-weight: 500;
}

.source-link {
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    display: block;
    margin-top: 8px;
}

.source-link:hover {
    text-decoration: underline;
}

/* Share Funktionalität */
.share-container {
    margin-top: 16px;
    padding-top: 12px;
}

.share-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.share-title {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: white;
    color: #4b5563;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
}

.share-button.twitter:hover {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.share-button.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.share-button.clipboard:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.copy-feedback {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.visible {
    opacity: 1;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

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

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* Desktop Optimierungen */
@media (min-width: 640px) {
    body {
        padding: 50px 20px 80px 20px;
    }

    .card-header {
        padding: 24px;
    }

    .card-content {
        padding: 24px;
    }

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

    .input-label {
        font-size: 1.1rem;
    }

    .euro-symbol {
        right: 16px;
        font-size: 1.25rem;
    }

    input {
        padding: 16px;
        padding-right: 48px;
    }

    .result-container {
        padding: 24px;
    }

    .result-taxpayers {
        font-size: 1.125rem;
    }

    .highlight {
        font-size: 1.25rem;
    }

    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }

    .example-card {
        padding: 16px;
    }

    .share-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .share-button {
        padding: 8px 16px;
    }
}