* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: var(--color-black);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-light-semi);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 5px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--color-primary);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 55px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    padding-top: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: bold;
    transition: all 0.5s;
    padding: 8px 16px;
    font-size: 1.1rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:active {
    color: var(--color-secondary);
    background: var(--color-primary-faint);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--color-light-semi);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Sections */
section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

section:not(.hero) {
    padding-top: 70px;
}

/* Optionales Hintergrundbild für alle Sections */
section::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: var(--bg-image, none);
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    color: var(--color-dark);
}

.section-title::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg) scaleX(0.6);
    font-size: 3rem;
    color: var(--color-dark);
    transition: all 0.5s;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-arrow:hover,
.scroll-arrow:active {
    color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.5) 0%, rgba(110, 110, 110, 0.3) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    color: var(--color-light);
    padding: 0 20px;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Permanent Marker';
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    line-height: 1.2;
    opacity: 1;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Grid Large */
.grid-large {
    background: var(--color-light-cover);
    padding: 100px 20px;
    flex-direction: column;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.grid-tile {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.grid-tile:hover,
.grid-tile:active {
    transform: scale(1.05);
    box-shadow: 0 20px 50px var(--color-primary-semi);
}

.tile-icon {
    font-size: 4rem;  
    margin-bottom: 20px;
}

.tile-icon img {
    width: 80px;
    height: 80px;
}

.grid-tile h3 {
    color: var(--color-light);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Content */
.content {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.content-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.5) 0%, rgba(110, 110, 110, 0.3) 100%);
}

.content-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container {
    width: 100%;
    z-index: 1;
}

.content-box {
    background: var(--color-light-semi);
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.content-box h3 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    position: relative;
}

.content-box h3::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Textboxausrichtungen */
/* Linksbündig */
.content[data-align="left"] .content-container {
    max-width: 700px;
    margin-left: 0;
    margin-right: auto;
}

.content[data-align="left"] .content-box {
    text-align: left;
}

.content[data-align="left"] .content-box h3::after {
    left: 0;
    transform: none;
}

/* Zentriert */
.content[data-align="center"] .content-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content[data-align="center"] .content-box {
    text-align: center;
}

/* Rechtsbündig */
.content[data-align="right"] .content-container {
    max-width: 700px;
    margin-left: auto;
    margin-right: 0;
}

.content[data-align="right"] .content-box {
    text-align: right;
}

.content[data-align="right"] .content-box h3::after {
    left: auto;
    right: 0;
    transform: none;
}   


/* Grid Small */
.grid-small {
    background: var(--color-light-cover);
    padding: 100px 20px;
    flex-direction: column;
}

.grid-container-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.grid-item-small {
    background: linear-gradient(135deg, var(--color-medium) 0%, var(--color-dark) 100%);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.grid-item-small:hover,
.grid-item-small:active {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.grid-item-small h3 {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: opacity 0.3s;
    position: relative;
    z-index: 2;
}

.grid-item-small p {
    color: var(--color-light);
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s;
    position: relative;
    z-index: 2;
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .grid-item-small:hover .item-image {
        opacity: 1;
    }
    .grid-item-small:hover h3,
    .grid-item-small:hover p {
        opacity: 0;
    }
}

.grid-item-small.show-image .item-image {
    opacity: 1;
}

.grid-item-small.show-image h3,
.grid-item-small.show-image p {
    opacity: 0;
}

/* Testimonials */
.testimonials {
    background: var(--color-medium-cover);
    padding: 100px 20px;
    flex-direction: column;
}

.testimonials .section-title {
     color: var(--color-light);
}

.testimonials-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.testimonial {
    background: var(--color-light);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-primary);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-primary-semi);
    font-family: Georgia, serif;
}

.testimonial .quote {
    font-style: italic;
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial .author {
    color: var(--color-dark);
    font-weight: bold;
    text-align: right;
}

.testimonial .role {
    color: var(--color-medium);
    font-size: 0.9rem;
    text-align: right;
}

/* Blog */
.blog {
    background: var(--color-light-cover);
    padding: 100px 20px;
    flex-direction: column;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.blog-card {
    background: var(--color-light);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.blog-card:hover,
.blog-card:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.blog-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 30px;
    color: var(--color-light);
}

.blog-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-header .date {
    opacity: 0.9;
    font-size: 0.9rem;
}

.blog-preview {
    padding: 30px;
    color: var(--color-medium);
    line-height: 1.8;
}

/* Contact */
.contact {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.contact-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.85) 0%, rgba(110, 110, 110, 0.7) 100%);
}

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact .section-title {
    font-size: 2.5rem;
    color: var(--color-light);
}

.contact-container {
    max-width: 700px;
    width: 100%;
    z-index: 1;
}

.contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact input,
.contact textarea {
    padding: 18px;
    border: none;
    font-size: 1rem;
    background: var(--color-light-faint);
    color: var(--color-dark);
    border: 2px solid var(--color-light-semi);
    transition: all 0.3s;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-light-faint);
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: var(--color-medium);
}

