/* ==============================
   twosoft.de – Modern Design 2026
   ============================== */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --success: #10b981;
    --text: #334155;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* ===== HEADER ===== */
header {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content img {
    width: 48px;
    height: auto;
    filter: brightness(1.1);
}

.header-content h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===== NAV ===== */
nav {
    background: var(--primary-light);
    padding: 0.75rem 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav a:hover {
    background: var(--accent);
    color: white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: var(--text-white) !important;
    text-decoration: none;
    padding: 0.4rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropbtn:hover { background: var(--accent); }

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--primary);
    min-width: 200px;
    z-index: 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content a {
    color: var(--text-white);
    padding: 0.75rem 1.25rem;
    display: block;
    text-align: left;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 0;
}

.dropdown-content a:hover {
    background: var(--accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== SECTIONS (index.html) ===== */
section {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    scroll-margin-top: 120px;
}

h1, h2 {
    color: var(--primary);
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

section ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

section ul li a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

section ul li a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: var(--text-white);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: var(--accent) !important;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== FORMS (kontakt.html) ===== */
label {
    display: block;
    margin-top: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

input[type="submit"] {
    margin-top: 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Formspree Styles */
.fs-field { margin-bottom: 1.25rem; }

.fs-field input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    padding: 0;
    border-width: 2px;
    flex-shrink: 0;
}

.fs-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text);
}

.fs-input, .fs-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg);
}

.fs-input:focus, .fs-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.fs-textarea {
    height: 150px;
    resize: vertical;
}

.fs-button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fs-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.fs-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header { padding: 0.75rem 1rem; }
    .header-content h1 { font-size: 1.2rem; }
    nav { flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; }
    section { margin: 1rem; padding: 2rem 1.5rem; }
}
