/* ============================================================
   site.css — mahnerzeichensprache
   Consolidated styles: theme + marquee + utilities
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
    --color-text: #1A1A1A;
    --color-accent: #E9331C;
    --color-warm: #F9B233;
    --font-serif: droid-serif, serif;
    --font-sans: "ibm-plex-sans", sans-serif;
}

/* ----- Minimal Reset (ersetzt Bootstrap-Normalize) ----- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

ul, ol { padding-left: 2rem; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }

/* ----- Layout ----- */
main {
    position: relative;
    overflow: visible;
    z-index: 10;
}

section {
    margin-top: 2rem;
    margin-bottom: 4rem;
    min-height: 700px;
}

/* ----- Header / Navigation ----- */
#headernav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 2rem 0.55rem 3.5rem;
    border-top: 10px solid #000;
    transition: top 0.5s ease;
    background-color: rgba(239, 239, 239, 0.89);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.25);
    will-change: transform;
    transform: translateZ(0);
}

#headernav .nav-logo img {
    height: 62px;
    width: auto;
    display: block;
}

#headernav #nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#headernav #nav-menu li a {
    display: inline-block;
    padding: 0.4rem 2rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-right: 1px solid #353a3f;
    position: relative;
    transition: color 0.25s ease;
}

#headernav #nav-menu li:last-child a { border-right: none; }

#headernav #nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease, left 0.3s ease;
}

#headernav #nav-menu li a:hover::after,
#headernav #nav-menu li a[aria-current="page"]::after {
    width: 80%;
    left: 10%;
}

#headernav #nav-menu li a:hover,
#headernav #nav-menu li a[aria-current="page"] {
    color: rgba(0, 0, 0, 0.9);
    border-right-color: transparent;
}

#headernav .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    width: 2.4rem;
}

#headernav .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#headernav .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#headernav .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#headernav .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#headernav.navbar-floating { top: -100px; }
#headernav.navbar-floating.on-scroll { top: 0; }

@media (max-width: 991.98px) {
    #headernav { padding: 0.55rem 1.5rem; }
    #headernav .nav-toggle { display: flex; }

    #headernav #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(239, 239, 239, 0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 99;
    }

    #headernav #nav-menu.is-open { display: flex; }

    #headernav #nav-menu li a {
        border-right: none;
        padding: 0.8rem 2rem;
    }

    #headernav #nav-menu li a::after { display: none; }
}

#headernav .navbar-brand {
    padding-left: 1.5rem;
}
#headernav .navbar-brand img {
    height: 62px;
    width: auto;
}

@media (max-width: 575.98px) {
    #headernav .navbar-brand img {
        width: 130px;
        height: auto;
    }
}

#headernav .navbar-nav li a {
    border-right: 1px solid #353a3f;
    padding: 0 2rem;
    font-family: var(--font-serif);
    position: relative;
}
/* Nav-Links: grau, nur aktiver Link schwarz */
#headernav .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.5);
}

#headernav .navbar-nav .nav-link.active,
#headernav .navbar-nav .nav-link.pk-active {
    color: rgba(0, 0, 0, 0.9);
    border-right: none;
}

@media (max-width: 991.98px) {
    #headernav .navbar-nav li a { border-right: none; }
}

/* Nav link hover underline */
#headernav .navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease, left 0.3s ease;
}
#headernav .navbar-nav li a:hover::after,
#headernav .navbar-nav li a.active::after,
#headernav .navbar-nav li a.pk-active::after {
    width: 80%;
    left: 10%;
}

/* ----- Hero ----- */
#fullsizeimg {
    position: relative;
    border-bottom: 10px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#fullsizeimg h1 {
    font-size: 5.5rem;
    font-family: var(--font-serif);
    color: var(--color-text);
}

@media (max-width: 991.98px) {
    #fullsizeimg h1 { font-size: 3.8rem; }
}
@media (max-width: 575.98px) {
    #fullsizeimg h1 { font-size: 2.5rem; }
}

/* Hero stroke animation */
.hero-text { position: relative; }

#hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.hero-letter {
    fill: none;
    stroke: var(--color-text);
    stroke-width: 25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes hero-draw {
    to { stroke-dashoffset: 0; }
}

/* ----- Content Sections (shared) ----- */
#start,
#funpic,
#ende,
#werte {
    border-bottom: 8px solid var(--color-accent);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 9rem;
}

#ende,
#werte {
    text-align: left;
}

/* Shared heading style */
#start h3,
#funpic h3,
#ende h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-text);
    font-style: normal;
    letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
    #start h3,
    #funpic h3,
    #ende h3 {
        font-size: 3rem;
        font-weight: 400;
        padding: 15px;
        margin-top: 0;
    }
}
@media (max-width: 575.98px) {
    #start h3,
    #funpic h3,
    #ende h3 {
        padding-top: 100px;
        font-size: 2.6rem;
    }
}

#werte h3 {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--color-text);
    text-align: left;
    letter-spacing: 0.02em;
	line-height: 2;
}

@media (max-width: 991.98px) {
    #werte h3 {
	font-size: 5rem;
	font-weight: 400;
	margin-top: 0;
    }
}
@media (max-width: 575.98px) {
    #werte h3 {
        font-size: 3.5rem;
    }
}

/* ----- Sketch-to-Life Reveal ----- */
.sketch-reveal {
    position: relative;
    display: inline-block;
    width: 200px;
}

.sketch-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Mask paths: white reveals the image underneath */
.sketch-mask-path {
    stroke: white;
    stroke-width: 300;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes mask-stroke {
    to { stroke-dashoffset: 0; }
}

@keyframes mask-fill {
    to { fill-opacity: 1; }
}

/* ----- Fish-into-Cookie Dive (placeholder – not yet animated) ----- */
.dive-scene {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.dive-fish {
    height: 100px;
    width: auto;
    display: block;
}

.dive-cookie {
    height: 100px;
    width: auto;
    display: block;
}

/* ----- Colorbox (tool images) ----- */
.colorbox-img {
    display: block;
    color: #fff;
}

.colorbox-img .img {
    display: block;
    transition: all 0.3s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
    background-position: 50% 50%;
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
}

.colorbox-img .img:after {
    content: "";
    display: block;
    padding-bottom: 75%;
}

.colorbox-img .img span {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 1.5rem rgba(0, 0, 0, 0.3);
}

.colorbox-img .imgcaption {
    display: block;
    position: relative;
    padding-top: 1.5rem;
}

.colorbox-img .imgcaption:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #fff;
    position: absolute;
    left: 50%;
    margin-left: 17px;
    top: -20px;
}

.colorbox-img:hover { text-decoration: none; }
.colorbox-img:hover .img {
    background-size: 107%;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ----- Marquee / Portfolio Slider ----- */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 2.5rem 0;
}

/* Soft fade at left and right edges */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee-scroll var(--marquee-dur, 70s) linear infinite;
    will-change: transform;
}

.marquee-track .slide {
    flex: 0 0 auto;
    width: 600px;
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.marquee-track .slide:hover {
    z-index: 2;
}

.marquee-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.marquee-track .caption {
	position: absolute;
	bottom: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 12px 14px;
	box-sizing: border-box;
	white-space: normal;
	overflow: hidden;
	font-family: "ibm-plex-sans","sans serif";
	font-weight: 200;
	font-size: 1.2rem;
	line-height: 1.3;
	opacity: 1;
	transform: translateY(0);
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.marquee-track .slide:hover .caption {
    opacity: 0;
    transform: translateY(100%);
}

/* Hover preview overlay — deaktiviert */
.marquee-preview,
.marquee-preview.active {
    display: none !important;
}

/* Inner container — JS sets --dx, --dy, --s for starting position */
.marquee-preview-inner {
    text-align: center;
    max-width: 65vw;
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--s, 0.4));
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.marquee-preview.active .marquee-preview-inner {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* When switching between slides, skip position animation */
.marquee-preview-inner.switching {
    transition: opacity 0.2s ease;
}

.marquee-preview img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.marquee-preview-caption {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-top: 1.2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s 0.18s cubic-bezier(0.19, 1, 0.22, 1);
}
.marquee-preview.active .marquee-preview-caption {
    opacity: 1;
    transform: translateY(0);
}

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

/* Speed control */
.marquee-speed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0.5rem 1rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #999;
    user-select: none;
}

.marquee-speed-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee-speed-slider span {
    width: 52px;
    display: inline-block;
}

.marquee-speed-slider span:first-child { text-align: right; }
.marquee-speed-slider span:last-child  { text-align: left; }

.marquee-speed-slider input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 2px;
    background: #bbb;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.marquee-speed-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--color-accent);
    cursor: pointer;
    border: none;
}

