/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c5d7f;
    --accent-color: #4a7fa0;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(44,93,127,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(44,93,127,0.08);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--secondary-color);
    background-color: rgba(44,93,127,0.05);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #2c5d7f 0%, #1a4a6d 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 C300,80 600,40 900,60 L1200,80 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.hero-features .icon {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

/* Intro Section */
.intro {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.intro p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Bestattungsarten Section */
.bestattungsarten {
    padding: 5rem 0;
    background-color: var(--white);
}

.bestattungsarten h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.featured-card {
    border: 2px solid var(--secondary-color);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.leistungen {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

.leistungen li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

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

.highlight {
    background-color: #e8f3f8;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    margin: 1rem 0;
    font-weight: 500;
}

.card-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    margin-top: auto;
}

.card-button:hover {
    background-color: var(--accent-color);
    transform: translateX(5px);
}

/* Weitere Bestattungsarten Section */
.weitere-bestattungsarten {
    padding: 3rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.weitere-bestattungsarten h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.section-intro-small {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.weitere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.weitere-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.weitere-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.weitere-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.weitere-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.weitere-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.text-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
    display: inline-block;
}

/* Preise Section */
.preise {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.preise h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.preistabelle {
    max-width: 1000px;
    margin: 3rem auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: var(--secondary-color);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    font-weight: 700;
    font-size: 1.125rem;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--light-bg);
}

.highlight-row {
    background-color: #e8f3f8;
    font-weight: 600;
}

.highlight-row td {
    color: var(--primary-color);
}

.preise-hinweis {
    max-width: 800px;
    margin: 3rem auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

.preise-hinweis h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Urne an Angehörige Section */
.urne-angehoerige {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.urne-angehoerige h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.urne-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.urne-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.urne-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.urne-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.urne-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.urne-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.urne-card p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.urne-image {
    position: sticky;
    top: 100px;
}

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

.urne-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .urne-content {
        grid-template-columns: 1fr;
    }
    
    .urne-cards {
        grid-template-columns: 1fr;
    }
    
    .urne-image {
        position: relative;
        top: 0;
    }
}

/* Ordnungsamt Section */
.ordnungsamt {
    padding: 5rem 0;
    background-color: var(--white);
}

.ordnungsamt h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.ordnungsamt-content {
    max-width: 900px;
    margin: 0 auto;
}

.ordnungsamt-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.ordnungsamt-liste {
    list-style: none;
    padding-left: 0;
}

.ordnungsamt-liste li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ordnungsamt-liste li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.highlight-box {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--secondary-color);
    margin: 2rem 0;
    font-size: 1.125rem;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.why-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

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

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Keywords Section */
.keywords-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.keywords-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.keywords-content {
    max-width: 900px;
    margin: 0 auto;
}

.keywords-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--secondary-color);
}

.faq-list {
    list-style: none;
    padding-left: 0;
}

.faq-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background-color: var(--light-bg);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Kontakt Section */
.kontakt {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.kontakt h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.kontakt-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.kontakt-hinweis {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

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

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

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

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-keywords {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        width: 100%;
    }
    
    .weitere-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

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

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

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

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

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

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    .section-intro,
    .intro p,
    .kontakt-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Impressum Page Styles */
.impressum-page {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.impressum-page h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.impressum-content h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.impressum-section {
    margin-bottom: 2.5rem;
}

.impressum-section h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.impressum-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.impressum-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.impressum-section a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .impressum-content {
        padding: 2rem 1.5rem;
    }
    
    .impressum-page h1 {
        font-size: 2rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-text h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cookie-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cookie-accept {
    background-color: var(--white);
    color: var(--secondary-color);
}

.cookie-accept:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cookie-details {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-details:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-text h4 {
        font-size: 1.1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
}
