
:root {
  --color-accent: #cc00e5;
  --color-signal: #000000;
  --content-width: 720px;
  --color-title: var(--color-accent);
  --color-black: black;
  --color-white: white;
  font-size: 18px;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-signal);
}

@font-face {
  font-family: Cygrotesk;
  src: url("fonts/Schrift Lauftext CyGrotesk-KeyRegular.woff2") format("woff2"),
    url("assets/fonts/Schrift Lauftext CyGrotesk-KeyRegular.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Cygrotesk;
  src: url("fonts/Schrift Titel CyGrotesk-KeyBold.woff2") format("woff2"),
    url("fonts/Schrift Titel CyGrotesk-KeyBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Cygrotesk;
  min-height: 100vh;
  color: var(--color-white);
}

a {
  color: var(--color-accent);
}

h1 {
  font-size: 3rem;
}

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

h2 {
  font-size: 2.5rem;
}

h2 a {
  text-decoration: underline;
  color: var(--color-white);
}

p {
  line-height: 1.8;
}

main {
  background-color: var(--color-signal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
}

main > * {
  max-width: var(--content-width);
}

header {
  width: 100%;
  background-color: var(--color-signal);
  color: var(--color-title);
  text-transform: uppercase;
  font-family: Cygrotesk;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  overflow-wrap: break-word;
  hyphens: auto;
}

header section {
  max-width: var(--content-width);
  padding-bottom: 0;
  z-index: 100;
  background-color: var(--color-signal);
  background-image: url("bachelor-purple.png");
  background-repeat: no-repeat;
  background-size: auto 90%;
  background-position-y: bottom;
  background-position-x: right;
  height: 350px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (max-width: 768px) {
  header section {
    height: 700px; /* reduce height */
    background-size: 450px; /* scale image proportionally */
    background-position: center bottom; /* move to bottom center */
  }
  h1 {
    text-align: center;
  }
  main {
    width: 90%;
  }
}

footer {
  background-color: var(--color-accent);
  width: 100%;
  color: var(--color-white);
  margin: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

footer a {
  color: var(--color-white);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;        /* allow buttons to wrap to the next line */
  gap: 10px;              /* optional: space between buttons */
  justify-content: flex-start; /* align buttons to the start */
  margin-bottom: 1rem
}

.share-buttons button {
  flex: 1 1 auto;         /* allow buttons to shrink if needed */
  min-width: 120px;       /* optional: prevent buttons from being too small */
}

button {
  background-color: var(--color-title);
  color: var(--color-white);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 3px;
  box-shadow: rgba(0, 0, 0, 0.5) 1px 3px 1px;
  cursor: pointer;
  transition: all linear 100ms;
	margin: 0.2rem;
}

button:hover {
  transform: scale(1.05);
  box-shadow: rgba(0, 0, 0, 0.5) 5px 3px 1px;
}

.lang-switch {
  align-self: flex-end;
}

main section {
  width: 100%;
  max-width: var(--content-width);
}

#mehr-infos-div {
  text-align: center;
  padding: 2rem;
}
