/* =========================================================
   STADTCONTUR — Custom Styles (UIkit 3 override)
   ========================================================= */

:root {
    --sc-orange: #ff6155;
    --sc-text:   #1a1a1a;
    --sc-light:  #f0eeeb;
    --sc-dark:   #c3c0bd;
    --sc-font:   'Helvetica Neue', Arial, Helvetica, sans-serif;
}

/* ---- Base ---- */
body {
    font-family: var(--sc-font);
    color: var(--sc-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}

.sc-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#sc-main {
    flex: 1;
    padding: 15px 0 80px;
}

a, em { color: var(--sc-text); }
a:hover { color: var(--sc-orange); }
#main a:hover, .sc-footer-contact a:hover { 
    color: var(--sc-orange);   
    font-style: italic; 
    border-bottom: 3px solid var(--sc-orange);}

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

/* ---- Header ---- */
.sc-header {
    padding: 43px 0 14px;
    background: #fff;
}

.uk-navbar-container {
    background: transparent !important;
}

/* ---- Mobile Toggle ---- */
.sc-mobile-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-mobile-toggle svg {
    width: 50px;
    height: 50px;
    display: block;
}

/* ---- Mobile Offcanvas ---- */
/* Transform übernimmt die Animation vollständig – UIkits right-Transition wird
   nicht genutzt, damit transitionend sauber feuert und display:none greift. */
#sc-mobile-nav .uk-offcanvas-bar {
    width: 100vw;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    background: #fff;
    color: var(--sc-text);
    padding: 72px 30px 40px;
}

#sc-mobile-nav.uk-open .uk-offcanvas-bar {
    transform: translateX(0);
}

.sc-offcanvas-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: block;
}

.sc-offcanvas-close svg {
    width: 44px;
    height: 44px;
    display: block;
}

#sc-mobile-nav .uk-nav-default > li > a,
#sc-mobile-nav .uk-nav-sub > li > a {
    color: var(--sc-text);
}

#sc-mobile-nav .uk-nav-default > li > a:hover,
#sc-mobile-nav .uk-nav-sub > li > a:hover {
    display: inline-block;
    color: var(--sc-orange);
    font-style: italic;
    text-decoration: none;
    border-bottom: 2px solid var(--sc-orange);
        padding-bottom: 0px;
}

#sc-mobile-nav li.sc-active > a {
    display: inline-block;
    color: var(--sc-text);
    font-style: italic;
    font-weight: 400;
    border-bottom: 2px solid var(--sc-text);
    text-decoration: none;
    padding-bottom: 0px;
}

/* ---- Logo ---- */
.sc-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    padding: 0;
    min-height: 0;
    height: auto;
}

.sc-logo img {
    height: 60px;
    width: auto;
}

/* Textfallback falls kein Bild */
.sc-logo-text-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.sc-logo-text-sub {
    font-size: 9px;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

/* ---- Navigation ---- */
.sc-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-nav > li {
    display: flex;
    align-items: center;
    position: relative;
}

.sc-nav > li + li::before {
    content: '//';
    padding: 0 4px;
    font-size: 1.375rem;
    line-height: 1;
    font-style: normal;
}

.sc-nav > li > a {
    font-size: 1.375rem;
    text-decoration: none;
    padding: 4px 6px;
    border-bottom: 3px solid transparent;
    transition: border-color 0.15s ease, font-style 0.1s ease;
    line-height: 1;
    font-style: normal;
}

.sc-nav > li > a:hover {
    font-style: italic;
    border-bottom-color: var(--sc-orange);
    color: var(--sc-orange);
}

.sc-nav > li.sc-active > a {
    color: var(--sc-text);
    border-bottom-color: var(--sc-text);
    font-style: italic;
}

/* Instagram-Icon in der Desktop-Navigation */
.sc-nav__instagram > a {
    display: flex;
    align-items: center;
    font-style: normal;
    border-bottom: 3px solid transparent;
    padding: 4px 6px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.sc-nav__instagram > a:hover {
    font-style: normal;
    border-bottom-color: transparent;
    color: var(--sc-orange);
}

.sc-nav__instagram svg {
    display: block;
}

/* Instagram-Link in der Mobile-Navigation */
.sc-mobile-instagram > a {
    display: flex;
    align-items: center;
}

/* Dropdown */
.sc-nav > li:hover .sc-dropdown {
    display: block;
}

.sc-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sc-dropdown li {
    list-style: none;
}

.sc-dropdown li a {
    display: block;
    padding: 6px 20px;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.sc-dropdown li a:hover,
.sc-dropdown li.sc-active a {
    color: var(--sc-orange);
    font-style:italic;
}

.sc-dropdown li.sc-active a {

}

/* ---- Hero ---- */
.sc-hero {
    margin-bottom: 36px;
}

.sc-hero img {
    max-height: 520px;
    object-fit: cover;
    object-position: center;
}

.sc-hero--fullbleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 36px;
}

.sc-hero--fullbleed img {
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}

/* ---- Hero Slideshow ---- */
.sc-hero-slideshow {
    margin-bottom: 36px;
}

.sc-hero-slideshow .uk-slideshow-items {
    height: clamp(280px, 52vw, 520px);
}

/* ---- Startseite-Layout ---- */
a[title*="Video"] {
    border-bottom: 3px solid var(--sc-text);
    text-decoration: none;
}
a:hover[title*="Video"] {
    border-bottom: 3px solid var(--sc-orange);
    text-decoration: none;
}

.sc-home-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

.sc-home-intro h1,
.sc-home-intro h2 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 16px;
}

.sc-intro-link {
    text-decoration: underline;
    text-decoration-color: var(--sc-orange);
    text-underline-offset: 3px;
}

.sc-intro-link:hover {
    color: var(--sc-orange);
        font-style:italic;
}

/* ---- Projekt-Grid ---- */
.sc-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
    margin-bottom: 60px;
}

