/* ==========================================================================
   Global Resets (Löscht die Browser-Standard-Designs)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, p {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

input, textarea {
    font-family: inherit;
}

/* ==========================================================================
   Deine CSS-Variablen & Basis-Setup
   ========================================================================== */
:root {
    --primary-blue: #1874CD;
    --off-white: #FFFAFA;

    --bg-page: var(--off-white);
    --bg-section-alt: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #1F2937;
    --text-secondary: #4B5563;
    --text-link: #2563EB;
    --border-subtle: #cbd5e1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
#blog-detail,
#service-detail {
    flex-grow: 1;
}

/* 🎨 Farb- und Utility-Klassen */
.text-primary-blue {
    color: var(--primary-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

.hover\:bg-primary-blue-dark:hover {
    background-color: #145999;
}

/* Header */
.header-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Navigation */
.nav-link {
    color: #4B5563;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: #2563EB;
}

.nav-link-mobile {
    display: block;
    padding: 0.5rem 1.5rem;
}

.nav-link-mobile:hover {
    background-color: #f3f4f6;
}

/* Buttons */
.nav-button {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4B5563;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button:hover {
    color: #2563EB;
}

.nav-button-mobile {
    margin-right: 1rem;
}

/* Headline */
.headline {
    font-weight: 800;
    color: #2563EB;
    line-height: 1.2;
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    .headline {
        font-size: 3.75rem;
    }
}

/* Subheadline */
.subheadline {
    margin-top: 1rem;
    color: #4B5563;
    font-size: 1.125rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .subheadline {
        margin-top: 1.5rem;
        font-size: 1.5rem;
    }
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    background-color: #2563EB;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #1D4ED8;
    transform: scale(1.05);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: #1F2937;
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

/* Section Intro Paragraph */
.section-intro {
    margin-top: 1rem;
    color: #4B5563;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.service-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.service-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1F2937;
}

.service-desc {
    margin-top: 0.5rem;
    color: #4B5563;
}

.service-button {
    margin-top: 1rem;
    display: inline-block;
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.service-button:hover {
    text-decoration: underline;
}

/* About Section */
.about-title {
    font-weight: 700;
    color: #1F2937;
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.25rem;
    }
}

.about-text {
    margin-top: 1rem;
    color: #4B5563;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: #f3f4f6;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.blog-title {
    font-weight: 700;
    color: #1F2937;
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    .blog-title {
        font-size: 2.25rem;
    }
}

.blog-intro {
    margin-top: 1rem;
    color: #4B5563;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Blog Grid */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .blog-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Blog Cards */
.blog-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.blog-card-image {
    width: 100%;
    height: 12rem;
    background-color: #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.blog-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.blog-card-desc {
    margin-top: 0.5rem;
    color: #4B5563;
}

.blog-card-button {
    margin-top: 1rem;
    display: inline-block;
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.blog-card-button:hover {
    text-decoration: underline;
}

.contact-form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background-color: #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background-color: white; 
    color: #1F2937; 
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input::placeholder {
    color: #9CA3AF; 
}

.form-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

.form-button {
    width: 100%;
    background-color: #007BFF;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background-color: #0056b3;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
}

/* Kontaktbereich */
#contact {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

#contact-title {
    color: #1e293b;
}

#contact-intro {
    color: #475569;
}

/* Formularbox */
#contact-form {
    background-color: #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

#contact-form input,
#contact-form textarea {
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease-in-out;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#form-submit {
    background-color: #2563eb;
    transition: all 0.25s ease;
}

#form-submit:hover {
    background-color: #1e40af;
    transform: scale(1.02);
}

#form-submit:active {
    transform: scale(0.97);
}

/* Kontaktinfo-Box */
#contact-info-title {
    color: #1e293b;
}

#contact .text-primary-blue {
    color: #2563eb;
}

#contact .bg-gray-100 {
    background-color: #f8fafc;
}

#contact .shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#contact a:hover {
    text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #1e1e1e;
  color: #fff;
  padding: 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 0.875rem;
}
.cookie-banner a {
  color: #90cdf4;
  text-decoration: underline;
}
.cookie-banner button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.25rem;
}

/* ==========================================================================
   Tailwind Utility CSS (Ersetzt das schwere externe Skript)
   ========================================================================== */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.text-gray-800 { color: #1F2937; }
.text-gray-600 { color: #4B5563; }
.bg-white { background-color: #ffffff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1F2937; }
.text-white { color: #ffffff; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.whitespace-pre-line { white-space: pre-line; }

.relative { position: relative; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-grow { flex-grow: 1; }

.grid { display: grid; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.w-full { width: 100%; }
.h-56 { height: 14rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.max-w-xl { max-width: 36rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-40 { padding-top: 10rem; padding-bottom: 10rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.rounded-xl { border-radius: 0.75rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.transition-all { transition-property: all; transition-timing-function: ease; }
.duration-300 { transition-duration: 300ms; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.hover\:underline:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:flex-row { flex-direction: row; }
    /* FIX FÜR DIE 3 SPALTEN: */
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-1\/2 { width: 50%; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:py-56 { padding-top: 14rem; padding-bottom: 14rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}