.marquee-speed-slider input[type=range]::-moz-range-thumb {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--color-accent);
    cursor: pointer;
    border: none;
}

/* Pause button — red circle with pause/play icon */
.marquee-pause-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.marquee-pause-btn:hover {
    transform: scale(1.15);
}

/* Pause icon: two vertical bars */
.marquee-pause-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 10px;
    background: #fff;
    border-radius: 1px;
    transform: translate(calc(-50% - 3px), -50%);
    box-shadow: 6px 0 0 #fff;
    transition: all 0.15s ease;
}

/* Play icon: triangle (when paused) */
.marquee-pause-btn.is-paused::before {
    width: 0;
    height: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid #fff;
    transform: translate(calc(-50% + 1px), -50%);
}

@media (max-width: 1024px) {
    .marquee-track .slide {
        width: 300px;
        height: 220px;
    }
    .marquee-container { --marquee-dur: 50s; }
}

@media (max-width: 768px) {
    .marquee-track .slide {
        width: 240px;
        height: 180px;
    }
    .marquee-container { --marquee-dur: 35s; }
    .marquee-container { padding: 1.5rem 0; }
    .marquee-container::before,
    .marquee-container::after { width: 40px; }
}

/* Hide hover preview on touch devices */
@media (hover: none) {
    .marquee-preview { display: none; }
}

/* ----- Portfolio CTA ----- */
.portfolio-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem 5rem;

}

.portfolio-cta-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.portfolio-cta-heading {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--color-text);
    line-height: 1.35;
    margin-bottom: 2rem;
}

.portfolio-cta-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    background: #3C2F8F;
    padding: 0.75rem 2.2rem;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-cta-btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* ----- Contact Page ----- */
.kontaktbild {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    z-index: 2;
    background-image: url('../img/icn-teetasse.svg');
    background-size: 55% auto;
    background-repeat: no-repeat;
    background-position: center center;
}

.kontakt-hero-text {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
}

.kontaktbild h1 {
    font-size: 5.5rem;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
}

#kontakt-hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
}

#kontakt-hero-letter {
    font-family: droid-serif, serif;
    font-size: 5.5rem;
    font-weight: 400;
    fill: none;
    stroke: var(--color-text);
    stroke-width: 1px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes kontakt-draw {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 991.98px) {
    .kontaktbild h1 { font-size: 3.8rem; }
    #kontakt-hero-letter { font-size: 3.8rem; }
}
@media (max-width: 575.98px) {
    .kontaktbild h1 { font-size: 2.5rem; white-space: normal; }
    #kontakt-hero-letter { font-size: 2.5rem; }
    .kontakt-hero-text { white-space: normal; text-align: center; width: 90vw; }
}

.kontakt-cta {
    position: absolute;
    bottom: 9%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    white-space: nowrap;
}

.kontakt-cta p {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin: 0;
    opacity: 0;
    animation: kontakt-fadein 1.2s ease 0.5s forwards;
}

.kontakt-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    background: #3C2F8F;
    padding: 0.75rem 2.2rem;
    text-decoration: none;
    border-radius: 2px;
    opacity: 0;
    animation: kontakt-fadein 1.5s ease 1.6s forwards;
    transition: background 0.2s ease, transform 0.2s ease;
}

.kontakt-btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

@keyframes kontakt-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .kontakt-cta { white-space: normal; width: 90%; bottom: 22%; }
}

