/* Passe die Farben bei Bedarf hier an. Diese Variablen werden im folgenden Stylesheet und im JavaScript-Code verwendet. */

:root {
    --instance-color: #ff5656;
    --instance-color-hover: #ff4444;
    --background-color: #181821;
    --secondary-background-color: #2a2a39;
    --font-family: 'Roboto', sans-serif;
    --link-color: #2b90d9;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: #ffffff;
    line-height: 1.6;
}
a {
    color: var(--link-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    position: relative;
    text-align: center;
    padding: 80px 20px 30px 20px;
    background-image: url('images/battenhall-bQRqXz7mZe4-unsplash.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
header .container {
    position: relative;
    z-index: 2;
}
header h1, header p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
header p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
.button-section {
    margin-top: 30px;
}
.button-section a, a.smaler-button {
    display: inline-block;
    background-color: #8f8f8f;
    color: #fff;
    padding: 2px 7px;
    margin: 5px;
    border-radius: 15px;
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.button-section a:hover, .smaler-button:hover  {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.button-section .bigger-button {
    background-color: var(--instance-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
}
.button-section .bigger-button:hover {
    background-color: var(--instance-color-hover);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
section {
    padding: 50px 20px;
}
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.content-text,
.content-image {
    flex: 1 1 50%;
    padding: 10px;
    max-width: 50%;
    box-sizing: border-box;
}
#empfehlungen {
    padding-bottom: 0;
}

#weitere_empfehlungen {
    padding-top: 0;
}

#fediverse {
    background-color: #24242f;
    padding:0;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.7);
}

#fediverse .container {
    padding-bottom: 0;
}

.full-width-container {
    width: 100vw;
    overflow-x: hidden;
    padding: 0;
}

.list-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    padding-bottom: 40px;
    margin: 0 auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    scroll-padding: 40px;
}

.list-scroll::-webkit-scrollbar {
    height: 8px;
}

.list-scroll::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 5px;
}

.list-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.list-scroll::-webkit-scrollbar-track {
    background: #222;
}

.scroll-item {
    flex: 0 0 350px;
    background-color: var(--secondary-background-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    scroll-snap-align: start;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: left;
    position: relative;
}

#fediverse .scroll-item {
    background-color: rgba(75, 86, 104,0.2);
    padding: 15px;
    border: 1px solid var(--instance-color);
}

.scroll-item .icon {
    font-size: 2rem;
    line-height: 1;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
    position: absolute;
    top: 10px;
    right: 20px;
}

.scroll-item .icon svg {
    width: 32px;
}

.scroll-item h3 {
    font-size: 1.25rem;
    font-weight: normal;
    margin: 0 0 10px;
    color: #fff;
}

.scroll-item p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scroll-item .button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--instance-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-item .button:hover {
    background-color: var(--instance-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.list-scroll::before, .list-scroll::after {
    content: "";
    flex: 0 0 20px;
}

@media (max-width: 500px) {
    .list-scroll::before, .list-scroll::after {
        flex: 0 0 1px;
    }
    .scroll-item {
        flex: 0 0 300px;
    }
    .scroll-item .icon {
        font-size: 1.7rem;
    }
    .scroll-item .icon svg {
        width: 27px;
    }
    .scroll-item h3 {
        font-size: 1.07rem;
        margin: 0 0 5px;
        font-weight: bold;
    }
    .scroll-item p {
        margin-top: 10px; 
        margin-bottom: 10px;
    }
}

#section1 .content-text {
    order: 1;
}

#section1 .content-image {
    order: 2;
    flex: 1;
    text-align: center;
}
#section2 .content-image {
    order: 1;
    flex: 1;
    text-align: center;
}
#section2 .content-text {
    order: 2;
}
.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}
#section1 ol {
    padding: 0;
    margin: 20px 0;
    list-style-type: none;
    counter-reset: list-counter;
}

#section1 ol li {
    position: relative;
    margin: 0;
    padding: 20px 15px 20px 50px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    counter-increment: list-counter;
    display: flex;
    align-items: center;
    padding-right: 70px;
}

#section1 ol li:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

#section1 ol li::before {
    content: counter(list-counter, decimal);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border-radius: 50%;
    border:solid 1px #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#section1 ol li + li {
    margin-top: -1px;
}

.emoji-icon-wrapper {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-icon {
    font-size: 1.8rem;
}

#section1 ol li a.smaler-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#section1 p {
    line-height: 2.2;
}

#section2 {
    background-color: var(--secondary-background-color);
    z-index: 1;
}
.separator-bar {
    background-color: var(--instance-color);
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    font-weight: 400;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin: 30px 0 0 0;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
}
.separator-bar svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    margin-bottom: -5px;
}
.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    padding: 0;
    margin-top: 20px;
    list-style-type: none;
}
.account-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.account-card-link:hover {
    text-decoration: none;
}
.account-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--secondary-background-color);
    border-radius: 15px;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: left;
    position: relative;
}
.account-card-link:hover .account-card {
    background-color: #42425a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}
.account-card-link p {
    text-decoration: none;
}
.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.account-info {
    flex: 1;
    overflow: hidden;
}
.display-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}
.handle {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}
.server-handle {
    font-size: 0.75em;
    color: white;
    background-color: #45596d;
    padding: 0.1em 0.5em;
    margin-left: 0.2em;
    border-radius: 7px;
    display: inline;
}
.qr-code-button {
    background-color: transparent;
    color: var(--background-color);
    padding: 5px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 50%;
    border: solid 0px var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background-color 0.3s, box-shadow 0.3s ease;
}

.qr-code-button:hover {
    background-color: var(--instance-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* QR-Popup */
.qr-popup {
    position: relative;
    background: var(--secondary-background-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #ffffff;
    max-width: 90%;
    width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Schließen-Button */
.close-popup {
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: background-color 0.3s, box-shadow 0.3s ease;
}

.close-popup:hover {
    background-color: rgb(255, 99, 71);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* QR-Code-Container */
.qr-code-container {
    margin: 20px auto;
}

.qr-handle {
    margin-bottom:20px;
    font-size: 1rem;
    color: #cccccc;
    text-align: center;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.qr-server-handle {
    font-size: 0.75em;
    color: white;
    background-color: #45596d;
    padding: 0.1em 0.5em;
    margin-left: 0.2em;
    border-radius: 7px;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.qr-popup canvas {
    border: 2px solid #45596d;
    border-radius: 10px;
    padding: 10px;
    background-color: var(--background-color);
}

.hint-box {
    background-color: rgba(75, 86, 104,0.2);
    padding: 15px;
    border: 1px solid var(--instance-color);
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-in-out;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.hint-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #ffffff;
}
.hint-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-background-color);
    margin-top: 30px;
}
footer nav {
    margin-bottom: 10px;
}
footer p {
    margin: 0;
    font-size: 0.9rem;
    }
.footer-credits {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
}
.footer-credits a {
    color: #ddd;
    text-decoration: none;
}
.footer-credits a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 900px) {
    h2 {
        margin: 0;
    }
    header {
        padding: 60px 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header p {
        font-size: 0.95rem;
    }
    section {
        padding: 0;
    }
    #section2 {
        padding-bottom: 20px;
    }
    #empfehlungen {
        padding-top: 20px;
    }
    .content-wrapper {
        flex-direction: column;
        gap: 0;
    }
    #section1 .content-text,
    #section2 .content-text {
        order: 2;
        max-width: 100%;
    }
    #section1 .content-image,
    #section2 .content-image {
        order: 1;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .emoji-icon-wrapper {
        display:none;
    }
    #section1 ol li {
        padding-right:0;
    }
}