/* ------------------- */
/* Custom Properties   */
/* ------------------- */

:root {
    --clr-primary: #2c3e50; /* Dunkles Anthrazit/Blau */
    --clr-accent: #3498db;  /* Akzentblau */
    --clr-light: #f8f9fa;   /* Sehr helles Grau */
    --clr-white: #ffffff;
    --clr-dark: #333333;    /* Dunkler Text */
    --clr-grey: #777777;    /* Hellerer Text */

    --ff-primary: 'Poppins', sans-serif;

    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 600;

    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

@media (min-width: 768px) {
    :root {
        --fs-h1: 3.5rem;
        --fs-h2: 2.5rem;
    }
}

/* ------------------- */
/* Reset               */
/* ------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1, h2, h3, p, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ------------------- */
/* Allgemeine Stile    */
/* ------------------- */

body {
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    color: var(--clr-dark);
    background-color: var(--clr-white);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--clr-primary);
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

.content-section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--clr-light);
    padding: 4rem 0;
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */

.site-header {
    background-color: var(--clr-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    color: var(--clr-primary);
    text-decoration: none;
}

.primary-navigation .nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.primary-navigation a {
    text-decoration: none;
    color: var(--clr-primary);
    font-weight: var(--fw-medium);
    transition: color 0.3s ease;
}

.primary-navigation a:hover {
    color: var(--clr-accent);
}

.btn {
    padding: 0.6em 1.5em;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--fw-medium);
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* Hamburger Menu */
.mobile-nav-toggle {
    display: none;
    position: absolute;
    z-index: 9999;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    width: 2rem;
    aspect-ratio: 1;
    top: 1.5rem;
    right: 5%;
    border: 0;
    cursor: pointer;
}

.mobile-nav-toggle[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ps-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
    .primary-navigation {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        background: hsla(0, 0%, 100%, 0.9);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .primary-navigation[data-visible="true"] {
        transform: translateX(0%);
    }

    .primary-navigation .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-nav-toggle {
        display: block;
    }
}

/* ------------------- */
/* Page Sections       */
/* ------------------- */

.hero {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    color: var(--clr-white);
    font-weight: var(--fw-light);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: var(--fs-h2);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    margin-bottom: 1rem;
}

#ueber-uns p, #kontakt p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
}

/* Neue Kontaktformular Stile */
#contact-form-container {
    max-width: 750px;
    margin: 4rem auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-title {
    color: var(--clr-primary);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: 1rem;
}

.form-subtitle {
    text-align: center;
    color: var(--clr-grey);
    margin-bottom: 3rem;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
    width: 100%;
    background: #f5f5f5;
    border: 2px solid #e8e8e8;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--ff-primary);
    font-size: 1rem;
    color: var(--clr-dark);
    transition: border-color 0.3s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--clr-grey);
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus {
    outline: none;
    border-color: var(--clr-accent);
}

.name-fields,
.address-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none; /* Der Button hat bereits einen Border-Style von .btn-primary */
}

/* Statusmeldungen für Formular */
.form-status {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: var(--fw-medium);
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .name-fields,
    .address-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Honeypot Anti-Spam */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ------------------- */
/* Footer              */
/* ------------------- */

.site-footer {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--clr-accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.visitor-counter {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Custom Toast Notification */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--clr-white);
    color: var(--clr-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}

.toast-notification .logo-container {
    flex-shrink: 0;
}

.toast-notification .logo-container img {
    height: 60px;
}

.toast-notification .message {
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
}