*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  padding-left: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  line-height: 1.4;
  color: white;
  background-color: #0d172c;
  cursor: var(--special-cursor);
}

:root {
  --color-accent: #d4145a;
  --special-cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='48' style='fill:black;font-size:24px;'><text y='50%'>🐊</text></svg>")
      16 0,
    auto;
}

@font-face {
  font-family: "DM Sans";
  font-weight: 100 700;
  font-style: normal;
  src: url("/assets/fonts/DM_Sans/DMSans-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-display: swap;
}

main {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  padding: 1rem 2rem;
  flex: 1;
  margin-bottom: 2rem;
}

p {
  font-size: 1.1rem;
}

h1,
h2 {
  font-family: "DM Sans", sans-serif;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

a {
  color: white;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-accent);
}

span {
  font-weight: 300;
  font-size: 1rem;
}

.boxradius {
  border-radius: 1rem;
}

/* ======================================================== */
/* ============== UNTERSEITEN CONTENT-BOX ================= */
/* ======================================================== */

.contentsite {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

/* ========================================================= */
/* ======================= HEADER ========================== */
/* ========================================================= */

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========================================================= */
/* ======================= FOOTER ========================== */
/* ========================================================= */

.site-footer {
  padding: 2rem;
  padding-top: 0rem;
  margin-top: auto; /* Footer bleibt unten */
  max-width: 1000px;
  margin: 0 auto;
}

.footer-container {
  background-color: #202d43;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

@media (max-width: 800px) {
  .footer-container {
    flex-direction: column;
  }
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--color-accent);
}

.external-icon {
  font-size: 0.8em;
  margin-left: 0.25rem;
  display: inline-block;
}

/* ========================================================= */
/* ======================= BUTTONS ========================= */
/* ========================================================= */

.button {
  text-align: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  color: white;
}

.button a,
.button.primary a {
  text-decoration: none;
}

/* Primärer Button */
.button.primary {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #d4145a 0%, #9332ff 100%);
  text-align: center;
  text-decoration: none;
}

.button.primary:hover {
  transform: scale(1.02);
}

.button-wrapper {
  margin: 0 auto;
}

/* ========================================================= */
/* ===================== INTRO SECTION ===================== */
/* ========================================================= */

.intro-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  width: 80%;
}

@media (max-width: 800px) {
  .intro-section {
    width: 100%;
  }
}

.intro-p {
  font-size: 2rem;
  color: white;
}

/* ============================================================= */
/* ======================== Projekte =========================== */
/* ============================================================= */

.projekte-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .projekte-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.projekt-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
  cursor: not-allowed;
}

.projekt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
