* {
    scroll-behavior: smooth;
}

body {
    background: var(--gold-20, #FAF8EE);
    font-family: 'Ubuntu';
    font-weight: 700 !important;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    background-image: radial-gradient(#2d2d2d20 1px, transparent 0);
    background-size: 20px 20px;
}

:focus-visible,
a.project-link:focus-visible {
    outline-offset: 5px !important;
    outline-color: #2d2d2d !important;
}

.content-img {
    width: 100%;
}

p.content {
    margin-bottom: 35px;
}

main > section:not(:first-child) {
    margin: clamp(16px, 20vmin, 200px) 0;
}

main.legal-content {
    margin-bottom: clamp(16px, 20vmin, 200px);
}

main.legal-content h3 {
    margin-bottom: 0;
    margin-top: 35px;
}

main.legal-content p {
    margin-top: 10px;
    margin-bottom: 0;
}

#kontakt.content-row {
    margin-bottom: -4px;
}

.inner-wrapper {
    margin-top: 35px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

.site-logo { 
    margin: 0; line-height: 0; 
}


/* Barrierefreie Anpassungen */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (min-width: 768px) {
    header {
        padding: 0 0 0 35px;
    }
    
    main, footer {
        padding: 0 35px;
    }
}

/* Header */
header {
    border-bottom: 2px solid var(--green-100, #020D0E);
    position: sticky;
    top: 0;
    background: var(--gold-20, #FAF8EE);
    margin-bottom: 25px;
    z-index: 10;
}

header nav .logo img {
    width: 100%;
    height: auto;
}

header nav, footer .footer-content {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-direction: row;
    justify-content:space-between;
    -ms-flex-pack:justify;
    align-items:center;
    -ms-flex-align:center;
}

@media (max-width: 767px) {
    header nav .logo {
        width: 10%;
        min-width: 75px;
        max-width: 100px;
        text-align: left;
    }

    .main-menu {
        display: none;
    }
}

@media (min-width: 768px) {
    header nav .logo {
        width: 10%;
        min-width: 75px;
        max-width: 100px;
        text-align: left;
    }

    .mobile-menu {
        display: none;
    }
}

@media (max-width: 1023px) {
    header nav {
        padding: 20px 0;
    }
}

@media (min-width: 1024px) {
    header nav {
        padding: 30px 0px;
    }
}

ul.main-navigation {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.main-navigation li a {
    padding: 15px 30px;
    border-radius: 10px;
    border: 3px dashed var(--gold-20, #FAF8EE);
    text-decoration: none;
    color: var(--green-100, #020D0E);
}

ul.main-navigation li a:active, 
ul.main-navigation li a:hover,
ul.main-navigation li a:focus {
    border: 3px solid var(--pink-50-main, #A81F49);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger:focus {
    outline: none;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.9);
    transition: all 0.3s;
}

.burger.open .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.open .burger-line {
    background-color: #FAF8EE;
}

.burger.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile navigation */
.mobile-navigation {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation.open {
    display: flex;
}

.mobile-navigation li {
    margin: 20px 0;
}

.mobile-navigation a {
    color: #FAF8EE;
    font-size: 2rem;
    text-decoration: none;
}

/* Media queries */
@media (max-width: 1023px) {
    .burger {
        display: flex;
    }
}


/* Footer */
footer {
    border-top: 3px solid var(--green-100, #020D0E);
}

footer .footer-content .legal p {
    margin: 5px 0;
}

@media (max-width: 1023px) {
    footer .footer-content {
        padding: 25px 0px 35px;
    }

    footer .footer-content {
        flex-wrap: wrap !important;
        -ms-flex-wrap: wrap !important;
        gap: 1.5rem;
    }

    footer .footer-content .social, footer .footer-content .legal {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    footer .footer-content {
        padding: 50px 0px 70px;
    }

    footer .footer-content .legal p {
        text-align: right;
    }
}


/* Grids */ 
.col-2-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Erstellt zwei gleich breite Spalten */
    gap: 16px; /* Abstand zwischen den Spalten */
    transition: all 0.3s ease-in-out; /* Sanfter Übergang */
    align-items: start;
}

@media (max-width: 1023px) {
    .col-2-wrapper {
        grid-template-columns: 1fr; /* Mobiler Umbruch auf eine Spalte */
    }
}

/* Text Marker */
::-moz-selection { 
    background: #A81F49; 
    color: #fff; 
}

::selection { 
    background: #A81F49; 
    color: #fff; 
}


/* Referenzen */
.logo-section {
    display: flex;
    align-items: stretch;
    align-content: space-between;
    flex-wrap: wrap;
    justify-content: flex-start;
}

@media (min-width: 1024px) {
    .logo-section {
        gap: 15px;
    }

    .logo-section div {
        max-width: 330px; /* Beispiel für skalierte Logos. Passe an deine Anforderungen an */
        height: auto;
    }
}

@media (min-width: 768px) {
    #referenz-logos {
        margin-left: -30px;
    }

    .logo-section {
        gap: 15px;
    }

    #referenz-logos div {
        /*background: #fff;*/
        display: flex;
        align-content: center;
        justify-content: center;
        padding: 25px 35px;
        border-radius: 18px;
    }

    #referenz-logos div img {
        max-width: 180px;
    }
}

@media (max-width: 767px) {
    #referenz-logos {
        margin-left: -15px;
    }

    .logo-section {
        gap: 15px;
    }
    
    #referenz-logos div {
        /*background: #fff;*/
        display: flex;
        align-content: center;
        justify-content: center;
        padding: 5px 15px;
        border-radius: 18px;
    }

    #referenz-logos div img {
        max-width: 75px;
    }
}


/* Links */
.button {
    display: flex;
    padding: 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 90px;
    background: var(--pink-50-main, #A81F49);
    color: var(--gold-5, #FAF8EE);
    font-family: Ubuntu;
    font-style: normal;
    width: fit-content;
    text-decoration: none;
}

p > a,
ul.list li a {
  color: #a81f49;
  text-decoration: none;
}

p > a:hover,
p > a:focus,
p > a:focus-visible,
ul.list li a:hover,
ul.list li a:focus {
  color: #a81f49;
  text-decoration: underline;
}


/* Footer */
.social > div {
    position: relative;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
}

.social > div,
.social > div a {
    border-radius: 100px;
    max-height: 51px;
}

.social {
    position: relative;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    gap: 10px;
}

/* Intro */
.intro-image .inner-wrapper {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    justify-content:flex-end;
    -ms-flex-pack:end;
}

.intro-image .inner-wrapper {
    position: relative;
    z-index: -10;
    width: 100%;
}

.intro-image img {
    border: 2px solid var(--green-100, #020D0E);
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

@media (min-width: 768px) {
    .intro-image .inner-wrapper svg {
        min-height: 550px;
        max-width: 550px;
    }
}

@media (min-width: 1024px) {
    .intro-image img {
        max-width: 580px;
    }
}

.intro-image .inner-wrapper svg {
    width: 100%;
    height: 100%;
}

.stoerer p {
    line-height: 100%;
}

.stoerer {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    position: absolute;
    bottom: 0;
    background: #FAF8EE;
    border: 2px solid #2d2d2d;
    border-radius: 500px;
    aspect-ratio: 1 / 1;
    justify-content:center;
    -ms-flex-pack:center;
    align-content:center;
    -ms-flex-line-pack:center;
    text-align: center;
    align-items:center;
    -ms-flex-align:center;
    line-height: 100%;
}

@media (min-width: 768px) {
    .stoerer {
        max-height: 200px;
        max-width: 200px;
        min-width: 175px;
    }
}

.intro-text h2 {
    margin-top: 0;
}

.intro-image .inner-wrapper {
    margin-top: 0;
}

#intro.col-2-wrapper {
    align-items: center;
    margin-top: 50px;
    gap: 50px !important;
}

@media (max-width:1023px) {
    .stoerer {
        max-height: 120px;
        max-width: 120px;
    }

    .stoerer p {
        margin: 10px;
    }

    #intro.col-2-wrapper .intro-image {
        order: 1;
        max-width: 600px;
    }

    #intro.col-2-wrapper .intro-text {
        order: 2;
    }
}


/* Scroll Margins */
#portfolio,
#referenzen,
#kontakt {
    scroll-margin-top: 150px;
}


/* Fonts */
/* ubuntu-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ubuntu-v20-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/ubuntu-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/ubuntu-v20-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/ubuntu-v20-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/ubuntu-v20-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/ubuntu-v20-latin-regular.svg#Ubuntu') format('svg'); /* Legacy iOS */
}

/* ubuntu-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/ubuntu-v20-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../fonts/ubuntu-v20-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/ubuntu-v20-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/ubuntu-v20-latin-700.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/ubuntu-v20-latin-700.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/ubuntu-v20-latin-700.svg#Ubuntu') format('svg'); /* Legacy iOS */
}

/* caveat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/caveat-v23-latin-700.eot'); /* IE9 Compat Modes */
  src: url('../fonts/caveat-v23-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/caveat-v23-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('../fonts/caveat-v23-latin-700.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
       url('../fonts/caveat-v23-latin-700.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
       url('../fonts/caveat-v23-latin-700.svg#Caveat') format('svg'); /* Legacy iOS */
}

/* Font Sizes */
h2, 
.headline--h2 {
    color: var(--pink-50-main, #A81F49);
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 15px;
    --mobile: 44;
    --desktop: 80;
    --min-ts: 1.25;
    --max-ts: 1.333;
    --min-vp: 480;
    --max-vp: 1280;
    --min: var(--mobile);
    --max: var(--desktop);
    --scale-diff: calc(var(--max-ts) - var(--min-ts));
    --vp-diff: calc(var(--max-vp) - var(--min-vp));
    --vi-multiplier: calc((var(--max) - var(--min)) / var(--vp-diff));
    --base-offset: calc(var(--min) - (var(--vi-multiplier) * var(--min-vp)));
    --mobile-font-size: calc(var(--mobile) / 16 * 1rem);
    --desktop-font-size: calc(var(--desktop) / 16 * 1rem);
}

@supports (font-size:clamp(1rem,1vi,1rem)) {
    h2, 
    .headline--h2 {
        font-size: clamp(min(var(--mobile-font-size), var(--desktop-font-size)), calc((var(--vi-multiplier) * 100vi) + (var(--base-offset) / 16 * 1rem)), max(var(--mobile-font-size), var(--desktop-font-size)));
    }
}



h3,
.headline--h3 {
  font-size: 2.0736rem; /* ~33.2px mobil, ~37.3px desktop */
  color: var(--green-100, #020D0E);
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  margin-top: 10px;
}

h4,
.headline--h4,
.mediaTitle {
  font-size: 1.728rem !important; /* ~27.6px mobil, ~31.1px desktop */
  color: var(--green-100, #020D0E);
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
}

@media (min-width: 768px) {
  p, 
  ul.main-navigation li a,
  footer .footer-content .legal p,
  ul.list {
    font-size: 18px !important; /* desktop/tablet */
  }
}

p, 
ul.main-navigation li a,
footer .footer-content .legal p {
  font-size: 16px; /* mobil */
  line-height: 1.6;
  font-weight: 400;
}

.filter-button,
ul.label-list li {
  font-size: 12px !important;
}

.stoerer p {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.6875rem) !important; /* Max size 43px */
  color: var(--green-100, #020D0E);
}

ul.list {
  font-weight: 400;
}

ul.list li {
  line-height: 150%;
}


/* Portfolio */
.projects {
    column-count: 4;
    gap: 0;
}

.projects article {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.projects article img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    border-radius: 10px;
}

.projects article img:hover,
.projects article img:active,
.projects article img:focus,
.projects .project-link:focus-visible article img {
    filter: grayscale(0%) !important;
}

.projects article:hover img {
    cursor: zoom-in;
}

/* Alle anderen Bilder transparent machen */
.projects article:hover ~ article img {
    opacity: 0.5;
}

/* Filternavi */
nav[aria-label="Filter"] {
    margin: 20px 0;
}

nav[aria-label="Filter"] button {
    margin: 5px 5px 5px 0;
    padding: 5px 15px;
    cursor: pointer;
}

nav[aria-label="Filter"] button {
    border-radius: 10px;
    border: 2px solid var(--gold-70, #9A9372);
    background-color: transparent;
    color: var(--gold-70, #9A9372);
    font-style: normal;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 150%; /* 27px */
}

nav[aria-label="Filter"] button.active,
nav[aria-label="Filter"] button:active,
nav[aria-label="Filter"] button:hover {
    border-radius: 10px;
    border: 2px solid var(--pink-50-main, #A81F49);
    background: var(--pink-50-main, #A81F49);
    color: #fff;
}

.projects.inner-wrapper {
    margin: 0;
    gap: 10px;
}

.projects.inner-wrapper > div {
    margin: 0 0 7px 0;
    border-radius: 10px;
    position: relative;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
}

a.project-link:focus-visible {
    border-radius: 10px;
}

.negative-space {
    margin: -8px 0 0 0 !important;
    width: 20px;
    height: 0;
    display: block;
    padding: 0;
}