.footer-jalousie {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 4.5rem 4rem;
    opacity: 0;
    animation: jalousie-fade-in 3s ease 0.6s forwards;
}

@keyframes jalousie-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.footer-jalousie p,
.footer-jalousie a {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

.footer-jalousie a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-jalousie.sichtbar {
    opacity: 1;
}

.footer-jalousie-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
    max-width: 1100px;
}

@media (max-width: 991.98px) {
    .footer-jalousie {
        padding: 1.5rem 2rem;
    }
    .footer-jalousie-inner {
        gap: 1rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .footer-jalousie {
        padding: 1.2rem 1.5rem;
    }
    .footer-jalousie-inner {
        gap: 0.8rem 1.5rem;
    }
}

/* ----- Footer ----- */
@media (max-width: 991.98px) {
    #footer { text-align: left; }
}
@media (max-width: 575.98px) {
    #footer { padding: 20px; text-align: left; }
}

/* ----- Scroll to Top ----- */

/* Note: scroll-behavior: smooth removed — it conflicts with jQuery's
   $.animate({scrollTop}) in script.min.js, causing double-smoothing
   that makes the scroll-to-top button feel glacial. */

/* Screenreader-only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#scroll-top-link {
    position: fixed;
    background-color: #080809;
    border: 2px solid #080809;
    border-radius: 500px;
    height: 50px;
    width: 50px;
    line-height: 40px;
    text-decoration: none;
    text-align: center;
    opacity: 0;
    right: 50px;
    bottom: 50px;
    z-index: 1030;
    visibility: hidden;
    transition: all 1s;
    will-change: transform;
    transform: translateZ(0);
}

#scroll-top-link svg { width: 20px; height: auto; fill: #fff; }
#scroll-top-link.on-scroll { opacity: 0.7; visibility: visible; }

#scroll-top-link:hover {
    background-color: #151414;
    border: 1px solid var(--color-warm);
}

#scroll-top-link:hover svg { fill: var(--color-warm); }

/* hastemalnenstift scroll-top (postkarten.js verwendet 'visible'-Klasse) */
#scroll-top {
    position: fixed;
    background-color: #080809;
    border: 2px solid #080809;
    border-radius: 500px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0;
    right: 50px;
    bottom: 50px;
    z-index: 1030;
    visibility: hidden;
    transition: all 1s;
    cursor: pointer;
}
#scroll-top svg { width: 20px; height: auto; fill: #fff; }
#scroll-top.visible { opacity: 0.7; visibility: visible; }
#scroll-top:hover { background-color: #151414; border: 1px solid var(--color-warm); }
#scroll-top:hover svg { fill: var(--color-warm); }

/* ============================================================
   Typografie – Textseiten (AVG, Datenschutz, Impressum, Vita)
   ============================================================ */

.text-page-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--color-text);
    margin: 3rem 0 0.75rem;
    line-height: 1.2;
}

.text-page-content h2:first-child {
    margin-top: 0;
}
.text-page-content h3.vita {
    font-family: "ibm-plex-sans", sans-serif;
    font-size: clamp(1.8rem, 2.7vw, 2.1rem);
    font-weight: 200;
	color: #FE4500;
    margin: 4rem 0 0 -1rem;
    /*border-left: 4px solid var(--color-accent);*/
    padding-left: 1rem;
}
.text-page-content h4.vita {
    font-family: "ibm-plex-sans", sans-serif;
    font-size: clamp(1.2rem, 2.0vw, 1.5rem);
    /*color: #FE4500;*/
	font-weight: 400;
    margin: 3rem -1rem 1rem;
    /*border-left: 4px solid var(--color-accent); */
    padding-left: 1rem;
}

.text-page-content p,
.text-page-content li {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.text-page-content ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.text-page-content strong {
    font-weight: 600;
}

.text-page-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.text-page-content a:hover {
    text-decoration: underline;
}

.text-page-content small {
    font-size: 0.82rem;
    color: #777;
}

/* Footer Textseiten */
#footer {
    border-top: 1px solid #ddd;
    margin-top: 2rem;
}

#footer a {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
}

