* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: #fff;
    line-height: 1.6;
    overflow-x:hidden;
}

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

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

.container {
    position:relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    position: relative;
    height: 400px;
    text-align: center;
    padding: 80px 20px 30px 20px;
    background-image: url('../images/akira-hojo-_86u_Y0oAaM-unsplash.jpg');
    background-size: cover;
    background-position-y: -600px;
    background-position-x: 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;
}

section {
    padding: 20px 0;
}

#willkommen {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--secondary-background-color);
}

.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;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
  }

.content-text {
    order: 2;
  }

  .content-image {
    order: 1;
    flex: 1;
    text-align: center;
  }

#instances {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--secondary-background-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.instance-card {
    background-color: var(--background-color);
    padding-bottom: 80px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s easTippe;
    position: relative;
    overflow: hidden;
}

.instance-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.instance-header {
    height: 120px;
    width: 100%;
    object-fit: cover;
    position: relative;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
}

.instance-software {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    z-index: 2;
}

.instance-card h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #fff;
}

.instance-card p {
    font-size: 1rem;
    color: #bbb;
    margin: 0 20px 20px 20px;
}

.bigger-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
}

.instance-card .bigger-button {
    position:absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.bigger-button:hover {
    background-color: var(--primary-color-hover);
    transform: translate(-50%, -5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hint-box {
    background-color: rgba(75, 86, 104,0.2);
    padding: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    margin: 20px 0;
    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;
    background-color: var(--background-color);
    padding: 20px;
}

footer nav a {
    color: #ddd;
    margin: 0 10px;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 10px;
    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;
}

/* Buttons */
button {
    display: inline-block;
    background-color: var(--primary-color, #6364FF);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: var(--primary-color-hover, #4444CC);
    transform: translateY(-2px);
}

button:active {
    background-color: var(--primary-color-hover, #4444CC);
    transform: translateY(0);
}

.popup-content h5 {
    margin: 20px 0 10px;
    font-size: 1.2rem;
    color: var(--primary-color, #333);
}

.popup-content a {
    color: var(--primary-color, #6364FF);
    text-decoration: none;
}

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

/* Hintergrund für das Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: none;
}

.popup-overlay.active {
    display: block;
}