/* =====================================================
   Schafherde Website - Stylesheet
   ===================================================== */

/* Variables */
:root {
    --color-primary: #2d5016;
    --color-primary-dark: #1e3a0f;
    --color-primary-light: #4a7c2a;
    --color-secondary: #8b7355;
    --color-accent: #e8b84a;
    
    --color-bg: #f5f5f0;
    --color-bg-light: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #ddd;
    
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 8px;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--color-primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.5rem;
}

address {
    font-style: normal;
}

/* =====================================================
   Header
   ===================================================== */

.header {
    background: var(--color-primary);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav a {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
}

.btn-app {
    background: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 600;
}

.btn-app:hover {
    background: #d4a73d !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

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

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

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-bg);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   Features Section
   ===================================================== */

.features {
    padding: 4rem 0;
    background: var(--color-bg-light);
}

.features h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* =====================================================
   About Section
   ===================================================== */

.about {
    padding: 4rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    margin-top: 0;
}

/* =====================================================
   CTA Section
   ===================================================== */

.cta {
    background: var(--color-primary-light);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-top: 0;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: white;
}

.footer-brand {
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

/* =====================================================
   Content Pages (Handbuch, Impressum, etc.)
   ===================================================== */

.content-page {
    padding: 2rem 0 4rem;
}

.content-page h1 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.content-page section {
    margin-bottom: 2.5rem;
}

.content-page section h2:first-child {
    margin-top: 0;
}

/* Table of Contents */
.toc {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc h2 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li {
    margin-bottom: 0.25rem;
}

/* Contact Block */
.contact-block {
    background: var(--color-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    margin: 1rem 0;
}

/* Last Updated */
.last-updated {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Content Navigation */
.content-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav.nav-open {
        max-height: 300px;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
    }
    
    .nav a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features,
    .about,
    .cta {
        padding: 3rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* =====================================================
   Feedback Page
   ===================================================== */

.feedback-intro {
    max-width: 700px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.feedback-form-container {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feedback-form-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.feedback-form .form-group {
    margin-bottom: 1.25rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.feedback-status {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: none;
}

.feedback-status.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.feedback-status.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.feedback-sidebar .card {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.feedback-sidebar .card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feedback-sidebar .card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.feedback-sidebar .card li {
    padding: 0.25rem 0;
}

.roadmap-list li {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid var(--color-border);
}

.roadmap-list li:last-child {
    border-bottom: none;
}

.roadmap-list li.done {
    color: var(--color-primary);
}

.roadmap-list li.planned {
    color: var(--color-text);
}

.roadmap-list li.idea {
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 900px) {
    .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-sidebar {
        order: -1;
    }
    
    .feedback-sidebar .card:not(:first-child) {
        display: none;
    }
}
