/* Vruchtbare Dagen Berekenen - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary: #4CAF50;
    --primary-dark: #45a049;
    --secondary: #FF9800;
    --text: #333;
    --text-light: #666;
    --bg: #F5F5F5;
    --white: #fff;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --spacing: 1rem;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary);
    margin: 2rem 0 1rem;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.3rem);
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ===== Breadcrumb Navigation ===== */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--spacing);
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb li:last-child {
    color: var(--text);
    font-weight: 500;
}

/* ===== Header ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 4px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.8;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* ===== Main Content ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem var(--spacing);
    min-height: calc(100vh - 300px);
}

section {
    margin: 3rem 0;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Calculator Section ===== */
#calculator {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
}

#calculator h2 {
    margin-top: 0;
    text-align: center;
}

form {
    margin-top: 1.5rem;
}

label {
    display: block;
    margin: 1rem 0 0.3rem;
    font-weight: 500;
    color: var(--text);
}

input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* ===== Buttons ===== */
button,
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

button:hover,
.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

button:active,
.btn-primary:active {
    transform: translateY(0);
}

button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ===== Results Section ===== */
#results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary);
}

#results h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

#key-dates {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

#key-dates p {
    margin: 0.5rem 0;
}

.share-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

/* ===== Content Sections ===== */
.content-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: 0 2px 4px var(--shadow);
}

/* ===== FAQ Section ===== */
#faq > div {
    background: var(--white);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 4px var(--shadow);
}

#faq h3 {
    color: var(--primary);
    margin-top: 0;
}

/* ===== CTA Section ===== */
#cta {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px var(--shadow);
}

#cta .btn-primary {
    margin-top: 1rem;
}

/* ===== Footer ===== */
footer {
    background: #333;
    color: var(--white);
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    color: #999 !important;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
    
    #calculator {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .share-buttons, #cta {
        display: none;
    }
    
    body {
        background: white;
    }
    
    #calculator, #results {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
