/* --- Basis & Variablen --- */
:root {
    --primary-color: #0056b3;
    --primary-hover: #003d82;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --max-width: 800px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling */
.logo {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- Main Content --- */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 20px;
    width: 100%;
}

.intro-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.text-link:hover {
    text-decoration: underline;
}

.wrapper {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
/* --- Für Chatbot --- */
.chat-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Chatbot Antwort Feld */
.chat-response {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.loading {
    color: var(--text-light);
    font-style: italic;
}

.error {
    color: #d32f2f;
}

/* --- Footer --- */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-content a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Responsive Design (Smartphones) --- */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        padding: 0;
    }

    .intro-section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* --- Titelbild Styling --- */
.hero-image-wrapper {
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Anpassung für mobile Geräte */
@media (max-width: 600px) {
    .hero-image-wrapper {
        width: calc(100% + 3rem);
        margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    }
    
    .hero-image {
        height: 180px;
    }
}

/* --- Style für Dashboard - Home-Seite --- */
:root {
    --primary: #2563eb;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

/* Container der Dashboard-Vorschau */
.dashboard-preview {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Der 3D-Effekt */
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

/* Entfernt die Neigung beim Drüberfahren (Hover) */
.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.preview-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 10px 0;
    color: #1e293b;
}

/* Styling der einzelnen Service-Buttons */
.preview-btn {
    background: #f1f5f9;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

/* Hervorhebung für den aktiven Service */
.preview-btn.active {
    background: var(--primary);
    color: white;
}

/* --- Style Chatbot index.html --- */
.chat-response ul { padding-left: 20px; margin-top: 10px; margin-bottom: 10px; }
.chat-response li { margin-bottom: 5px; }
.chat-response hr { border: 0; border-top: 1px solid #ddd; margin: 15px 0; }

/* --- Style Kontaktformular contact.html --- */
.contact-form-container {
max-width: 600px;
margin: 40px auto;
background: #ffffff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
border: 1px solid #e2e8f0;
}

.form-group {
margin-bottom: 20px;
text-align: left;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #1e293b;
}

.form-group input, 
.form-group textarea {
width: 100%;
padding: 12px 15px;
border: 2px solid #e2e8f0;
border-radius: 8px;
font-size: 16px;
box-sizing: border-box;
font-family: inherit;
transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
border-color: #2563eb;
outline: none;
}

.submit-btn {
background-color: #2563eb;
color: white;
border: none;
padding: 15px 25px;
font-size: 16px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
width: 100%;
transition: background 0.3s, transform 0.1s;
}

.submit-btn:hover {
background-color: #1d4ed8;
}

.submit-btn:disabled {
background-color: #94a3b8;
cursor: not-allowed;
}

#form-feedback {
margin-top: 15px;
font-weight: 500;
text-align: center;
}

.success-text { color: #16a34a; }
.error-text { color: #dc2626; }

/* --- Rechtliche Seiten (Impressum, Datenschutz, AGB) --- */

.intro-section h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.intro-section p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.7;
}

.intro-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.intro-section a:hover {
    text-decoration: underline;
}

/* bessere Lesbarkeit für lange Texte */
.intro-section {
    max-width: 800px;
}

/* Absätze optisch trennen */
.intro-section p + p {
    margin-top: 0.5rem;
}

/* Hervorhebung für wichtige Abschnitte */
.intro-section strong {
    color: var(--text-dark);
}

/* Mobile Optimierung für lange Texte */
@media (max-width: 600px) {
    .intro-section {
        padding: 1.5rem;
    }

    .intro-section h2 {
        font-size: 1.1rem;
    }
}

/* --- Spezifische Anpassung für Listen in Rechtstexten (AGB) --- */

.intro-section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.intro-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* --- Professioneller Buchungs-Button (Transparent Blue) --- */
.btn-booking {
    display: inline-block;
    padding: 8px 18px;
    background-color: rgba(0, 86, 179, 0.05);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    margin: 0;
}

.btn-booking:hover {
    background-color: var(--primary-color); 
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.btn-booking span {
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-booking:hover span {
    transform: translateX(3px);
}

nav .btn-booking {
    margin: 0;
    padding: 6px 15px;
    font-size: 0.95rem;
}

/* --- Container für Text und Bild nebeneinander --- */
.about-container {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-pic-rect {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
    }
    .about-image {
        justify-content: center;
        margin-bottom: 20px;
    }
}