.sc-project-card {
    text-decoration: none;
    display: block;
}

.sc-project-card img {
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 10px;
}

.sc-project-card h3 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

.sc-project-card:hover h3 {
    font-style: italic;
    color: var(--sc-orange);
}

/* ---- Kategorie-Seite ---- */
.sc-cat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.sc-project-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-project-list li {
    margin-bottom: 8px;
}

.sc-project-list li a {
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.sc-project-list li a:hover,
.sc-project-list li.sc-active a {
    border-bottom-color: var(--sc-orange);
    color: var(--sc-orange);
        font-style:italic;
}

.sc-project-list li.sc-active a {
    font-weight: 700;
}

/* ---- Artikel-Bereich ---- */
.sc-content h1,
.sc-content h2 {
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0;
    margin-top: 0;
}

.sc-content p {
    margin-bottom: 14px;
}

* + p {
    margin-top: 0px;
}

.sc-content img {
    margin-bottom: 0px;
}

.sc-hero img,
.sc-hero--fullbleed img {
    border: none;
    margin-bottom: 0;
}

/* ---- Kontaktblock ---- */
.sc-contact-block {
    padding: 40px 0 0;
}

.sc-footer-contact {
    padding: 60px 0 50px;
}

.sc-contact-block p,
.sc-footer-contact p {
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 0;
}

.sc-contact-block a,
.sc-footer-contact a {
    text-decoration: none;
}

/* ---- Footer ---- */
.sc-footer {
    background: var(--sc-light);
    /* background: var(--sc-light) url('/media/stadtcontur-illu.png') no-repeat right bottom; */
    /* background-size: auto 100%; */
    padding: 20px 0;
}

.sc-footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
}

.sc-footer-nav li + li::before {
    content: ' // ';
    white-space: pre;
}

.sc-footer-nav a {
    text-decoration: none;
}

.sc-footer-nav a:hover {
    display: inline-block;
    color: var(--sc-orange);
    font-style: italic;
    text-decoration: none;
    border-bottom: 2px solid var(--sc-orange);
        padding-bottom: 0px;
}

/* ---- Kategorie-Teaser-Grid ---- */
.sc-cat-teaser {
    margin-top: 10px;
}

.sc-cat-teaser__item-wrapper {
    aspect-ratio: 2 / 2;
    display: flex;
    flex-direction: column;
}

.sc-cat-teaser__item,
.sc-cat-teaser__item:hover {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--sc-light);
}

.sc-cat-teaser__img {
    aspect-ratio: 4 / 3;
    /* overflow via uk-overflow-hidden im Markup */
}

.sc-cat-teaser__img img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sc-cat-teaser__item:hover .sc-cat-teaser__img img {
    transform: scale(1.03);
}

.sc-cat-teaser__title {
    font-size: 2rem;
    font-weight: 400;
    margin: auto 15px 15px;
    line-height: 1.3;
    align-self: flex-start;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    transition: border-color 0.15s ease;
      font-style: normal;
  
}

.sc-cat-teaser__item:hover .sc-cat-teaser__title {
  font-style: italic;
      border-bottom-color: var(--sc-orange);
    color: var(--sc-orange);
}

/* ---- Bilderliste auf Projektseiten ---- */
.sc-image-list {
    margin-top: 10px;
}

.sc-image-list__item {
    margin-bottom: 30px;
}

@media (min-width: 960px) {
    .sc-image-list__item--left img {
        width: 66.666%;
        margin-right: auto;
    }

    .sc-image-list__item--right img {
        width: 66.666%;
        margin-left: auto;
    }
}

/* ---- Subnav ---- */
.sc-subnav-mobile {
    padding: 30px 0 20px;
}

@media (min-width: 768px) {
    /* Spaltenumbruch für sc-content schon ab 768px (UIkit @m = 960px) */
    .sc-content > .uk-width-1-2\@m { width: 50%; }
    .sc-subnav-mobile { display: none; }
    /* Subnav in Zeile 2 rechts ausrichten (direkt unter dem Lauftext) */
    .sc-content > .sc-subnav-desktop {
        margin-right: auto;
        align-self: flex-start;
    }
}

@media (max-width: 767px) {
    .sc-subnav-desktop { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sc-home-intro,
    .sc-cat-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sc-project-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .sc-contact-block p,
    .sc-footer-contact p {
        font-size: 1.375rem;
    }

    .sc-nav > li > a,
    .sc-nav > li + li::before {
        font-size: 1rem;
    }

    .sc-home-intro h1,
    .sc-home-intro h2,
    .sc-content h1,
    .sc-content h2,
    .sc-cat-teaser__title {
        font-size: 1.5rem;
    }

    .sc-level-3 .sc-cat-teaser {
        display: none;
    }
}

@media (max-width: 480px) {
    .sc-project-grid {
        grid-template-columns: 1fr;
    }

    .sc-logo img {
        height: 40px;
    }
}

/* ---- Back to top ---- */
#sc-top-link {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sc-orange);
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

#sc-top-link.sc-visible {
    opacity: 1;
    pointer-events: auto;
}

#sc-top-link:hover {
    color: #fff;
    border-bottom: none;
    font-style: normal;
}