#footer a:hover {
    color: var(--color-accent);
}

/* ============================================================
   Bootstrap-freie Nav (#site-nav) — gültig für alle Seiten
   ============================================================ */

#site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem max(2rem, calc((100% - 1400px) / 2 + 2rem)) 0.7rem max(3.5rem, calc((100% - 1400px) / 2 + 3.5rem));
    background: rgba(239, 239, 239, 0.82);
    border-top: 10px solid var(--color-text);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    width: 100%;
    box-sizing: border-box;
}

/* Floating-Variante für index.html */
#site-nav.nav-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-110%);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#site-nav.nav-floating.on-scroll {
    transform: translateY(0);
}

.nav-logo img {
    height: 62px;
    width: auto;
    display: block;
}

#nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav-menu li a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    border-right: 1px solid #353a3f;
    position: relative;
    transition: color 0.25s ease;
}

#nav-menu li:last-child a {
    border-right: none;
}

#nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s ease, left 0.3s ease;
}

#nav-menu li a:hover::after,
#nav-menu li a[aria-current="page"]::after {
    width: 80%;
    left: 10%;
}

#nav-menu li a:hover,
#nav-menu li a[aria-current="page"] {
    color: rgba(0, 0, 0, 0.9);
    border-right-color: transparent;
}

/* Hamburger-Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 3.2rem;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============================================================
   Bootstrap-freie Layout-Klassen
   ============================================================ */

/* Zentrierender Wrapper (ersetzt .container) */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Zwei Spalten (Überschrift | Text) */
.content-two-col {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Drei Spalten (Tool-Bilder) */
.content-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Textseiten (AVG, Datenschutz, Impressum) */
.text-page-content {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 2rem 5rem;
}

/* Vita: Timeline + Portrait nebeneinander */
.vita-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* "Und sonst so?" – Maus + Text */
.und-sonst-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

/* Footer ohne Bootstrap */
.footer-inner {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* ============================================================
   Responsive (Bootstrap-freie Bereiche)
   ============================================================ */

@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(239, 239, 239, 0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 99;
    }

    #nav-menu.is-open { display: flex; }

    #nav-menu li a {
        border-right: none;
        padding: 0.5rem 2rem;
        font-size: 1rem;
    }

    #nav-menu li a::after { display: none; }

    #nav-menu li a[aria-current="page"] {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    #site-nav { padding: 0.55rem 1.5rem; }

    .content-two-col { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .vita-two-col     { grid-template-columns: 1fr; }
    .und-sonst-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .content-two-col    { grid-template-columns: 1fr; }
    .content-three-col  { grid-template-columns: 1fr; }
    .text-page-content  { padding: 0 1rem 3rem; margin-top: 2rem; }
    .page-wrapper       { padding: 0 1rem; }
    .und-sonst-grid     { padding: 0 1rem; }
}

/* ----- Vita Timeline ----- */
.timeline {
    position: relative;
    padding-left: 28px;
    margin: 2rem 0;
    border-left: 1px solid #ccc;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 1.2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233, 51, 28, 0.15);
}

.timeline-year {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
}

.timeline-content {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.vita-portrait {
    max-width: 100%;
    height: auto;
    display: block;
    position: sticky;
    top: 120px;
}

@media (max-width: 767.98px) {
    .vita-portrait {
        position: static;
        max-width: 100%;
        margin: 2rem 0;
    }
}

@media (max-width: 575.98px) {
    .timeline { padding-left: 20px; }
}

/* Skip-Link (nur sichtbar bei Tastaturfokus) */
.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 9999;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Hero-Scroll-Pfeil (Index) */
#fullsizeimg { cursor: pointer; }

.hero-scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    animation: hero-arrow-bounce 1.8s ease-in-out infinite;
    pointer-events: none;
}
.hero-scroll-arrow svg { width: 100%; height: 100%; fill: var(--color-text); }

@keyframes hero-arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

/* Screenreader-only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keine Bewegungsanimationen wenn Nutzer das bevorzugt */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .footer-jalousie,
    .kontakt-cta p,
    .kontakt-btn { opacity: 1; }
}
