/* ------------------------------------------------------------------ *\
   Fonts
\* ------------------------------------------------------------------ */

@font-face {
    font-family: "Nunito";
    font-style: normal;
    font-display: swap;
    src: url("nunito-v32-latin-800.woff2") format("woff2");
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ------------------------------------------------------------------ *\
   Design-Tokens
\* ------------------------------------------------------------------ */

:root {
    --gruen: #787d14;
    --beige: #ede9d8;
    --blau: #17008f;
    --hellblau: #e2eaf6;
    --copy: 1rem;
    --h1: 4rem;
    --h2: 2.5rem;
    --h3: 1.5rem;
    --paddingbutton: 0.2rem 1rem;
}

/* ------------------------------------------------------------------ *\
   Styles
\* ------------------------------------------------------------------ */

/* ### - A - ### */
/* ### - B - ### */

.bg-gruen {
    background-color: var(--gruen);
    color: var(--beige);
}

.bg-beige {
    background-color: var(--beige);
    color: var(--gruen);
}

.bg-blau {
    background-color: var(--blau);
    color: var(--hellblau);
}

.bg-hellblau {
    background-color: var(--hellblau);
    color: var(--blau);
}

.button {
    pointer-events: auto;
    transition: 0.2s ease-in-out;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: var(--paddingbutton);
    background-color: var(--blau);
    color: var(--beige);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--copy);
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    flex: 1 1 auto;
    cursor: pointer;
    /*box-shadow: 1px 1px 5px grey;*/
}

.button:hover {
}

.button .contact-icon {
    margin-top: 0;
}

/* ### - C - ### */

.cta {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    z-index: 5;
    padding: 2rem 5rem;
    transition: transform 0.4s ease;
    /* die Leiste selbst faengt keine Klicks (nur der Button, s. u.) */
    pointer-events: none;
}

/* ausgefahren: nach unten aus dem Screen */
.cta.is-hidden {
    transform: translateY(120%);
}

@media (prefers-reduced-motion: reduce) {
    .cta {
        transition: none;
    }
}

.cta button {
    pointer-events: auto;
    transition: 0.2s ease-in-out;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: var(--paddingbutton);
    background-color: var(--gruen);
    color: var(--beige);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--copy);
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    flex: 1 1 auto;
    cursor: pointer;
    /*box-shadow: 1px 1px 5px grey;*/
}

.cta button:hover {
}

/* flex-grow: 1 -> 0 ist animierbar (Zahl); width: max-content wäre es nicht */
.cta button.klein {
    flex-grow: 0;
}

.cta button.auf-gruen {
    background-color: var(--blau);
}

.cta button img,
.cta button .contact-icon {
    height: var(--copy);
}

.contact-overlay {
    position: fixed;
    inset: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--blau);
    width: 100%;
    padding: 2rem;
    translate: 0 0;
    transition:
        translate 0.4s ease,
        overlay 0.4s ease allow-discrete,
        display 0.4s ease allow-discrete;
}


.contact-overlay:not([open]) {
    translate: 0 100vh;
}

@starting-style {
    .contact-overlay[open] {
        translate: 0 100vh;
    }
}

.contact-overlay::backdrop {
    background-color: rgb(0 0 0 / 0.4);
    transition:
        background-color 0.4s ease,
        overlay 0.4s ease allow-discrete,
        display 0.4s ease allow-discrete;
}

.contact-overlay:not([open])::backdrop {
    background-color: rgb(0 0 0 / 0);
}

.contact-overlay__dismiss {
    display: flex;
    justify-content: end;
}

.contact-overlay__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
}

.contact-overlay__info p {
    margin-bottom: 0;
}

.contact-overlay__info a {
    text-decoration: none;
}

.contact-overlay__info a:hover {
    text-decoration: underline;
}

.contact-overlay__row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 1.5rem;
}

.contact-icon {
    margin-top: 2px;
}

