/* ==========================================================================
   G4-Dimension – Neues Website-Design auf Basis des alten 1blu-Exports
   Farben/Typografie orientieren sich am Original:
   Schwarz, Grün (#39d472), Hellgrau (#e8e8e8), Kontaktgrau (#ededed)
   ========================================================================== */

:root {
    --black: #000000;
    --green: #39d472;
    --green-dark: #20c05d;
    --green-text: #159e00;
    --gray-bg: #e8e8e8;
    --contact-bg: #ededed;
    --ink: #030303;
    --body-text: #383838;
    --muted: #6b6b6b;
    --label: #949494;
    --white: #ffffff;

    --max-width: 1200px;
    --header-height: 112px;

    --font-title: 'ABeeZee', Arial, sans-serif;
    --font-heading: 'Roboto', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--body-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--green-text);
}

a:hover {
    color: var(--green-dark);
}

::selection {
    background: var(--green);
    color: var(--black);
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

.container {
    width: min(100% - 48px, var(--max-width));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1100;
    padding: 12px 18px;
    background: var(--green);
    color: var(--black);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 6px 6px;
}

.skip-link:focus {
    top: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--black);
    color: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: var(--header-height);
}

.logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 267px;
    height: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 20px 10px;
    border-bottom: 3px solid transparent;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-bottom-color: var(--green);
    color: var(--green);
}

