@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face {
    font-family: "GT Flexa";
    src: url("../media/fonts/GT-Flexa-Standard-Light.woff2") format("woff2"),
         url("../media/fonts/GT-Flexa-Standard-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GT Flexa";
    src: url("../media/fonts/GT-Flexa-Standard-Medium.woff2") format("woff2"),
         url("../media/fonts/GT-Flexa-Standard-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-brightgreen: #6DCE86;
    --color-dark: #053436;
    --color-bg: #00555A;
    --color-section-light: #9DD4D3;
    --color-section-mid: #0097A2;
    --color-teaser: #FFFFFF;
    --color-accent: #FF4B1E;
    --color-text: #FFFFFF;
    --color-muted: rgba(244, 251, 252, 0.8);
    --color-card: rgba(6, 26, 29, 0.3);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.25);
    --content-width: min(1200px, 90vw);

    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    margin: 0;
    font-family: "GT Flexa", "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    hyphens: auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

a {
    color: inherit;
    text-decoration: underline;
}

.hidden {
    display: none;
}

header,
footer {
    width: var(--content-width);
    margin-inline: auto;
}

main {
    width: 100%;
}

header {
    text-align: left;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

header img {
    width: min(220px, 70vw);
    display: block;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

header h2 {
    padding-top: 4rem;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-top: 6rem;
    color: var(--color-section-light)
}

h3 {
    font-size: clamp(1rem, 2vw, 1.5rem);
}

p {
    margin: 0 0 1rem;
    color: var(--color-text);
}

ul {
    color: var(--color-muted);
    list-style-type: square;
}

.lead {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 2rem;
}

.lg {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 2rem;
    margin-bottom: 2rem;
}

.md {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 300;
    line-height: 1.75rem;
}

.sm {
    font-size: clamp(0.75rem, 1.25vw, 1rem);
    font-weight: 300;
    line-height: 1.5rem;
}

.sm-bold {
    font-size: clamp(0.75rem, 1.25vw, 1rem);
    font-weight: 600;
    line-height: 1.5rem;
}

.logo {
    width: 200px;
    height: auto;
}

.button,
.button-big,
.teaserbutton {
    font-size: clamp(0.75rem, 1.25vw, 1rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--color-accent);
    color: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(255, 75, 30, 0.3);
    cursor: pointer;
}

.button-big {
    font-size: clamp(0.8rem, 1.6vw, 1.2rem);
    margin-bottom: 6rem;
}

button:hover,
.button:hover,
.button-big:hover,
.teaserbutton:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(255, 75, 30, 0.4);
}

input:focus,
textarea:focus {
    outline: none;
}

.slider {
    position: relative;
    margin-top: 6rem;
    width: var(--content-width);
    margin-inline: auto;
    margin-bottom: 2rem;
}

.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-track {
    width: 100%;
}

.slider .section {
    position: relative;
    min-width: 100%;
    min-height: clamp(320px, 45vw, 520px);
    background-image: var(--slide-image);
    background-size: cover;
    background-position: center;
}

.slider .section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}

.slider .section-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: clamp(1.5rem, 5vw, 3rem);
    max-width: 840px;
    width: min(840px, calc(100% - 3rem));
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.slider .section h3 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.slider .section p {
    margin-bottom: 1.5rem;
    max-width: 80%;
    min-width: 60%;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--color-bg);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.slider-control.prev {
    left: 2rem;
}

.slider-control.next {
    right: 2rem;
}

.slider-control:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-50%);
}

.slider-control:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

main {
    padding-bottom: 4rem;
}

main section {
    padding-bottom: clamp(4rem, 8vw, 6rem);
    box-shadow: none;
}

main section > *:not(.button):not(.teaserbutton):not(.full-bleed) {
    width: var(--content-width);
    margin-inline: auto;
}

main section > .button,
main section > .teaserbutton {
    width: auto;
    margin-left: calc((100% - var(--content-width)) / 2);
    margin-right: auto;
}

main section:nth-of-type(odd) {
    background: var(--color-section-mid);
    color: var(--color-dark);
}

main section:nth-of-type(odd) p,
main section:nth-of-type(odd) ul {
    color: var(--color-dark);
}

main section:nth-of-type(even) {
    background: var(--color-section-light);
    color: var(--color-dark);
}

main section:nth-of-type(even) p,
main section:nth-of-type(even) ul {
    color: var(--color-dark);
}

main section > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.full-bleed {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

.mini-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: stretch;
}

.mini-tools .tool-link {
    flex: 1 1 clamp(220px, 30vw, 360px);
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--radius-md);
}

.mini-tools .tool-link .tool {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tool-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0, 85, 90, 0.2);
}

.tool-analysis {
    flex: 1 1 100%;
}