.contact-form {
    display: grid;
    border-top: 2px solid var(--blau);
    padding: 2rem 0;
    gap: 3rem;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__subjects {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 1rem;
    font-size: var(--copy);
}

.contact-form__inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form__field {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: var(--copy);
    padding: 0.5rem;
    width: 100%;
    background: none;
    color: var(--blau);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    border: none;
    border-bottom: 2px solid var(--blau);
}

.contact-form__radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 2px solid var(--blau);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

input[type="radio"]:checked {
    background: var(--blau);
    box-shadow: inset 0 0 0 3px var(--hellblau);
}

input[type="radio"]:focus-visible {
    outline: 2px solid var(--blau);
    outline-offset: 2px;
}

textarea {
    border: 2px solid var(--blau);
    border-radius: 1rem;
    min-height: 10rem;
}

.contact-overlay__close {
    height: 25px;
    width: 25px;
    border: none;
    background: none;
    cursor: pointer;
}

.contact-form__submit {
    transition: 0.2s ease-in-out;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: var(--blau);
    color: var(--beige);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--copy);
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    flex: 1 1 auto;
    cursor: pointer;
}

.contact-form__submit:hover {
}


@starting-style {
    .contact-overlay[open]::backdrop {
        background-color: rgb(0 0 0 / 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-overlay,
    .contact-overlay::backdrop {
        transition: none;
    }
}

.concept-store {
    padding: 4rem 1rem;
    /* Illustration wird per GSAP von links eingeflogen -> seitlich kappen,
       damit kein horizontaler Scroll entsteht */
    overflow-x: clip;
}

.concept-store-typo {
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.concept-store-illu {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    transform: translateY(-3rem);
}

.concept-store-text {
    grid-column: 1 / 4;
}
/* ### - D - ### */
/* ### - E - ### */
/* ### - F - ### */


.faq {
    grid-column: 1 / -1;
}

.faq-item {
    border-top: 2px solid var(--gruen);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: 2px solid var(--gruen);
}

.faq-question {
    margin: 0;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.faq-arrow {
    flex: none;
    width: 1.7em;
    height: 1.7em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.faq-trigger[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
}

.faq.is-ready .faq-answer {
    transition: grid-template-rows 0.35s ease;
}

.faq-item:has(.faq-trigger[aria-expanded="true"]) .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer__inner {
    overflow: hidden;
    padding-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .faq-arrow,
    .faq.is-ready .faq-answer {
        transition: none;
    }
}

/* ### - G - ### */

.grid-3 {
    display: grid;
    /* minmax(0, …) aus demselben Grund wie bei .intro: sonst koennen die
       breiten Typo-SVGs die Spalten aufblaehen */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column-gap: 1rem;
    grid-row-gap: 4rem;
}

#termin .grid-3 {
    grid-row-gap: 1rem;
}

/* ### - H - ### */

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: var(--h1);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: var(--copy);
}

h2 {
    font-size: var(--h2);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: var(--copy);
}

h3 {
    font-size: var(--h3);
    line-height: 1.1;
    font-weight: normal;
    margin-bottom: var(--copy);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out, visibility 0.5s;
    visibility: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gruen);
}

header.is-visible {
    transform: translateY(0);
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    header {
        transition: none;
    }
}

/* ### - I - ### */

/* Intro-Raster. Jede Zelle wird explizit gesetzt (kein Auto-Flow), damit
   ein fehlender Termin-Ticker oder ein nicht hochgeladener Spiegel die
   uebrigen Elemente nicht verschiebt.

   Zeilen mobil: 1 Ticker | 2 Logo | 3 Spiegel 1+2 | 4 blauer Block
   mit STUDIO3-Logo und Spiegel 3. */
.intro {
    display: grid;
    /* minmax(0, 1fr) statt 1fr: "1fr" heisst minmax(auto, 1fr), die Spalte
       darf also nicht unter die min-content-Breite ihres Inhalts. Da die
       SVGs kein width/height-Attribut haben, setzt Safari die Breite
       zu gross an -> Spalten breiter als der halbe Viewport -> Ueberlauf.
       Mit minmax(0, …) darf die Spalte schrumpfen. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: max-content max-content 1fr max-content;
    /* svh = kleine Viewport-Hoehe, also MIT sichtbarer Browserleiste.
       100vh rechnet auf iOS mit ausgeblendeter Leiste und schiebt damit
       den unteren Teil aus dem Bild. */
    min-height: 100svh;
}

/* Fallback fuer Browser ohne svh-Einheit */
@supports not (height: 100svh) {
    .intro {
        min-height: 100vh;
    }
}

.intro-logo {
    margin: 1rem;
    grid-column: 1 / -1;
    grid-row: 2 / 3;
}

.intro-link img {
    margin: 0 1rem;
    height: 80px;
    transition: 0.2s;
}

.intro .bg-blau {
    grid-column: 1 / -1;
    grid-row: 4 / 5;
}

.intro .studio-link {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    align-self: center;
}

/* Die drei Spiegel sind fertige Illustrationen: Kuppel, Korpus und
   Beschriftung stecken in der SVG-Datei. Alle drei haben dasselbe
   Seitenverhaeltnis, sie sind bei gleicher Spaltenbreite also gleich hoch.
   align-self: end stellt sie auf die Unterkante ihrer Zeile. */
.spiegel {
    align-self: end;
}

.spiegel img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hover nur auf dem Link, nicht auf .spiegel: dort setzt GSAP beim
   Seitenaufruf sein eigenes transform (siehe Intro-Animation in script.js). */
.spiegel-link {
    display: block;
    transition: opacity 0.2s ease-out;
}

.spiegel-link:hover,
.spiegel-link:focus-visible {
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    .spiegel-link {
        transition: none;
    }
}

.intro .spiegel--1 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.intro .spiegel--2 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.intro .spiegel--3 {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

.interior-design {
    padding: 4rem 1rem;
    overflow-x: clip;
}

.interior-design-typo {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
}

.interior-design-illu {
    grid-column: 3 / 4;
    grid-row: 1 / 1;
    align-self: center;
    rotate: -30deg;
    transform: translateX(-40%);
}

.interior-design-einleitung {
    grid-column: 1 / 4;
}

.interior-design-einleitung p {
    font-size: var(--h3);
    line-height: 1.1;
}

.interior-design-text {
    grid-column: 1 / 4;
}

.default-page {
    padding: 4rem 1rem;
    overflow-x: clip;
}

.default-page h1,
.default-page-text {
    grid-column: 1 / -1;
}

/* ### - J - ### */
/* ### - K - ### */
/* ### - L - ### */

.logo {
    width: 50%;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* ### - M - ### */
/* ### - N - ### */

.nav-toggle {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    color: var(--gruen);
    cursor: pointer;
    justify-self: end;
    z-index: 2;
}

.nav-toggle__icon {
    width: 40px;
    height: 40px;
}

.nav-toggle__bar {
    stroke: var(--gruen);
    stroke-width: 2;
    stroke-linecap: round;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s ease;
    /* KEIN will-change: transform hier – das gibt jeder Linie eine
       eigene ~22x2px-Bitmap-Ebene, die beim Rotieren treppt.
       Ohne will-change rendert die SVG die Drehung vektoriell. */
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top {
    transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bottom {
    transform: translateY(-4px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .nav-toggle__bar {
        transition: none;
    }
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--beige);
    border-bottom: 2px solid var(--gruen);
    padding: 4rem 1rem 1rem 1rem; 
    transform: translateY(-150%);
    transition: 0.6s;
}

.site-nav.is-open {
    transform: translateY(0%);
}

.site-nav .nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav__link {
    text-decoration: none;
    font-size: var(--h3);
}

.nav__link:hover {
    text-decoration: underline;
}

/* Öffnungszeiten-Liste (snippet openingHours) – im Footer und
   im Concept-Store-Abschnitt der Startseite */
.hours {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.25rem 1.5rem;
    width: max-content;
    font-size: var(--copy);
}

.hours-row {
    display: contents;
}

.hours dt {
    font-weight: 800;
}

/* ### - P - ### */

p {
    font-size: var(--copy);
    margin-bottom: var(--copy);
}

p:last-child {
    margin-bottom: 0;
}

.preisschild {
    text-align: center;
    font-size: var(--copy);
    position: absolute;
    top: 20%;
    left: 20%;
    rotate: 15deg;
    display: grid;
    cursor: pointer;
    /* einmaliges Wackeln beim Seitenaufruf, kurz nachdem die Spiegel
       aufgefahren sind */
    animation: preisschild-wackeln 1.1s ease-out 0.9s both;
}

/* Bewusst transform statt rotate: die unabhaengige rotate-Property haelt
   die Ruhelage (15deg), transform legt sich obendrauf. Die Keyframes sind
   damit reine Abweichungen – aendert man oben den Winkel, stimmt das
   Wackeln weiterhin. Ausschlag klingt gedaempft aus. */
@keyframes preisschild-wackeln {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(9deg); }
    30%  { transform: rotate(-7deg); }
    45%  { transform: rotate(5deg); }
    60%  { transform: rotate(-3deg); }
    75%  { transform: rotate(1.5deg); }
    100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .preisschild {
        animation: none;
    }
}
.preisschild > * {
    grid-column: 1/2;
    grid-row: 1/2;
    color: var(--hellblau);
}
.preisschild span {
    margin: 2rem 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ### - Q - ### */
/* ### - R - ### */
/* ### - S - ### */

section {
    scroll-margin-top: 60px;
}

.site-footer {
    border-top: 2px solid var(--gruen);
    padding: 3rem 1rem 1.5rem;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    margin-bottom: 3rem;
}

.site-footer__company {
    margin-bottom: var(--copy);
}

.site-footer__address {
    display: inline-block;
    text-decoration: underline;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    font-size: 14px;
}

.site-footer__links {
    display: flex;
    gap: 1.5rem;
}

.site-footer__links a {
    text-decoration: none;
}

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

/* ### - T - ### */

.termin-ticker {
    grid-column: 1/-1;
    grid-row: 1/2;
    display: flex;
    align-items: stretch;
    border-top: 2px solid var(--gruen);
    border-bottom: 2px solid var(--gruen);
}

.termin-ticker__label {
    flex: none;
    display: flex;
    align-items: center;
    background-color: var(--blau);
}
.termin-ticker__label a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--beige);
    text-decoration: none;
    white-space: nowrap;
}
.termin-ticker__label a:hover {
    text-decoration: underline;
}

.termin-ticker-container {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.termin-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: termin-ticker-scroll var(--ticker-duration, 30s) linear infinite;
}

.termin-ticker-container:not(.is-ready) .termin-ticker__track {
    animation: none;
}

.termin-ticker-container:hover .termin-ticker__track,
.termin-ticker-container:focus-within .termin-ticker__track {
    animation-play-state: paused;
}

.termin-ticker__item {
    flex: none;
    padding-block: 0.5rem;
    white-space: nowrap;
}

.termin-ticker__item::after {
    content: "⬤";
    margin: 0 1.75rem;
    color: var(--blau);
}

.termin-link {
    text-decoration: none;
    color: var(--blau);
    font-size: var(--copy);
}

.termin-link:hover {
    text-decoration: underline;
}

.termine {
    grid-column: 1/-1;
    border-radius: 1rem;
    padding: 1rem;
    scroll-margin-top: 100px;
}

.termin {
    border-top: 2px solid var(--blau);
    padding: 1rem 0;
    display: grid;
    gap: 1rem;
}

.termin:last-of-type {
    border-bottom: 2px solid var(--blau);
}

.termin h3,
.termin p {
    margin-bottom: 0;
}

.termin h3 a {
    text-decoration: none;
}

.termin h3 a:hover {
    text-decoration: underline;
}

.termin .button {
    color: var(--hellblau);
    width: max-content;
    transition: 0.2s;
    flex: auto;
}

.termin .button:hover {
}

.termin-tags {
    display: flex;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.termin-tag {
    border: 2px solid var(--blau);
    border-radius: 50px;
    padding: var(--paddingbutton);
}

@keyframes termin-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .termin-ticker__track {
        animation: none;
    }
    .termin-ticker-container {
        overflow-x: auto;
    }
}

.termin-page {
    padding: 4rem 1rem;
    overflow-x: clip;
}

.termin-box {
    margin-top: 80px;
    padding: 1rem;
    border-radius: 1rem;
}

.termin-box div:first-of-type {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.termin-box div:first-of-type p {
    margin-bottom: 0;
}

.termin-back,
.termin-box h1 {
    grid-column: 1/-1;
}

.termin-box h1 {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blau);
    margin-bottom: 0;
}

.termin-back {
    font-size: var(--h3);
}

.termin-back a {
    text-decoration: none;}

.termin-back a:hover {
    text-decoration: underline;
}

.termin-box h3 a {
    text-decoration: none;
}

.termin-datum {
    grid-column: 1/-1;
    border-top: 2px solid var(--blau);
    border-bottom: 2px solid var(--blau);
    padding: 0.5rem 0;
    font-size: var(--h2);
}

.termin-text {
    grid-column: 1/-1;
}

.termin-buttons {
    grid-column: 1/-1;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.termin-buttons .button {
    flex: inherit;
}

.termin-buttons .button:hover {
}

/* ### - U - ### */
/* ### - V - ### */
/* ### - W - ### */

.workshopspace {
    padding: 8rem 1rem 4rem 1rem;
    /* wie bei den Home-Sections: die rotierenden Illus ragen waehrend der
       Animation seitlich raus -> kappen, sonst horizontaler Scroll */
    overflow-x: clip;
}

.workshopspace-typo {
    grid-column: 1/4;
    grid-row: 1/2;
}

.workshopspace-illu {
    grid-column: 3/4;
    grid-row: 1/2;
}

/* Nummerierung kommt aus dem Template (--1, --2, --3 nach Panel-Reihenfolge).
   Mobil nur die erste Illustration (Hammer) zeigen. */
.workshopspace-illu--2,
.workshopspace-illu--3 {
    display: none;
}

/* ### - X - ### */
/* ### - Y - ### */
/* ### - Z - ### */

.zeiten {
    grid-column: 1 / -1;
}

/* ------------------------------------------------------------------ *\
   Breakpoints
\* ------------------------------------------------------------------ */

@media (min-width: 750px) {
    :root {
        --copy: 1.5rem;
        --h1: 5rem;
        --h2: 3.5rem;
        --h3: 2.5rem;
    }
    .intro-link img {
        margin: 0 2rem;
        height: 150px;
    }
    .concept-store,
    .interior-design,
    .site-footer,
    .workshopspace,
    .termin-page,
    .default-page {
        padding: 4rem 2rem;
    }
    .site-footer__top {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .termin {
        grid-template-columns: 1fr 1fr;
    }
    .termin h3 {
        grid-column: 1/3;
    }
    .termin-buttons {
        justify-content: end;
    }
    .termin .button {
        height: max-content;
        justify-self: end;
        align-self: end;
    }
    .termin-box div:first-of-type {
        flex-direction: row;
        justify-content: space-between;
    }
    .preisschild {
        top: 22%;
        left: 22%;
        width: 70px;
    }
    .workshopspace {
        padding-top: 10rem;
    }
}

@media (min-width: 1000px) {
    :root {
        --copy: 1.2rem;
        --h1: 6rem;
        --h2: 3.5rem;
        --h3: 2.5rem;
    }
    .concept-store,
    .interior-design,
    .site-footer,
    .workshopspace,
    .termin-page,
    .default-page {
        padding: 6rem 4rem;
    }
    .default-page h1,
    .default-page-text {
        grid-column: 1 / 3;
    }
    .workshopspace-typo {
        grid-column: 1/3;
    }
    .workshopspace {
        padding-top: 10rem;
    }
    .workshopspace-illu--2,
    .workshopspace-illu--3 {
        display: block;
        width: 60%;
    }
    .workshopspace-illu--1 { /* Hammer */
        grid-column: 2/3;
        grid-row: 1/2;
    }
    .workshopspace-illu--2 { /* Schraubzwinge */
        grid-column: 1/2;
        grid-row: 3/4;
    }
    .workshopspace-illu--3 { /* Sprechblasen */
        grid-column: 3/4;
        grid-row: 2/3;
    }
    .termine {
        padding: 2rem;
    }
    .termin {
        grid-template-columns: 1fr 1fr max-content;
    }
    .termin div {
        grid-column: 1/3;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .termin p {
        align-self: center;
        justify-self: center;
    }
    .termin p:first-of-type {
        justify-self: start;
    }
    .termin p:last-of-type {
        justify-self: end;
    }
    .termin .button {
        grid-column: 3/4;
        align-self: center;
    }
    .termin-box div:first-of-type {
        grid-row: 2/3;
        border: none;
    }
    .termin-datum {
        border: none;
        grid-column: 1/2;
        padding: 0;
    }
    .termin-text {
        grid-column: 2/4;
    }
    .termin-buttons {
        grid-column: 1/4;
        justify-content: end;
    }
    .termin-buttons > * {
        width: max-content;
    }
    .termin-box {
        padding: 2rem;
    }
    /* Zeilen ab hier: 1 Ticker | 2 Logo links, STUDIO3-Logo rechts |
       3 die drei Spiegel nebeneinander, unten buendig. */
    .intro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: max-content max-content 1fr;
    }
    .termin-ticker {
        grid-column: 1/4;
    }
    .intro-logo {
        grid-column: 1/3;
        margin: 2rem;
    }
    .intro .bg-blau {
        grid-column: 3 / 4;
        grid-row: 2 / 4;
    }
    .intro .studio-link {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        align-self: start;
    }
    .intro .spiegel--1 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    .intro .spiegel--2 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    .intro .spiegel--3 {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
    #termin .cta {
        display: none;
    }
    .studio-link.intro-link img {
        padding: 2rem;
        margin: 0;
        width: 100%;
        height: auto;
    }
    .cta {
        padding: 2rem 8rem;
    }
    .cta button {
        background-color: var(--blau);
    }
    .concept-store-typo,
    .concept-store-text,
    .interior-design-typo,
    .interior-design-einleitung {
        grid-column: 1/3;
    }
    .interior-design-text {
        grid-column: 2/4;
    }
    .zeiten {
        grid-column: 3 / 4;
    }
    .concept-store-typo {
        grid-row: 1 / 2;
        width: 80%;
    }
    .concept-store-illu {
        grid-row: 2 / 3;
        width: 70%;
    }
    .interior-design-typo {
        width: 80%;
    }
    .interior-design-illu {
        transform: translateX(0%);
        grid-row: 1/2;
        width: 60%;
    }
    .site-footer__top {
        gap: 0;
    }
    .site-footer__legal {
        gap: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    header {
        display: flex;
        justify-content: space-between;
    }
    .logo {
        width: 30%;
    }
    .nav-toggle {
        display: none;
    }
    .site-nav {
        position: relative;
        top: inherit;
        left: inherit;
        right: inherit;
        border: none;
        padding: 0;
        transform: translateY(0%);
        transition: none;
    }
    .site-nav .nav {
        flex-direction: row;
        gap: 3rem;
        margin-top: 0;
    }
    .nav__link {
        font-size: var(--copy);
    }
    .contact-overlay {
        bottom: 2rem;
        right: 2rem;
        left: 2rem;
        top: auto;
    }
    .contact-overlay__grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }
    .contact-overlay__title {
        grid-column: 1/-1;
    }
    .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border: 0;
    }
    .contact-form__subjects,
    .contact-form__inputs {
        grid-column: 1/2;
    }
    
    .contact-form__field {
        grid-row: 1/3;
        grid-column: 2/3;
        padding: 1rem;
    }
    .preisschild {
        top: 42%;
        left: 22%;
        width: 90px;
    }
    .faq {
        grid-column: 1 / 3;
    }
    .site-footer {
        padding: 2rem 4rem;
    }
}

@media (min-width: 1350px) {
    :root {
        --copy: 1.4rem;
        --h1: 7rem;
        --h2: 3.5rem;
        --h3: 2.8rem;
        --paddingbutton: 0.5rem 1rem;
    }
    .concept-store,
    .interior-design,
    .workshopspace,
    .termin-page {
        padding: 6rem 4rem;
    }    
    .workshopspace {
        padding-top: 12rem;
    }
}

@media (min-width: 1650px) {
    :root {
        --copy: 1.4rem;
        --h1: 5rem;
        --h2: 3.5rem;
        --h3: 2.8rem;
        --paddingbutton: 0.5rem 1rem;
    }
    .concept-store,
    .interior-design,
    .workshopspace,
    .termin-page {
        padding: 8rem 6rem;
    }  
    .workshopspace {
        padding-top: 15rem;
    }
    .site-footer {
        padding: 2rem 6rem;
    }
    .intro-link img {
        height: 200px;
    }
}

@media (min-width: 2000px) {
    .intro-link img {
        height: 250px;
    }
}

/* ------------------------------------------------------------------ *\
   Page Transitions (View Transitions API)

   Cross-Document, also fuer echte Seitenwechsel – kein JS, keine
   Library. Browser ohne Support navigieren einfach normal
   (Progressive Enhancement, kein Fallback noetig).

   Wichtig: beide beteiligten Seiten muessen opt-in sein. Da style.css
   global eingebunden ist, gilt das automatisch fuer die ganze Site.
\* ------------------------------------------------------------------ */

@view-transition {
    navigation: auto;
}

/* Fixe Elemente, die auf jeder Seite existieren, bekommen einen eigenen
   Namen. Dadurch werden sie als eigene Ebene behandelt und bleiben beim
   Wechsel einfach stehen, statt mit dem Seiteninhalt mit-auszublenden.
   Der Name muss pro Dokument eindeutig sein – beide Elemente kommen
   genau einmal vor. */
header {
    view-transition-name: site-header;
}

.cta {
    view-transition-name: site-cta;
}

/* Der Header soll beim Seitenwechsel stehenbleiben, nicht mitwandern.
   Ohne das wuerde die View Transition seine Position zwischen alter und
   neuer Seite interpolieren – beim Verlassen der Startseite (dort ist er
   oben ausgefahren) waere das erneut ein Runterfahren. */
::view-transition-group(site-header) {
    animation: none;
}

/* Der restliche Seiteninhalt blendet weich um. Bewusst nur Opacity und
   kein Verschieben: der Root-Snapshot ist die ganze Seite, ein Slide
   wuerde darunter den weissen Body-Hintergrund freilegen. */
::view-transition-old(root) {
    animation: vt-fade-out 0.25s ease both;
}

::view-transition-new(root) {
    animation: vt-fade-in 0.35s ease both;
}

@keyframes vt-fade-out {
    to {
        opacity: 0;
    }
}

@keyframes vt-fade-in {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}
