:root {
  --accent-color: #007bff; 
  --accent-color-hover: #0056b3;
  --dark-bg: #12181f; 
  --card-bg: #1a222b; 
  --text-color: #e0e7ef; 
  --text-color-secondary: #adb5bd; 
  --text-color-headings: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-overlay-bg: rgba(18, 24, 31, 0.85);
  --card-overlay-blur: 4px; 
  --icon-bottom-spacing: 1.5rem;
  --icon-size-inactive: 3.8rem;
  --icon-size-active: 5rem;
  --overlay-text-area-min-height: 9rem;
}

body,
html {
  align-items: center;
  background-color: var(--dark-bg);
  display: flex;
  flex-direction: column;
  /* Font-Family wird durch Google Fonts Link im HTML gesetzt */
  font-family: "Roboto", "Segoe UI", Arial, sans-serif; 
  font-size: 10px; 
  min-height: 100vh;
  justify-content: flex-start;
  margin: 0;
  padding: 3rem 2rem;
  width: 100%;
  box-sizing: border-box;
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

/* Lokale @font-face Definitionen entfernt, da Google Fonts verwendet wird. */
/* Falls du lokale Fonts doch brauchst, müssen die Pfade relativ zu style.css sein: */
/* 
@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400; 
}
@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
}
*/

.page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px; 
  gap: 3.5rem; 
}

.page-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-color-headings);
  letter-spacing: 0.5px;
}

.page-header .subtitle {
  font-size: 1.7rem;
  font-weight: 300; 
  color: var(--text-color-secondary);
}

.flex-card-wrapper {
  width: 100%;
  height: 50vh; 
  max-height: 38rem; 
  display: flex;
  align-items: stretch; 
  gap: 1.2rem; 
}

.flex-card-wrapper .flex-card-container {
  height: 100%; 
  flex-grow: 1;
  flex-basis: 10%;
  transition: flex-basis 500ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms ease-out;
  border-radius: 16px; 
  cursor: pointer;
  overflow: hidden; 
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg); 
}

.flex-card-wrapper .flex-card-container:hover {
    box-shadow: 0 6px 18px var(--shadow-color);
    transform: translateY(-2px); 
}

.flex-card-wrapper .flex-card-container.active {
  flex-basis: 55%; 
  box-shadow: 0 8px 24px var(--shadow-color);
}

.flex-card-wrapper .flex-card-container .icon-wrapper {
  position: absolute;
  bottom: var(--icon-bottom-spacing);
  left: 50%;
  transform: translateX(-50%);
  width: var(--icon-size-inactive);
  height: var(--icon-size-inactive);
  border-radius: 12px; 
  background-color: rgba(37, 49, 70, 0.8); 
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 3; 
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
              height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.flex-card-wrapper .flex-card-container.active .icon-wrapper {
  width: var(--icon-size-active); 
  height: var(--icon-size-active);
  bottom: calc(var(--icon-bottom-spacing) + var(--overlay-text-area-min-height) - (var(--icon-size-active) / 2) + 1rem); 
}

.flex-card-wrapper .flex-card-container .icon-wrapper .icon {
  width: 60%; 
  height: 60%;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pfade zu Hintergrundbildern: Angenommen, 'Bilder' ist ein Unterordner von dem Ort, wo style.css liegt */
.flex-card-wrapper .flex-card-container.bild-1 { background-image: url("./Bilder/insta.png"); }
.flex-card-wrapper .flex-card-container.bild-2 { background-image: url("./Bilder/Youtu.png"); }
.flex-card-wrapper .flex-card-container.bild-3 { background-image: url("./Bilder/Twitch-Streamers-Banner.avif"); }
.flex-card-wrapper .flex-card-container.bild-4 { background-image: url("./Bilder/3d drucker.jpg"); } /* Leerzeichen im Dateinamen vermeiden, wenn möglich */
.flex-card-wrapper .flex-card-container.bild-5 { background-image: url("./Bilder/3d drucker 2.jpg"); } /* Leerzeichen im Dateinamen vermeiden */

.flex-card-wrapper .flex-card-container .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2; 
  padding: 1.5rem;
  padding-bottom: calc(var(--icon-bottom-spacing) + var(--icon-size-inactive) + 1rem); 
  display: flex; 
  flex-direction: column;
  justify-content: flex-end; 
  align-items: center; 
  text-align: center; 
  width: 100%;
  min-height: var(--overlay-text-area-min-height); 
  opacity: 0; 
  transform: translateY(20px); 
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--card-overlay-bg) 60%, var(--card-overlay-bg) 100%);
  backdrop-filter: blur(var(--card-overlay-blur));
  -webkit-backdrop-filter: blur(var(--card-overlay-blur));
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, 
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
              padding-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.flex-card-wrapper .flex-card-container.active .overlay {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1.5rem; 
}

