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

:root {
  --color-accent: #d4145a;
  --border-radius: 1.5rem;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  line-height: 1.4;
  color: white;
  background-color: #0d172c;
}

/* ========================================================= */
/* ====================== TYPOGRAFIE ======================= */
/* ========================================================= */

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

p {
  font-size: 1.1rem;
}

ul {
  padding-left: 1rem;
}

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

/* ========================================================= */
/* ======================== LAYOUT ========================= */
/* ========================================================= */

.outter-wrapper {
  min-height: 100vh;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-container h1 {
  text-align: center;
}

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

.logo {
  width: 120px;
  height: auto;
}

.intro-container {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro {
  font-size: 2rem;
  line-height: 1.2;
  white-space: pre-line;
}

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

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

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

  .intro-container {
    width: 100%;
  }

  .intro {
    font-size: 1.5rem;
  }
}

.projekt-img {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.projekt-img img {
  display: block;
  width: 100%;
  height: auto;
}

.projekt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.projekt-overlay h3 {
  color: white;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.projekt-img:hover .projekt-overlay {
  opacity: 1;
}

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

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

.button.primary {
  width: fit-content;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #d4145a 0%, #9332ff 100%);
  transition: transform 0.2s ease;
  color: white;
}

.button.primary:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.button-wrapper {
  margin: 0 auto;
}

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

.footer-container {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #202d43;
  border-radius: var(--border-radius);
}

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

.footer-container a {
  text-decoration: none;
}

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

.external-icon {
  display: inline-block;

  margin-left: 0.25rem;

  font-size: 0.8em;
}

/* ======================================================*/
/* ========================= 404 ======================== */
/* ====================================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1rem;
  height: 100%;
}
.error-page h1 {
  font-size: 4rem;
}