.main-nav a.is-active {
    border-bottom-color: var(--green);
    color: var(--green-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 299px;
    height: 71px;
    padding: 0 34px;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: transparent;
    color: var(--black);
}

.btn--submit {
    min-width: 180px;
    height: 52px;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Hero / Startseite
   -------------------------------------------------------------------------- */

.hero-band {
    height: 347px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
        url("../img/hero-home.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-band--team {
    height: 380px;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
        url("../img/hero-team.jpg");
}

.hero-content {
    padding: 64px 24px 100px;
    text-align: center;
}

.page-title {
    margin: 0 0 26px;
    color: var(--green);
    font-family: var(--font-title);
    font-size: 31px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 1100px;
    margin: 0 auto 48px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-align: center;
    text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */

.section {
    position: relative;
}

.section--gray {
    background: var(--gray-bg);
}

.section--contact {
    background: var(--contact-bg);
}

.section-content {
    padding-top: 56px;
    padding-bottom: 100px;
}

.section-title {
    margin: 0 0 52px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.section-title--center {
    text-align: center;
}

/* Drei-Spalten-Raster (Lösungen / Beispiele) */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
}

.service-card {
    min-width: 0;
}

.service-number,
.kicker {
    margin: 0 0 10px;
    color: var(--green-text);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 36px;
}

.kicker {
    margin-bottom: 6px;
}

.service-card h3 {
    margin: 0 0 16px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.service-card p {
    margin: 0 0 18px;
    color: var(--body-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 28px;
}

.service-subtitle {
    margin: 28px 0 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Wer sind wir?
   -------------------------------------------------------------------------- */

.about {
    padding-top: 56px;
    padding-bottom: 100px;
}

.about-block {
    margin-bottom: 44px;
}

.about-block:last-of-type {
    margin-bottom: 0;
}

.section-label {
    margin: 0 0 14px;
    color: var(--label);
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 3px;
}

.about-block p {
    margin: 0 0 18px;
    color: var(--black);
    font-size: 16px;
    line-height: 28px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

.partner {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
}

.partner img {
    width: 282px;
    height: auto;
}

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact {
    padding-top: 56px;
    padding-bottom: 100px;
}

.contact-lead {
    max-width: 920px;
    margin: 0 auto 42px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) 258px;
    justify-content: space-between;
    gap: 60px;
    align-items: start;
}

.contact-form {
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
    margin-bottom: 18px;
}

.form-row > label {
    padding-top: 10px;
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

.req {
    color: var(--green-text);
}

.form-field {
    min-width: 0;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background: var(--white);
    color: #222222;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus {
    border-color: var(--green-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(57, 212, 114, 0.22);
}

.textarea {
    min-height: 135px;
    resize: vertical;
}

.form-row--actions {
    margin-top: 6px;
}

.form-note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.privacy-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.privacy-note a {
    color: var(--green-text);
    font-weight: 600;
}

.field-error {
    margin: 6px 0 0;
    color: #a31f1f;
    font-size: 13px;
    line-height: 1.4;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    margin: 0 0 30px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.form-status ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-status--success {
    border-color: var(--green);
    background: #e7f8ed;
    color: #146c36;
}

.form-status--error {
    border-color: #e0a5a5;
    background: #fdeeee;
    color: #7a1f1f;
}

.contact-address {
    padding-top: 4px;
}

.contact-address h3 {
    margin: 0 0 8px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.contact-address h3:not(:first-child) {
    margin-top: 26px;
}

.contact-address address,
.contact-address p {
    margin: 0;
    color: var(--black);
    font-size: 16px;
    font-style: normal;
    line-height: 28px;
}

.contact-address a {
    color: var(--black);
    text-decoration: underline;
}

.contact-address a:hover {
    text-decoration: none;
}

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

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    min-height: 74px;
}

.footer-copy {
    margin: 0;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 19px;
}

.footer-copy a {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
}

.footer-copy a:hover {
    text-decoration: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    line-height: 19px;
    text-decoration: underline;
}

.footer-links a:hover {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Rechtliche Seiten
   -------------------------------------------------------------------------- */

.legal {
    padding: 56px 0 100px;
}

.legal-inner {
    max-width: 900px;
}

.legal h1 {
    margin: 0 0 28px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.legal h2 {
    margin: 34px 0 10px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.legal p,
.legal li {
    color: var(--body-text);
    font-size: 16px;
    line-height: 28px;
}

.legal p {
    margin: 0 0 16px;
}

.legal ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal a {
    color: var(--green-text);
}

.legal code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #333333;
    font-size: 0.9em;
}

.notice {
    margin: 0 0 34px;
    padding: 16px 20px;
    border-left: 4px solid #f0b429;
    background: #fff8e1;
    color: #5b4700;
    font-size: 14.5px;
    line-height: 1.6;
}

.legal-meta {
    margin-top: 40px;
    color: var(--muted);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .header-inner {
        gap: 20px;
    }

    .logo img {
        width: 230px;
    }

    .main-nav ul {
        gap: 14px;
    }

    .main-nav a {
        padding-inline: 6px;
    }

    .grid-3 {
        gap: 44px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    :root {
        --header-height: 88px;
    }

    .logo img {
        width: 210px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 8px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        background: var(--black);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .main-nav a.is-active {
        border-bottom-color: var(--green);
    }

    .hero-band {
        height: 280px;
    }

    .hero-band--team {
        height: 300px;
    }

    .hero-content {
        padding: 48px 24px 72px;
    }

    .page-title {
        font-size: 26px;
    }

    .section-content {
        padding-top: 44px;
        padding-bottom: 72px;
    }

    .section-title {
        margin-bottom: 38px;
        font-size: 27px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about {
        padding-top: 44px;
        padding-bottom: 72px;
    }

    .section-label {
        font-size: 26px;
    }

    .partner {
        justify-content: flex-start;
    }

    .contact {
        padding-top: 44px;
        padding-bottom: 72px;
    }

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

    .contact-lead {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-bottom: 20px;
    }

    .form-row > label {
        padding-top: 0;
        text-align: left;
    }

    .legal {
        padding: 44px 0 72px;
    }

    .legal h1 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
    }

    .logo img {
        width: 185px;
    }

    .hero-band {
        height: 220px;
    }

    .hero-band--team {
        height: 240px;
    }

    .hero-content {
        padding: 40px 0 60px;
    }

    .page-title {
        font-size: 21px;
        letter-spacing: 1.3px;
    }

    .hero-subtitle {
        font-size: clamp(1.85rem, 7.5vw, 2.6rem);
        margin-bottom: 36px;
    }

    .hero .btn {
        width: 100%;
        min-width: 0;
        height: 62px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-label {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .contact-lead {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .partner img {
        width: 230px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
    }

    .footer-links {
        gap: 22px;
    }

    .footer-copy,
    .footer-links a {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .btn,
    .contact-form {
        display: none !important;
    }

    body {
        color: #000000;
        background: #ffffff;
    }

    .hero-band {
        display: none;
    }

    .section-content,
    .about,
    .contact,
    .legal {
        padding: 12px 0;
    }
}