.flex-card-wrapper .flex-card-container .overlay .text-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%; 
}

.flex-card-wrapper .flex-card-container .overlay .text-content h3 {
  font-size: 1.8rem; 
  font-weight: 500; 
  color: var(--text-color-headings);
  margin: 0 0 0.4rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.flex-card-wrapper .flex-card-container .overlay .text-content p {
  font-size: 1.2rem; 
  font-weight: 300;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
  max-width: 90%; 
}

.social-links-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; 
  width: 100%;
  max-width: 70rem;
  padding: 1.5rem 0;
}

.social-links-wrapper h2 {
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--text-color-headings);
  margin-bottom: 1rem;
  text-align: center;
}

.social-links-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem; 
}

.magnatic-container-link {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  position: relative;
  padding: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  width: 8rem; 
  height: 8rem;
  border-radius: 12px; 
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.magnatic-container-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
    border-color: var(--accent-color);
}

.magnatic-container-link .magnetic-element {
  width: 3.2rem; 
  height: 3.2rem;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.15s ease-out; 
}
.magnatic-container-link .magnetic-element img {
  height: 100%;
  width: 100%;
  vertical-align: middle; 
  object-fit: contain;
}
.magnatic-container-link .magnetic-background {
  background-color: transparent; 
  border-radius: inherit; 
  position: absolute;
  width: 100%; 
  height: 100%;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.15s ease-out; 
}

.magnatic-container-link .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: auto;
  white-space: nowrap;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  position: absolute;
  z-index: 10;
  bottom: 115%; 
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
  font-size: 1.2rem;
}

.magnatic-container-link:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.page-footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0; 
    font-size: 1.3rem; 
    color: var(--text-color-secondary);
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 70rem;
}


@media (max-width: 900px) { 
  .flex-card-wrapper {
    flex-direction: column;
    height: auto; 
    max-height: none;
    gap: 1.5rem;
  }
  .flex-card-wrapper .flex-card-container,
  .flex-card-wrapper .flex-card-container.active {
    width: 100%; 
    flex-basis: auto;
    height: 18rem; 
  }
  .flex-card-wrapper .flex-card-container.active {
    height: 28rem; 
  }

  .flex-card-wrapper .flex-card-container .overlay {
    padding-bottom: calc(var(--icon-bottom-spacing) + var(--icon-size-inactive) + 1rem);
  }
  .flex-card-wrapper .flex-card-container.active .icon-wrapper {
     bottom: calc(var(--icon-bottom-spacing) + var(--overlay-text-area-min-height) - (var(--icon-size-active) / 2) + 0.5rem); 
  }
}

@media (max-width: 768px) {
  body, html {
    padding: 2.5rem 1.5rem;
  }
  .page-header h1 {
    font-size: 3.2rem;
  }
  .page-header .subtitle {
    font-size: 1.6rem;
  }
  .social-links-wrapper h2 {
    font-size: 2.2rem;
  }
  .magnatic-container-link {
    width: 7rem;
    height: 7rem;
  }
  .magnatic-container-link .magnetic-element {
    width: 3rem;
    height: 3rem;
  }
  .social-links-row {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) { 
    .page-header h1 {
        font-size: 2.6rem;
    }
    .page-header .subtitle {
        font-size: 1.4rem;
    }
    .flex-card-wrapper .flex-card-container,
    .flex-card-wrapper .flex-card-container.active {
        height: 16rem;
    }
    .flex-card-wrapper .flex-card-container.active {
        height: 24rem;
    }
    .flex-card-wrapper .flex-card-container .overlay .text-content h3 {
        font-size: 1.7rem;
    }
    .flex-card-wrapper .flex-card-container .overlay .text-content p {
        font-size: 1.1rem;
    }
    .magnatic-container-link {
        width: 6.5rem;
        height: 6.5rem;
    }
    .magnatic-container-link .magnetic-element {
        width: 2.8rem;
        height: 2.8rem;
    }
    .magnatic-container-link .tooltip-text {
        display: none; 
    }
}