/*

radiorauschen.de

css v 0.9.2


                         XXXXXXXXXXXXX                                          
                    XXXXX             XXXXX                                     
                 XXX     XXXXXXXXXXXXX     XXX                                  
               XX    XXXXXXXXXXXXXXXXXXXXX    XX                                
             XX   XXXXXXXXXXXXXXX     XXXXXXX   XX                              
            X   XXXXXXXXXXXXXXX         XXXXXXX   X                             
           X   XXXXXXXXXXXXXXXX         XXXXXXXX   X                            
          X   XXXXXXXXXXXXXXXXX         XXXXXXXXX   X                           
         X   XXXXXXXXXXXXXXXXXXXX     XXXXXXXXXXXX   X                          
        X   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   X                         
        X   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   X                         
        X   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   X                         
        X   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   X                         
        X   XXXXXXXXXXXX     XXXXXXXXXXXXXXXXXXXXXX   X                         
         X   XXXXXXXXX         XXXXXXXXXXXXXXXXXXX   X                          
          X   XXXXXXXX         XXXXXXXXXXXXXXXXXX   X                           
           X   XXXXXXX         XXXXXXXXXXXXXXXXX   X                            
            X   XXXXXXXX     XXXXXXXXXXXXXXXXXX   X                             
             XX   XXXXXXXXXXXXXXXXXXXXXXXXXXX   XX                              
               XX    XXXXXXXXXXXXXXXXXXXXX    XX                                
                 XXX     XXXXXXXXXXXXX     XXX                                  
                    XXXXX             XXXXX                                     
                         XXXXXXXXXXXXX                                          
                                                                                
                                                                                
*/

/* ––––––  1. FONTOOO / colors –––––– */

