/* AIConsult.ch – Bildsprache der Handels-Signaletik */

:root {
    --signal: #8EDCCB;
    --black: #000000;
    --white: #FFFFFF;
    --grey: #EEF0F0;
    --muted: #4A5157;
    --rule: #C9CDCD;

    --font: "Archivo", "Arial Narrow", Arial, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}


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

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-underline-offset: 3px;
}

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

.on-black :focus-visible {
    outline-color: var(--signal);
}

/* Type: one family, width does the talking */
.display,
h1,
h2 {
    font-stretch: 62%;
    font-weight: 850;
    line-height: 0.92;
    letter-spacing: -0.005em;
    margin: 0;
}

h1 {
    font-size: clamp(3.4rem, 7.6vw, 7.4rem);
}

h2 {
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-stretch: 75%;
    font-weight: 750;
    font-size: 1.6rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1rem;
    max-width: 62ch;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.lead {
    font-size: 1.25rem;
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.95rem 1.5rem;
    border: 2px solid var(--black);
    border-radius: 0;
    font: 700 1.05rem/1.1 var(--font);
    text-decoration: none;
    cursor: pointer;
    background: var(--black);
    color: var(--white);
}

.btn:hover {
    background: var(--white);
    color: var(--black);
}

.btn-line {
    background: transparent;
    color: var(--black);
}

.btn-line:hover {
    background: var(--black);
    color: var(--white);
}

/* Navigation */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--black);
    color: var(--white);
}

.site-nav :focus-visible {
    outline-color: var(--signal);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1.5rem;
}

.site-nav img {
    width: 170px;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.site-nav ul a {
    text-decoration: none;
}

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

.site-nav .btn {
    padding: 0.55rem 1rem;
    background: var(--signal);
    border-color: var(--signal);
    color: var(--black);
}

.site-nav .btn:hover {
    background: var(--white);
    border-color: var(--white);
}

/* Hero: the promo sign */
.hero {
    background: var(--signal);
    overflow: hidden;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 1rem;
    padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-copy h1 {
    margin-bottom: 1.75rem;
}

.hero-copy .lead {
    color: var(--black);
    max-width: 34ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 0.75rem;
}

.hero-photo {
    position: relative;
    z-index: 1;
    align-self: end;
}

.hero-photo {
    /* the photo is cropped at the right shoulder: let it bleed to the viewport edge */
    margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter));
}

.hero-photo img {
    width: min(100%, 720px);
    margin-left: auto;
}

/* The free-check price tag */
.price-tag {
    position: relative;
    display: block;
    width: 170px;
    margin-left: 0.75rem;
    padding: 1rem 1rem 0.9rem 1.6rem;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 4px 14px 14px 4px;
    transform: rotate(-6deg);
    text-decoration: none;
    box-shadow: 6px 6px 0 var(--black);
}

.price-tag::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: var(--signal);
}

.price-tag span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
}

.price-tag strong {
    display: block;
    font-stretch: 62%;
    font-weight: 900;
    font-size: 3.4rem;
    line-height: 1;
    margin-top: 0.2rem;
}

.price-tag:hover {
    transform: rotate(-3deg);
}

.offer-band {
    background: var(--black);
    color: var(--white);
}

.offer-band .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.75rem;
    padding-block: 1.4rem;
}

.offer-band p {
    flex: 1 1 320px;
    margin: 0;
    max-width: none;
    font-size: 1.1rem;
}

.offer-band strong {
    color: var(--signal);
}

.price-tag--small {
    width: auto;
    padding: 0.45rem 0.9rem 0.4rem 1.6rem;
    transform: rotate(-5deg);
    box-shadow: 4px 4px 0 var(--signal);
}

.price-tag--small strong {
    color: var(--black);
    font-size: 2.4rem;
    margin: 0;
}

.band-btn {
    background: var(--signal);
    border-color: var(--signal);
    color: var(--black);
}

.band-btn:hover {
    background: var(--white);
    border-color: var(--white);
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-top: 2.5rem;
}

.why-grid > div {
    border-top: 6px solid var(--black);
    padding-top: 1.25rem;
}

.why-grid p {
    color: var(--muted);
}

.source {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Offers: price tags on black */
.offers {
    background: var(--black);
    color: var(--white);
}

.offers .lead {
    color: #C9CDCD;
}

.tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.25rem);
    margin-top: 3rem;
    align-items: start;
}

.tag {
    position: relative;
    background: var(--white);
    color: var(--black);
    border-radius: 6px;
    padding: 2.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tag::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--black);
}

.tag:nth-child(1) {
    transform: rotate(-1.2deg);
}

.tag:nth-child(2) {
    transform: rotate(0.8deg);
    background: var(--signal);
}

.tag:nth-child(3) {
    transform: rotate(-0.5deg);
}