.sub-tools-grid {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sub-tools-grid .sub-tool {
    margin-top: 0;
    flex: 1 1 clamp(220px, 35vw, 360px);
    display: flex;
    flex-direction: column;
}

.sub-tools-grid .sub-tool .button {
    margin-top: auto;
}

.sub-tool-footer {
    margin-top: auto;
    display: inline-block;
}

.sub-tool-footer .button {
    flex: 1 1 auto;
    justify-content: center;
}

.tool,
.sub-tool {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tool {
    border: none;
}

.tool-teal {
    background: #0097A2;
}

.tool-cta {
    margin-top: auto;
    margin-right: auto;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.tool h3,
.sub-tool h4 {
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.tool ul li {
    color: #0097A2;
}

.tool p,
.sub-tool p,
.sub-tool ul {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.sub-tool ul {
    margin: 0 0 2rem;
    padding-left: 1rem;
    list-style: square;
}

.sub-tool ul li {
    color: #FFFFFF;
    position: relative;
    padding-left: 0rem;
    font-weight: 300;
}

.sub-tool ul li.plus {
    padding-left: 0rem;
    color: var(--color-section-light);
}

.sub-tool {
    margin-top: 1rem;
    background: #00555A;
}

.icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.batch {
    position: absolute;
    top: 1.5rem;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #00555A;
    padding: 0.4rem 0.6rem 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 11px 50%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
    transform: translateX(14px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.batch p {
    margin: 0;
}

.tool-link:hover .batch,
.tool-link:focus-visible .batch {
    transform: translateX(0);
    opacity: 1;
}

.batch + .batch {
    top: calc(1rem + 2rem);
}

.plus {
    list-style: none;
    padding-left: 1rem;
    position: relative;
}

.plus::before {
    content: "+";
    position: absolute;
    left: -1.2rem;
    font-weight: 600;
}

.box {
    margin-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.box-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.box-grid .box {
    flex: 1 1 320px;
    margin-top: 0;
}

.teaser-slider {
    width: 100%;
}

.teasers {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.teaser-dots {
    display: none;
}

.teaser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.teaser-dot.active {
    background: var(--color-accent);
}

.teaser {
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    min-width: 240px;
    max-width: 360px;
    padding: 0 2rem 2rem;
    border-radius: var(--radius-md);
    background: var(--color-teaser);
    color: #043522;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
}

.teaser .clientlogo {
    width: calc(100% + 3rem);
    height: 180px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    display: block;
    object-fit: contain;
    object-position: center;
    background-color: #FFFFFF;
}

.teaserlist {
    margin: 0;
    padding: 0;
}

.teaserrow {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.teaserrow dt {
    font-weight: 600;
    min-width: 80px;
    margin: 0;
}

.teaserrow dd {
    font-weight: 300;
    margin: 0;
    flex: 1;
}

.teaser-empty {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background-color: transparent;
    border: 3px dashed #FFFFFF;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0);
}

.teaser-empty > * {
    margin: 0;
}

.teaserbutton {
    margin-top: 2rem;
    margin-bottom: 1rem;
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 12px 20px rgba(6, 57, 37, 0.25);
}

.band {
    position: absolute;
    top: 2rem;
    right: -8.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
    padding: 0.5rem 0;
    background: #dcdcdc;;
    color: #00555A !important;
    text-transform: uppercase;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    margin: 0;
    text-align: center;
    line-height: 1.25rem;
}

.band-small {
    position: absolute;
    top: 1rem;
    right: -10.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
    padding: 0.5rem 0;
    background: var(--color-section-light);
    color: #00555A !important;
    text-transform: uppercase;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    margin: 0;
    text-align: center;
    line-height: 1.25rem;
}

.ansprechpartner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.35);
    text-align: left;
    gap: 2rem;
    color: #fff;
    font-weight: 300;
}

.ansprechpartner p {
    color: #fff;
}

.ansprechpartner img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    margin: 1rem auto;
}

.ansprechpartner a {
    display: inline-block;
    color: #fff;
}

footer {
    text-align: center;
    padding: 2rem 0 4rem;
}

.impressum {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 300;
}

/* Form-Popup */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  pointer-events: auto;
}

.popup-inner {
  background: #00555A;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.hidden {
  display: none;
}

input {
    color: #00555A;
    width: 100%;
    height: 2.5rem;
}

select {
    width: 100%;
    color: #00555A;
    height: 2.5rem;
}

textarea {
    color: #00555A;
    width: 100%;
    height: 5.1rem;
    resize: none;
}

input[type="date"] {
    -webkit-text-fill-color: #00555A;
    color: #00555A;
}

label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
}

.checkbox-grid label {
  flex: 1 1 120px;
  white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.form-field {
    flex: 1 1 160px;
}

.form-field-25 {
    flex: 0 0 25%;
    min-width: 40px;
}

.form-field-50 {
    flex: 0 0 50%;
    min-width: 80px;
}

.form-field label {
    margin-top: 0;
}

form > button {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    font-size: clamp(0.75rem, 1.25vw, 1rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--color-accent);
    color: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(255, 75, 30, 0.3);
    cursor: pointer;
}

form sup {
    color: var(--color-brightgreen);
}

.form-text-divider {
    color: var(--color-brightgreen);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Small Screens */

@media (max-width: 700px) {
    h2 {
        padding-top: 4rem;
    }
    h3 {
        font-size: clamp(1.5rem, 3vw, 2.25rem);
    }
    .button-big {
        margin-bottom: 2rem;
    }
    .slider-control {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
    .slider .section {
        min-height: 440px;
    }
    .teaser-empty {
        min-height: 480px;
    }
    .teaser-slider {
        overflow: hidden;
    }
    .teasers {
        flex-wrap: nowrap;
        gap: 1rem;
        margin-top: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .teasers::-webkit-scrollbar {
        display: none;
    }
    .teaser {
        flex: 0 0 100%;
        max-width: 100%;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0);
    }
    .teaser-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    .logo {
        width: 150px;
        height: auto;
    }
    .ansprechpartner {
        text-align: center;
    }
    .impressum {
        flex-direction: column;
        gap: 0.25rem;
    }
    .box-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .box {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    .ansprechpartner img {
        margin: 0rem auto;
    }
    .box ul li {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }
    .md {
        font-size: clamp(1rem, 2vw, 1.5rem);
        line-height: 1.5rem;
    }
    .lg {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        line-height: 1.5rem;
    }
}