@font-face {
    font-family: 'AlfredinoTuttoCurvy';
    src: url('../font/AlfredinoTuttocurvy-Tuttocurvy.woff2') format('woff2'),
         url('../font/alfredinotuttocurvytuttocurvy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KosugiMaru';
    src: url('../font/KosugiMaru-Regular.woff2') format('woff2'),
         url('../font/KosugiMaru-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+3000-9FFF, U+F900-FAFF, U+FF00-FFEF;
}


.jp {
    font-family: 'KosugiMaru', var(--font-main);
    font-weight: 600 !important;
        font-size: 93%;
}


:root {
    --font-main: 'AlfredinoTuttoCurvy', 'M PLUS 1 Code', monospace;
    --base-size: 17px;
    --spacing: 30px;
    --indent: 24px;

    --bg-color: #f8f8f8;
    --text-color: #750600;
    --accent-color: #750600;
    --border-color: #eee;

}

body.dark-mode {
    --bg-color: #201c16;
    --text-color: #ffde71;
    --accent-color: #ffde71;
    --border-color: #49483e;
}

/* ––––––  2. RESET –––––– */

*, *::before, *::after {
    box-sizing: border-box;
    font-weight: normal !important;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: var(--base-size);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 100%;
    transition: background-color 0.3s, color 0.3s;
    text-transform: lowercase;
    overflow-x: hidden;
    font-feature-settings: 'ss01' 1, 'ss02' 1;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* ––––––  3. LAYOUT –––––– */

.layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.list-col {
    width: 520px;
    min-width: 360px;
    padding: 30px var(--spacing);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* ––––––  4. startsite –––––– */

.site-title {
    margin-bottom: 20px;
    cursor: pointer;
    line-height: 1.6;
}


.year-line {
    padding-left: var(--indent);
    font-size: var(--base-size);
    margin-top: 18px;
    display: block;
}

.year-line:first-child{
    margin-top: 10px;
}

.project-item {
    display: block;
    cursor: pointer;
    line-height: 1.45;
    position: relative;
    /* Sanfte Animation für den Text (Translate) und den Pfeil */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Der unsichtbare Pfeil, der links neben dem Item wartet */
.project-item::before {
    content: "→ "; /* Hier kannst du auch andere Pfeile wie "›" oder "↳" nutzen */
    position: absolute;
    left: -18px;   /* Startet leicht versetzt links außerhalb des Textflusses */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(-5px);
}

/* Hover- & Aktiv-Zustand für das Item (Text rutscht nach rechts) */
.project-item:hover,
.project-item.active {
    text-decoration: none; /* Entfernt die alte Unterstreichung */
    transform: translateX(18px); /* Rutscht genau weit genug nach rechts, um Platz für den Pfeil zu machen */
}

/* Hover- & Aktiv-Zustand für den Pfeil (wird sichtbar und pushed nach rechts) */
.project-item:hover::before,
.project-item.active::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Nav — fixed unten links */
.footer-nav {
    position: fixed;
    bottom: var(--spacing);
    left: var(--spacing);
    z-index: 200;
    display: flex;
    flex-direction: column;
}


/* Footer Nav — Links unten (Aktualisiert für Pfeil-Animation) */
.footer-nav div {
    cursor: pointer;
    line-height: 1.6;
    font-feature-settings: 'ss01' 0, 'ss02' 0;
    position: relative;
    display: inline-block; /* Wichtig, damit das Translate und der absolute Pfeil sauber funktionieren */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Der unsichtbare Pfeil für die Footer-Links */
.footer-nav div::before {
    content: "→ ";
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(-5px);
}

/* Hover- & Aktiv-Zustand für die Footer-Links */
.footer-nav div:hover,
#info-link.active {
    text-decoration: none; /* Entfernt die alte Unterstreichung */
    transform: translateX(18px); /* Verschiebt den Text nach rechts */
}

/* Pfeil einblenden beim Hovern / Aktiv-Zustand */
.footer-nav div:hover::before,
#info-link.active::before {
    opacity: 1;
    transform: translateX(0);
}
/* Mode Toggle — fixed unten rechts */
#mode-toggle {
    position: fixed;
    bottom: var(--spacing);
    right: var(--spacing);
    cursor: pointer;
    z-index: 200;
    line-height: 1.6;
}

.email-container small {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.email-container a:hover + br + small {
    opacity: 1;
}

/* ––––––  5. PROJEKT-OVERLAY –––––– */

.project-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.back-btn {
    position: fixed;
    top: 30px;
    left: var(--spacing);
    cursor: pointer;
    z-index: 101;
    line-height: 1.6;
}

.back-btn:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 30px var(--spacing);
    padding-top: calc(30px + 1.6em + 20px + 10px);
    transition: opacity 0.2s ease;
    font-feature-settings: 'ss01' 1, 'ss02' 0;
}

/* ––––––  6. CONTENT FORMATIERUNG –––––– */

/* Verhindert Pull-to-refresh und das "Gummiband"-Bouncing auf mobilen Geräten global */
body.page-info {
    overscroll-behavior-y: contain;
}

body.page-info #main-content { touch-action: none; }

.privay-text{
    margin-top: 50px;
    opacity: 0.5;
}



/* Grids */
.grid {
    display: grid;
    grid-template-columns: calc(40% - .5rem) calc(60% - .5rem);
    gap: 1rem;
    width: 100%;
}

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

.grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-third {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .grid-half,
    .grid-third { grid-template-columns: 1fr; }
}

/* Typografie */
h1 { font-size: 1rem; margin: 0; }
.content h2 { font-size: 1rem; margin: 0 0 20px 0; }
.content h3 { font-size: 1rem; margin: 30px 0 15px 0; text-decoration: underline; }

.content p,
.content ul,
.content li {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 65ch;
}

.content ul {
    list-style: disc;
    padding-left: 20px;
}

.project-text-outer { max-width: 360px; }
.project-text { position: sticky; top: 40px; }
.project-text p { margin-top: 0 !important; }

/* Bilder */
img {
    max-width: 100%;
    height: auto;

    display: block;
    margin-bottom: 20px;
    background: var(--border-color);
    background: #f6e7e7;
    cursor: pointer;
    transition: opacity 0.2s;
}

body.dark-mode img { background: #f3e6b0!important; }

@media (min-width: 801px) {
    /*img:hover { opacity: 0.8; }*/
}


/*videos */


video {

    width: 100%;
    height: 90vh;
    object-fit: contain; 
    display: block; 

}

/* ––––––  7. ZOOM OVERLAY –––––– */

#zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 248, 248, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

#zoom-overlay img {
    max-width: 96vw;
    max-height: 96vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
    background: none;
    cursor: zoom-out;
}

body.dark-mode #zoom-overlay { background: rgba(39, 40, 34, 0.98); }
#zoom-overlay.active { opacity: 1; pointer-events: auto; }

/* ––––––  8. MOBILE –––––– */

@media (max-width: 800px) {
    :root { --base-size: 14px; }

    .layout { flex-direction: column; }

    .list-col {
        width: 100%;
        min-width: 0;
    }

@media (max-width: 800px) {
    .back-btn {
        top: 30px;
    }
}

    .content {
        padding: 20px var(--spacing);
        padding-top: calc(45px + 1.6em + 16px);
    }
}

/* ––––––  9. SCROLLBARS –––––– */

::-webkit-scrollbar { display: none; }

/* ––––––  10. PROJEKT LOG –––––– */

[id^="process-log"] {
    position: relative;
    width: 100%;
    padding: 20px 0 100px 0;
    display: flex;
    flex-direction: column;
    gap: 60px;
    overflow: visible;
}

[id^="connection-svg"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

[id^="connection-path"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
}

.pl-item {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 50%;
    min-height: 80px;/*
    max-height: 90vh;*/
}

.pl-item.format-square   { aspect-ratio: 1 / 1; }
.pl-item.format-portrait  { aspect-ratio: 3 / 4; }
.pl-item.format-landscape { aspect-ratio: 16 / 10; }

.pl-left  { align-self: flex-start; }
.pl-right { align-self: flex-end;}

.pl-left img, .pl-right img {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    max-height: 90vh;
}


.pl-text {
    align-self: center;
    width: 42%;
    z-index: 1;
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
}

.pl-text p {
    margin: 0 0 8px 0;
    max-width: none !important;
}

.project-header {
    margin-bottom: 40px;
    max-width: 500px;
}

.project-header h2 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    padding-left: var(--indent);
}

.project-header p {
    margin: 0;
    max-width: none !important;
}

@media (max-width: 800px) {
    .pl-item { width: 85%; }
    .pl-text  { width: 70%; align-self: center; }
    [id^="process-log"] { gap: 40px; }
    .pl-left  { margin-left: 0 !important; }
    .pl-right { margin-right: 0 !important; }
}

/* ––––––  11. PRIVACY MARQUEE –––––– */

#privacy-btn {
    position: fixed;
    bottom: var(--spacing);
    left: var(--spacing);
    z-index: 200;
    cursor: pointer;
    line-height: 1.6;
}

#privacy-btn.active {
    text-decoration: underline;
}

#privacy-marquee-wrap {
    position: fixed;
    bottom: var(--spacing);
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 199;
    white-space: nowrap;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#privacy-marquee-wrap.visible {
    opacity: 1;
}

#privacy-marquee-text {
    display: inline-block;
}

/* ––––––  13. SELECTION –––––– */

::selection {
    background-color: #750600;
    color: #f8f8f8;
}

body.dark-mode ::selection {
    background-color: #ffde71;
    color: #201c16;
}

#download-btn {
    position: fixed;
    bottom: var(--spacing);
    right: var(--spacing);
    z-index: 200;
    cursor: pointer;
    line-height: 1.6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#download-btn.visible {
    opacity: 1;
    pointer-events: auto;
}