.contact button {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 18px 45px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.contact button:hover,
.contact button:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-primary-semi);
}

/* Footer */
footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 40px 20px;
    text-align: center;
}

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

.footer-links {
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer-links a:hover,
.footer-links a:active {
    color: var(--color-light);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-copyright {
    color: var(--color-light);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Overlays */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: var(--color-light);
    padding: 50px;
    width: 60%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.overlay-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

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

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-medium);
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: var(--color-light-cover);
}

.close-btn:hover,
.close-btn:active {
    color: var(--color-secondary);
    background: var(--color-primary-faint);
}

.overlay-content h2 {
    color: var(--color-dark);
    margin-bottom: 20px;
    font-size: 2rem;
}

.overlay-content p {
    color: var(--color-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Calculator */
.calculator-wrapper {
    background: var(--color-light);
    padding: 30px;
    margin-top: 30px;
    display: none;
}

.calculator-wrapper.active {
    display: block;
}

.calculator-wrapper h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.calc-section {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-light);
}

.calc-section:last-of-type {
    border-bottom: none;
}

.calc-section h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.calc-input-group {
    margin-bottom: 15px;
}

.calc-input-group label {
    display: block;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.calc-input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--color-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.calc-input-group small {
    display: block;
    color: var(--color-medium);
    font-size: 0.85rem;
    margin-top: 5px;
}

.large-figure-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--color-dark-faint);
}

.large-figure-item button {
    padding: 10px;
    background: #dc3545;
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.large-figure-item button:hover {
    background: #c82333;
}

.add-large-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.add-large-btn:hover {
    background: var(--color-secondary);
}

.calc-summary {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 25px;
    margin-top: 20px;
}

.calc-summary h4 {
    color: var(--color-light);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--color-light);
}

.calc-line strong {
    color: var(--color-light);
}

.calc-total {
    border-top: 2px solid var(--color-primary);
    margin-top: 15px;
    padding-top: 15px;
    padding-bottom: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.calc-total .amount {
    color: var(--color-primary);
    font-size: 1.5rem;
}

#pricePerFigure {
    display: block;
    margin-top: 0px;
    color: var(--color-light);
    opacity: 0.7;
    text-align: right;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .grid-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .grid-container-small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .testimonials-container { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .overlay-content { width: 90%; padding: 30px; }
    .content-box { padding: 30px; }
    .large-figure-item { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-links { flex-direction: column; gap: 15px; }
}
/* ── GRAV Form Plugin Overrides (Kontaktbereich) ─────────────────────────── */

/* Wrapper und Labels verstecken – wir nutzen Platzhalter */
.contact .form-wrapper {
    width: 100%;
}

.contact .form-field {
    margin-bottom: 20px;
}

.contact label {
    display: none;
}

/* Felder */
.contact input,
.contact textarea {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-light-faint);
    color: var(--color-dark);
    border: 2px solid var(--color-light-semi);
    transition: all 0.3s;
    box-sizing: border-box;
    resize: none;
    overflow-y: auto;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-light-faint);
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: var(--color-medium);
}

/* Submit-Button */
.contact .buttons {
    margin-top: 0;
}

.contact .button {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 18px 45px;
    border: none;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.contact .button:hover,
.contact .button:active {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-primary-semi);
}

/* Erfolgsmeldung */
.contact .notices {
    padding: 18px;
    margin-bottom: 20px;
    background: var(--color-primary-faint);
    border: 2px solid var(--color-primary);
    color: var(--color-white);
}

.contact .notices p {
    margin: 0;
    color: var(--color-white);
    font-size: 1rem;
}

/* Fehlermeldungen */
.contact .notices.error {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
}
