/* Renana Junge Osteopathie - Elegantes Design */

/* Lokale Fonts */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; src: url('../fonts/cormorant-garamond-400.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; src: url('../fonts/cormorant-garamond-600.ttf') format('truetype'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; src: url('../fonts/cormorant-garamond-400i.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300; src: url('../fonts/nunito-300.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; src: url('../fonts/nunito-400.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; src: url('../fonts/nunito-600.ttf') format('truetype'); }

:root {
    --primary: #3d5a4c;
    --primary-light: #5a7d6a;
    --secondary: #c9a86c;
    --secondary-light: #e8d4b0;
    --text: #2c3e35;
    --text-light: #5a6b62;
    --bg: #fdfcfa;
    --bg-warm: #f7f4ef;
    --bg-card: #ffffff;
    --shadow: 0 4px 20px rgba(61, 90, 76, 0.08);
    --shadow-hover: 0 8px 30px rgba(61, 90, 76, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Verhindert horizontales Scrollen */
}

/* Verhindert Overflow durch lange Wörter */
body {
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 300;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ Header ============ */
header {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(61, 90, 76, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
    background: var(--bg-warm);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Hamburger Icon - 3 Linien */
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle span:nth-child(1) {
    top: 14px;
}

.menu-toggle span:nth-child(2) {
    top: 23px;
}

.menu-toggle span:nth-child(3) {
    top: 32px;
}

/* Animation wenn Menü offen */
.menu-toggle.active span:nth-child(1) {
    top: 23px;
    transform: translateX(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    top: 23px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ============ Hero Section ============ */
.hero {
    background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-card);
    box-shadow: var(--shadow-hover);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: slideUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto 2rem;
    animation: slideUp 0.8s ease 0.1s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease 0.2s both;
}

.hero-cta:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============ Page Hero (Unterseiten) ============ */
.page-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============ Main Content ============ */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

p {
    margin-bottom: 1.2rem;
}

ul, ol {
    margin: 1rem 0 1.5rem 1.2rem;
}

li {
    margin-bottom: 0.7rem;
    position: relative;
}

ul li::marker {
    color: var(--secondary);
}

/* ============ Text-Bild Kombinationen ============ */
.text-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 2.5rem 0;
}

.text-with-image.reverse {
    direction: rtl;
}

.text-with-image.reverse > * {
    direction: ltr;
}

.text-with-image .text-content {
    /* Text-Seite */
}

.text-with-image .image-content {
    /* Bild-Seite */
}

.text-with-image .image-content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

/* Einzelnes Bild im Content */
.content-image {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image.float-right {
    float: right;
    width: 45%;
    margin: 0 0 1.5rem 2rem;
}

.content-image.float-left {
    float: left;
    width: 45%;
    margin: 0 2rem 1.5rem 0;
}

/* Clearfix */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* Bild-Reihe (2-3 Bilder nebeneinander) */
.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-row img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============ Cards ============ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 0;
}

/* ============ Info Box ============ */
.info-box {
    background: var(--bg-warm);
    border-radius: var(--radius);
    padding: 1.8rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
}

/* ============ Highlight Box ============ */
.highlight-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.highlight-box h3 {
    color: var(--secondary-light);
    margin-top: 0;
}

.highlight-box a {
    color: var(--secondary-light);
}

.highlight-box a:hover {
    color: white;
}

/* ============ Features Grid ============ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

a.feature {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--secondary);
}

.feature h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--primary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* ============ Contact Info ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-card h4 {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0;
    font-size: 1.05rem;
}

.contact-card a {
    font-weight: 600;
}

/* ============ Contact Form ============ */
.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group .required {
    color: var(--secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--bg-warm);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px; /* Verhindert iOS Zoom bei Focus */
    transition: border-color 0.3s ease;
    background: var(--bg);
    -webkit-appearance: none; /* Entfernt iOS Styling */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 0.1rem;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
    cursor: pointer;
}

/* Mobile: Größerer Touch-Target für Checkbox */
@media (max-width: 768px) {
    .checkbox-group {
        gap: 1rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .submit-btn {
        width: 100%;
        padding: 1.1rem 2rem;
    }
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-success p {
    margin: 0;
}

.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-error p {
    margin: 0;
}

/* ============ Links List ============ */
.links-list {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.links-list li {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.links-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.links-list a {
    font-weight: 600;
    font-size: 1.05rem;
}

.links-list .description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* ============ Price Box ============ */
.price-box {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
    border: 2px solid var(--secondary-light);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 2rem 0;
}

.price-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary);
    font-weight: 600;
}

.price-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ============ Image Gallery ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Masonry-artiges Layout für unterschiedliche Bildformate */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
    margin: 2rem 0;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-masonry .gallery-item img {
    height: auto;
}

/* ============ Timeline ============ */
.timeline {
    position: relative;
    padding-left: 30px;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(61, 90, 76, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.timeline-year {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

/* ============ Footer ============ */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--secondary-light);
    font-size: 0.95rem;
}

footer a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet: Navigation wird kompakter */
@media (max-width: 1000px) {
    nav a {
        padding: 0.4rem 0.7rem;
        font-size: 0.9rem;
    }
}

/* Mobile: Hamburger-Menü */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        position: relative;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem 2rem;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-hover);
        border-top: 1px solid rgba(61, 90, 76, 0.1);
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav a {
        padding: 1rem 1.2rem;
        display: block;
        border-radius: var(--radius-sm);
        font-size: 1.05rem;
    }

    nav a:hover,
    nav a:active {
        background: var(--bg-warm);
    }

    .text-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .text-with-image.reverse {
        direction: ltr;
    }

    .text-with-image .text-content {
        order: 1;
    }

    .text-with-image .image-content {
        order: 2;
    }

    .gallery-masonry {
        column-count: 2;
    }
}

/* Bereits in @media (max-width: 768px) oben enthalten - hier weitere Anpassungen */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    main {
        padding: 2.5rem 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-image.float-right,
    .content-image.float-left {
        float: none;
        width: 100%;
        margin: 1.5rem 0;
    }

    .image-row {
        grid-template-columns: 1fr;
    }

    /* Checkbox Touch-Target */
    .checkbox-group {
        gap: 1rem;
    }

    .checkbox-group input[type="checkbox"] {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .submit-btn {
        width: 100%;
        padding: 1.1rem 2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .page-hero {
        padding: 2.5rem 1rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    main {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.5rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        column-count: 1;
    }

    .price {
        font-size: 2.2rem;
    }

    .price-box {
        padding: 2rem 1.5rem;
    }

    /* Footer auf Mobile */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        padding: 0.5rem;
    }
}

/* Sehr kleine Screens (iPhone SE, alte Android) */
@media (max-width: 350px) {
    .nav-container {
        padding: 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .menu-toggle span {
        width: 18px;
    }

    .menu-toggle span:nth-child(1) { top: 12px; }
    .menu-toggle span:nth-child(2) { top: 20px; }
    .menu-toggle span:nth-child(3) { top: 28px; }

    .menu-toggle.active span:nth-child(1),
    .menu-toggle.active span:nth-child(3) {
        top: 20px;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .highlight-box,
    .info-box {
        padding: 1.2rem;
    }
}
