/* --- TYPEFACES - SCHRIFTARTEN EINBINDEN -------------------------- */
@font-face {
  font-family: 'dieKittieb_sans';
  src: url('assets/fonts/MerriweatherSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
}
@font-face {
  font-family: 'dieKittieb_sans';
  src: url('assets/fonts/MerriweatherSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
}
@font-face {
  font-family: 'dieKittieb_serif';
  src: url('assets/fonts/Lora-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: normal;
}
@font-face {
  font-family: 'dieKittieb_serif';
  src: url('assets/fonts/Lora-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 800;
  font-style: italic;
}
@font-face {
  font-family: 'dieKittieb_typewriter';
  src: url('assets/fonts/SpecialElite.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'dieKittieb_handwriting';
  src: url('assets/fonts/Caveat-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
}
/* --- VARIABLENDEFINITION ----------------------------------------- */
:root {
  /* --- Schriften ------------------------------------------------- */
  --tf-sans: "dieKittieb_sans", sans-serif;
  --tf-serif: "dieKittieb_serif", serif;
  --tf-hand: "dieKittieb_handwriting", serif;
  /* --- Farbpalette ----------------------------------------------- */
  --color-diff: 5%;   /* MUSS: (0% + 2*color-diff) < l-Wert der Akzente < (100% - 2*color-diff) */
  --color-primary: hsl(172deg 90% 20%);
  --color-fastschwarz: hsl(from var(--color-primary) h s var(--color-diff));
  --color-fastweiss: hsl(from var(--color-primary) h s calc(100% - var(--color-diff)));
}
/* --- NORMALIZE.CSS / Grundlegende Einstellungen ------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  font-family: var(--tf-sans);
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
/* ----- U T I L I T Y - C L A S S E S ----------------------------- */
.u-tf-size200 { font-size: 2rem; }
.u-tf-size080 { font-size: 0.8rem; }
.u-tf-size125 { font-size: 1.25rem; }
.u-tf-hand { font-family: "dieKittieb_handwriting", serif; }
.u-tf-typewriter { font-family: "dieKittieb_typewriter", monospace }
.u-alignCentered { text-align: center; }
.u-alignRight { text-align: right; }

.u-hidden { display: none !important; }
.u-hiddenVisually {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}
.u-block { display: block !important; }
.u-inline { display: inline !important; }
.u-inlineBlock {
  display: inline-block !important;
  max-width: 100%; /* 1 */
}
.u-posFit,
.u-posAbsoluteCenter,
.u-posAbsolute {
  position: absolute !important;
}
/* Element will be centered to its nearest relatively-positioned ancestor. */
.u-posFixedCenter,
.u-posAbsoluteCenter {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.u-posFit,
.u-posFullScreen {
  bottom: 0 !important;
  left: 0 !important;
  margin: auto !important;
  right: 0 !important;
  top: 0 !important;
}
/* 1. Make sure fixed elements are promoted into a new layer(performance) */
.u-posFullScreen,
.u-posFixedCenter,
.u-posFixed {
  backface-visibility: hidden; /* 1 */
  position: fixed !important;
}
.u-posRelative { position: relative !important; }
.u-posStatic { position: static !important; }


/* --- Theming und allgemeines Layout ------------------------------ */
body {
  background-color: var(--color-fastweiss);
  color: var(--color-fastschwarz);
}
a {
  text-decoration: underline;
  color: var(--color-primary);
  outline-color: transparent;
  font-weight: 500;
}
a:visited {
  text-decoration: underline;
  color: hsl(from var(--color-primary) h s calc(l-var(--color-diff)));
  outline-color: transparent;
  font-weight: 500;
}
a:focus {
	outline-color: var(--color-primary);
}
a:hover {
  background-color: var(--color-primary);
  text-decoration: none;
  color: var(--color-fastweiss);
  outline-color: transparent;
  font-weight: 500;
}
a:active {
	color: hsl(from var(--color-primary) h s calc(l+var(--color-diff)));
	background-color: var(--color-fastweiss);
	outline-color: hsl(from var(--color-primary) h s calc(l+var(--color-diff)));
}
a[href^="http"]::after {
	font: var(--fa-font-solid);
  content: "\f08e";
  display: inline-block;
  margin-left: 0.45em;
}
a[href^="mailto"]::before {
	font: var(--fa-font-solid);
  content: "\f0e0";
  display: inline-block;
  margin-right: 0.45em;
}
a[href^="phone"]::before {
	font: var(--fa-font-solid);
  content: "\f095";
  display: inline-block;
  margin-right: 0.45em;
}

/* --- ALLGEMEINER AUFBAU DER SEITE -------------------------------- */
/* --- Zuweisung und allgemeine Formatierungen --------------------- */
body {
  font-family: var(--tf-sans);
  padding: 0 2rem 0 2rem;
}

body > div {
	position: relative;
	margin: 1rem auto 0 auto;
  width: 80%;
	max-width: 65rem;
}
@media (max-width: 768px) {
	body {
		padding: 0;
	}
  body > div {
		width: 100%;
		margin: 0 auto;
    padding: 0 1rem 0 1rem;
	}
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
}
/* --- LANDINGPAGE ------------------------------------------------- */
body:has(> .landingpage) {
  background-image: url("./assets/images/dalle-logo.jpg");
  background-size:cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Merriweather_Sans', sans-serif;
  font-size: 1.15rem;
  color: #333;
  text-align: center;
}
.landingpage {
  display: flex;
  width: 80%;
  max-width: 70rem;
  margin: 2rem auto;
  gap: 2rem;
  flex-direction: column;
	align-items: center;
	flex-wrap: wrap;
}
.karte {
  width: 90%;
  background-color: hsla( 100deg 50% 100% / 0.6);
  background-color: hsla(from var(--color-fastweiss) h s l / 0.6);
	backdrop-filter: blur(0.7rem);
  color: var(--color-fastschwarz);
  padding: 2rem;
	border-radius: 1rem;
	border: 1px solid hsla(from var(--color-fastschwarz) h s l / 0.568);
	overflow: hidden;
	display: flex;
	flex-direction: row;
	gap: 3rem;
}
.karte > .portraits {
	width: 17rem;
	text-align: center;
	padding: 0 1rem;
	overflow: hidden;
	flex-shrink: 0;
    flex-grow: 0;
}
.karte img {
	width: 15rem;
	max-width: 100%
	height: auto;
	border-radius: 1rem;
	object-fit: cover;
}
.karte .contents {
	text-align: left;
}
@media (max-width: 768px) {
	body:has(> .landingpage) {
		font-size: 1rem;
	}
  .landingpage {
    width: 100%;
		padding: 1rem;
  }
	.karte {
		flex-direction: column;
		align-items: center;
		flex-wrap: nowrap;
	}
	.karte > .portraits {
		max-width: 60%;
	}
}
/* --- HAUPTBEREICH INHALT - für alle Content-Seiten --------------- */
.maincontent { /* Container für Inhaltstexte */
	position: relative;
	padding-top: 2rem;
	padding-bottom: 2rem;
}
.maincontent h1 {
  display: block;
  text-align: center;
  font-weight: 300;
  margin: 1rem auto;
}
.maincontent hr {
  border-top: 3px solid var(--color-primary);
}
.maincontent h2 {
  font-weight: 500;
  margin-top: 2rem;
}
p, ul, li {
  margin-top: 1rem;
}
.fotocontainer {
  display: flex;
  width: 100%;
  margin: 2rem auto;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
ul.polaroid li {
  list-style: none;
  max-width: 15rem;
  display: inline-block;
  background-color: white;
  background: linear-gradient(110deg, white, oldlace);
  box-shadow: 4px 4px 15px gray;
  vertical-align: top;
  margin: 1.3rem;
  position: relative;
  transform: rotate(4deg);
  transition: all ease 0.6s;
}
ul.polaroid img {
  max-width: 90%;
  height: auto;
  margin: 5% 5% 0 5%;
}
ul.polaroid span {
  display: inline-block;
  width: 90%;
  min-height: 54px;
  margin: 0 5% 5% 5%;
  text-align: center;
  font-family: var(--tf-hand);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 600;
}
figure.polaroid {
  background: white;
  background: linear-gradient(110deg, white, oldlace);
  box-shadow: 4px 4px 15px gray;
  max-width: 15rem;
  vertical-align: top;
}
figure.polaroid img {
  max-width: 90%;
  height: auto;
  margin: 5% 5% 0 5%;
}
figure.polaroid figcaption {
  width: 90%;
  min-height: 52px;
  margin: 0 5% 5% 5%;
  text-align: center;
}
ul.polaroid li:nth-child(1) {transform: rotate(4deg);}
ul.polaroid li:nth-child(2) {transform: rotate(-3deg);}
ul.polaroid li:nth-child(3) {transform: rotate(6deg);}
ul.polaroid li:nth-child(4) {transform: rotate(-5deg);}

/* --- INHALTSBLÖCKE - jeder Block für sich, evtl unique machen ---- */
/* --- SPACER ------------------------------------------------------ */
.spacer {
  position: relative;
  height: 2rem;
}