.tag-kind {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.tag:nth-child(2) .tag-kind {
    color: var(--black);
}

.tag ul {
    margin: 0.5rem 0 1.5rem;
    padding-left: 1.1rem;
}

.tag li {
    margin-bottom: 0.3rem;
}

.tag-price {
    margin-top: auto;
    border-top: 2px solid var(--black);
    padding-top: 1rem;
}

.tag-price .amount {
    display: block;
    font-stretch: 62%;
    font-weight: 900;
    font-size: clamp(3.6rem, 6vw, 4.8rem);
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
}

.tag-price .amount small {
    font-size: 0.35em;
    font-weight: 700;
    vertical-align: top;
    margin-right: 0.15em;
}

.tag-price .unit {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0.4rem 0 1.25rem;
}

.tag:nth-child(2) .tag-price .unit {
    color: var(--black);
}

.tag .btn {
    width: 100%;
    text-align: center;
}

.offers-note {
    margin-top: 2.5rem;
    color: #C9CDCD;
}

.offers-note strong {
    color: var(--signal);
}

/* About */
.about .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border: 2px solid var(--black);
}

.quote {
    font-stretch: 62%;
    font-weight: 850;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    margin: 0 0 2rem;
    max-width: 20ch;
}

.facts {
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 0;
    border-top: 2px solid var(--black);
}

.facts dt,
.facts dd {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
}

.facts dt {
    font-weight: 700;
}

.facts dd {
    margin: 0;
    color: var(--muted);
}

/* Process */
.process {
    background: var(--grey);
}

.steps {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: block;
    font-stretch: 62%;
    font-weight: 900;
    font-size: 4.5rem;
    line-height: 0.85;
    margin-bottom: 0.75rem;
}

.steps p {
    color: var(--muted);
    margin: 0;
}

/* FAQ */
.faq-list {
    max-width: 860px;
    border-top: 2px solid var(--black);
    margin-top: 2rem;
}

.faq-list details {
    border-bottom: 1px solid var(--rule);
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 3rem 1.2rem 0;
    position: relative;
    font-weight: 700;
    font-size: 1.15rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 0.7rem;
    font-stretch: 62%;
    font-weight: 900;
    font-size: 2rem;
}

.faq-list details[open] summary::after {
    content: "–";
}

.faq-list details p {
    color: var(--muted);
    padding-bottom: 1.2rem;
    margin: 0;
}

/* Contact */
.contact {
    background: var(--signal);
    border-top: 2px solid var(--black);
}

.contact .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}

.contact-lines {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.8;
    margin-top: 1.5rem;
}

.contact-form {
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: 8px 8px 0 var(--black);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 2px solid var(--black);
    border-radius: 0;
    font: inherit;
    color: var(--black);
    background: var(--white);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.85rem 0 0;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.form-status {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 2px solid var(--black);
    font-size: 0.95rem;
}

.form-status[data-type="success"] {
    background: #DDF3E4;
}

.form-status[data-type="info"] {
    background: var(--grey);
}

.form-status[data-type="error"] {
    background: #FBE0DC;
}

.site-footer {
    background: var(--black);
    color: #C9CDCD;
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
}

.site-footer ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a {
    color: var(--white);
}

/* Responsive */
@media (max-width: 960px) {
    .tags {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .tag:nth-child(n) {
        transform: none;
    }
}

@media (max-width: 860px) {
    .hero .wrap,
    .about .wrap,
    .contact .wrap {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-bottom: 0;
    }

    .hero-photo {
        margin-right: calc(-1 * var(--gutter));
    }

    .hero-photo img {
        width: min(88%, 420px);
        margin-inline: auto 0;
    }


    .why-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 360px;
    }
}

@media (max-width: 640px) {
    .site-nav ul li:not(:last-child):not(:has(.lang-switch)) {
        display: none;
    }

    .site-nav img {
        width: 145px;
    }

    .price-tag {
        width: 140px;
    }

    .price-tag strong {
        font-size: 2.8rem;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .facts dt {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

/* Legal pages (Impressum, Datenschutz) */
.legal-page {
    max-width: 760px;
    padding-block: clamp(3rem, 7vw, 5rem);
}

.legal-page h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    hyphens: auto;
    overflow-wrap: break-word;
}

.legal-page h2 {
    font-size: 1.9rem;
    margin: 2.25rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
    color: var(--muted);
}

.legal-page ul {
    padding-left: 1.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Use cases by business area */
.usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
}

.usecases ul {
    margin: 0;
    padding-left: 1.1rem;
}

.usecases li {
    margin-bottom: 0.45rem;
    color: var(--muted);
}

@media (max-width: 960px) {
    .usecases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .usecases {
        grid-template-columns: 1fr;
    }
}

/* Customer benefits */
.benefits {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-top: 2px solid var(--black);
}

.benefits li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
}

.benefits strong {
    display: block;
    color: var(--black);
    font-stretch: 75%;
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.contact-person {
    color: var(--muted);
}

.contact-person strong {
    color: var(--black);
}

/* Language switch in the navigation */
.site-nav .lang-switch {
    border: 1px solid #5A6066;
    padding: 0.3rem 0.55rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.site-nav .lang-switch:hover {
    border-color: var(--signal);
    text-decoration: none;
}
