/* --- CSS Variablen (Farbkonzept) --- */
:root {
    --bg-color: #f4f1ea;
    --text-color: #3b403d;
    --accent-terracotta: #b56c4d;
    --accent-sand: #dfcdb8;
    --accent-sage: #9eb098;
    --font-heading: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* --- Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    font-size: 16px; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--text-color); margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-terracotta); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-sage); }
img { max-width: 100%; height: auto; display: block; }

/* --- Layout Utility --- */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-padding { padding: 5rem 0; }
.page-padding { padding: 6rem 0; background-color: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); margin: 3rem auto; padding: 4rem; }

/* --- Buttons --- */
.btn, .btn-small { display: inline-block; background-color: var(--accent-terracotta); color: #fff; padding: 12px 28px; border-radius: 30px; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; box-shadow: 0 4px 6px rgba(181, 108, 77, 0.2); border: none; cursor: pointer; transition: var(--transition); }
.btn:hover, .btn-small:hover { background-color: var(--accent-sage); color: #fff; box-shadow: 0 6px 12px rgba(158, 176, 152, 0.3); }
.btn-small { padding: 8px 20px; font-size: 0.8rem; }

/* --- Navigation --- */
.navbar { background-color: var(--bg-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(59, 64, 61, 0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 15px; color: var(--text-color); font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.logo-link:hover { color: var(--accent-terracotta); }
.logo { height: 50px; border-radius: 50%; mix-blend-mode: multiply; }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn-small) { color: var(--text-color); font-weight: 500; font-size: 1rem; }
.nav-links a:not(.btn-small):hover { color: var(--accent-terracotta); }

/* --- Hamburger Menu --- */
.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.menu-toggle .bar { height: 3px; width: 100%; background-color: var(--text-color); border-radius: 3px; transition: all 0.3s ease; }

/* --- Hero Section (Index) --- */
.hero { background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent-sand) 100%); padding: 4rem 0 6rem 0; text-align: center; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; color: var(--text-color); }
.hero .subtitle { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2.5rem auto; color: #5a625e; }
.hero-logo { max-width: 250px; margin: 0 auto 2rem auto; border-radius: 50%; box-shadow: 0 15px 35px rgba(0,0,0,0.08); animation: float 6s ease-in-out infinite, fadeIn 1.2s ease-out forwards; }

/* --- Subpage Hero --- */
.subpage-hero { padding: 5rem 0 4rem 0; text-align: center; background: linear-gradient(135deg, var(--bg-color) 0%, var(--accent-sand) 100%); animation: fadeIn 1s ease-out; }
.subpage-hero h1 { font-size: 3.5rem; line-height: 1.2; color: var(--text-color); margin-bottom: 1rem; }

/* --- Animations --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-content { animation: fadeIn 1s ease-out forwards; }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }
.grid-cards .card:nth-child(1) { transition-delay: 0.1s; } .grid-cards .card:nth-child(2) { transition-delay: 0.2s; } .grid-cards .card:nth-child(3) { transition-delay: 0.3s; } .grid-cards .card:nth-child(4) { transition-delay: 0.4s; } .grid-cards .card:nth-child(5) { transition-delay: 0.5s; } .grid-cards .card:nth-child(6) { transition-delay: 0.6s; }

/* --- Angebot Section (Index) --- */
.section-title { text-align: center; margin-bottom: 3.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-title h2 { font-size: 2.5rem; color: var(--accent-terracotta); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background-color: #fff; padding: 2.5rem 2rem; border-radius: 15px; border-top: 5px solid var(--accent-sage); box-shadow: 0 10px 30px rgba(59, 64, 61, 0.05); transition: var(--transition); display: block; text-decoration: none; color: var(--text-color); }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(59, 64, 61, 0.12); border-top-color: var(--accent-terracotta); color: var(--text-color); }
.card h3 { font-size: 1.3rem; color: var(--text-color); margin-bottom: 1rem; text-align: center; }
.card p { font-size: 0.95rem; margin: 0; }
.card-link { margin: 1.5rem auto 0 auto; font-weight: 600; color: var(--accent-terracotta); background-color: transparent; border: 2px solid var(--accent-terracotta); padding: 8px 24px; border-radius: 30px; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; transition: var(--transition); }
.card-link span { transition: transform 0.3s ease; }
.card:hover .card-link { background-color: var(--accent-terracotta); color: #fff; box-shadow: 0 4px 10px rgba(181, 108, 77, 0.2); }
.card:hover .card-link span { transform: translateX(5px); }

/* --- Subpage Content Wrappers --- */
.service-content-wrapper { max-width: 800px; margin: 0 auto 4rem auto; background: #fff; padding: 4rem 3.5rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); position: relative; z-index: 10; }
.service-content-wrapper p { font-size: 1.1rem; line-height: 1.8; color: #5a625e; margin-bottom: 1.5rem; }
.service-content-wrapper h3 { color: var(--accent-terracotta); margin-top: 2.5rem; font-size: 1.4rem; }
.back-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-sage); font-weight: 600; margin-bottom: 2.5rem; font-size: 0.95rem; }
.back-btn:hover { color: var(--accent-terracotta); transform: translateX(-5px); }
.info-box { background-color: rgba(223, 205, 184, 0.3); padding: 1.5rem 2rem; border-left: 4px solid var(--accent-terracotta); border-radius: 0 10px 10px 0; margin: 2rem 0; }
.info-box p { color: var(--text-color); margin-bottom: 0; }
.info-box h3 { margin-top: 0; }
.custom-list { list-style: none; margin-bottom: 1.5rem; }
.custom-list li { position: relative; padding-left: 20px; margin-bottom: 0.8rem; color: #5a625e; font-size: 1.1rem; }
.custom-list li::before { content: '•'; color: var(--accent-terracotta); position: absolute; left: 0; top: 0; font-size: 1.2rem; }

/* --- Über Mich Section --- */
.bg-accent { background-color: var(--accent-sand); }
.flex-layout { display: flex; align-items: flex-start; gap: 50px; }
.image-wrapper { flex: 1; position: relative; max-width: 400px; margin: 0 auto; }
.image-wrapper::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; border: 3px solid var(--accent-terracotta); border-radius: 50%; z-index: 1; }
.portrait { border-radius: 50%; aspect-ratio: 1 / 1; position: relative; z-index: 2; object-fit: cover; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.text-wrapper { flex: 1.2; }
.text-wrapper h2 { font-size: 2.5rem; color: var(--accent-terracotta); }
.text-wrapper h3 { margin-top: 2rem; font-size: 1.4rem; color: var(--text-color); }

/* --- Praxis Section --- */
.text-center-layout { max-width: 800px; text-align: center; background-color: #fff; padding: 4rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); margin: 0 auto; }
.text-center-layout h2 { font-size: 2.5rem; color: var(--accent-sage); }
.praxis-img { width: 100%; height: 350px; object-fit: cover; border-radius: 15px; margin-bottom: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.lead { font-size: 1.2rem; font-weight: 500; color: var(--accent-terracotta); margin-bottom: 2rem; }

/* --- Kontakt Formular Section --- */
.form-container { background-color: #fff; padding: 3.5rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 20px; margin-bottom: 1.5rem; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group.full-width { margin-bottom: 1.5rem; }
.form-group label { font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-color); }
.form-group input, .form-group textarea { font-family: var(--font-body); padding: 12px 15px; border: 1px solid #d1ccc5; border-radius: 8px; font-size: 1rem; background-color: #fcfbfa; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-terracotta); background-color: #fff; box-shadow: 0 0 0 3px rgba(181, 108, 77, 0.1); }
.form-group textarea { resize: vertical; min-height: 150px; }

/* --- 404 Spezifisches Styling --- */
main { flex-grow: 1; }
.error-container { text-align: center; background-color: #fff; padding: 5rem 3rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(59, 64, 61, 0.05); max-width: 600px; width: 90%; margin: 4rem auto; border-top: 5px solid var(--accent-terracotta); }
.error-code { font-size: 6rem; font-family: var(--font-heading); color: var(--accent-sand); line-height: 1; margin-bottom: 0.5rem; }
.error-title { font-size: 2.2rem; color: var(--accent-terracotta); margin-bottom: 1.5rem; }
.error-text { font-size: 1.1rem; color: #5a625e; margin-bottom: 2.5rem; }

/* --- Pop-Up Modal --- */
.modal-overlay { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(59, 64, 61, 0.7); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background-color: #fff; padding: 3rem 2rem; border-radius: 20px; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 15px 40px rgba(0,0,0,0.15); position: relative; transform: translateY(-20px); transition: transform 0.3s ease; border-top: 5px solid var(--accent-sage); }
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-content h3 { color: var(--accent-terracotta); margin-bottom: 1rem; font-size: 1.8rem; }
.modal-content p { margin-bottom: 2rem; color: var(--text-color); }
.close-modal-icon { position: absolute; top: 15px; right: 20px; font-size: 2rem; line-height: 1; color: #a0a0a0; cursor: pointer; transition: var(--transition); }
.close-modal-icon:hover { color: var(--accent-terracotta); }

/* --- Footer --- */
.site-footer { background-color: var(--text-color); color: var(--bg-color); padding: 4rem 0 2rem 0; margin-top: auto; }
.site-footer h4 { color: var(--accent-sand); margin-bottom: 1.5rem; }
.site-footer p, .site-footer a { color: #e0e0e0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent-terracotta); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 3rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(223, 205, 184, 0.2); padding-top: 2rem; font-size: 0.85rem; color: #a0a0a0; margin-top: 3rem;}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-sage);
    border-radius: 50px;
    box-shadow: 0px 4px 15px rgba(59, 64, 61, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-sage 2.5s infinite;
}
.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color: var(--accent-terracotta);
    box-shadow: 0px 6px 20px rgba(181, 108, 77, 0.4);
}
.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #fff;
    transform: translateZ(0); /* Verhindert ein Verschwimmen während der Animation */
}
@keyframes pulse-sage {
    0% { box-shadow: 0 0 0 0 rgba(158, 176, 152, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(158, 176, 152, 0); }
    100% { box-shadow: 0 0 0 0 rgba(158, 176, 152, 0); }
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .flex-layout { flex-direction: column; align-items: center; }
    .hero h1 { font-size: 2.5rem; }
    .subpage-hero h1 { font-size: 2.2rem; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
    .menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 250px; height: 100vh; background-color: var(--bg-color); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease; z-index: 1000; }
    .nav-links.active { right: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    .text-center-layout, .form-container, .service-content-wrapper { padding: 2.5rem 1.5rem; }
    .image-wrapper { width: 100%; max-width: 350px; margin-bottom: 2rem; }
}
@media (max-width: 768px) {
    .page-padding { padding: 2rem; }
    .error-code { font-size: 4rem; } 
    .error-title { font-size: 1.8rem; } 
    .error-container { padding: 3rem 2rem; }
    
    /* WhatsApp Button für Handys etwas anpassen */
    .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .whatsapp-icon { width: 28px; height: 28px; }
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 1.5rem; }
    .praxis-img { height: 200px; margin-bottom: 1.5rem; }
}
@media (max-width: 400px) {
    .subpage-hero h1 { font-size: 1.7rem; }
}