/*** RESET ***/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove default list styles on ul, because normal styling is rarely used */
ul,
ol {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
html,
body {
  height: 100%;
}

body {
  text-rendering: optimizeSpeed;
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.1;
  overflow-wrap: break-word;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*** General Theme ***/
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/open-sans-v36-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/open-sans-v36-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* abril-fatface-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Abril Fatface";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/abril-fatface-v23-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  /* Colors */
  --clr-light: hsl(0, 0%, 96%);
  --clr-dark: hsl(242, 31%, 16%);
  --clr-dark-light: hsl(242, 31%, 31%);
  --clr-1: hsl(9, 93%, 67%);
  --clr-2: hsl(43, 100%, 73%);
  --clr-2-light: hsl(43, 100%, 89%);

  /* Typography */
  --ff-primary: "Open Sans", sans-serif;
  --ff-secondary: "Abril Fatface", serif;

  --fw-primary: 400;

  --fs-200: clamp(0.7738rem, 0.7839rem + -0.013vw, 0.7813rem);
  --fs-300: clamp(0.9375rem, 0.9049rem + 0.163vw, 1.0313rem);
  --fs-400: clamp(1.125rem, 1.038rem + 0.4348vw, 1.375rem);
  --fs-500: clamp(1.35rem, 1.182rem + 0.8402vw, 1.8331rem);
  --fs-600: clamp(1.62rem, 1.3337rem + 1.4315vw, 2.4431rem);
  --fs-700: clamp(1.9438rem, 1.487rem + 2.2837vw, 3.2569rem);
  --fs-800: clamp(2.3325rem, 1.6338rem + 3.4935vw, 4.3412rem);
  --fs-900: clamp(2.7994rem, 1.7602rem + 5.1957vw, 5.7869rem);

  --spacer: 1em;
}

a {
  text-decoration: none;
  color: var(--clr-dark);
}

a:hover,
a:focus {
  color: var(--clr-1);
}

p {
  margin-bottom: 1em;
  hyphens: auto;
}

/*** Typography ***/

body {
  font-family: var(--ff-primary);
  font-weight: var(--fw-primary);
  font-size: var(--fs-400);
  color: var(--clr-dark);
  background-color: var(--clr-light);
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

h1 {
  font-family: var(--ff-secondary);
  font-size: var(--fs-700);
}

h2 {
  font-family: var(--ff-secondary);
  font-size: var(--fs-700);
}

strong {
  font-weight: 700;
}

/*** Layout ***/

.container {
  padding: 0 var(--spacer);
  max-width: 80rem;
  margin: 0 auto;
}

section {
  padding: 4em 0;
}

/*** INDIVIDUAL SECTIONS ***/
header {
  background-color: var(--clr-dark-light);
  color: var(--clr-2);
  padding-block: 2em;
}

.logobox {
  width: 50vw;
  max-width: 300px;
}

.hero {
  background-color: var(--clr-dark-light);
  color: var(--clr-1);
  text-align: center;
}

.quote {
  font-size: var(--fs-900);
  font-family: var(--ff-secondary);
}

.quote-mark {
  font-size: 11.25rem;
  line-height: 0;
}

.intro {
  background: linear-gradient(180deg, var(--clr-dark-light) 50%, var(--clr-light) 50%);
  display: flex;
  align-items: center;
}

.intro-card {
  background-color: var(--clr-2);
  color: var(--clr-dark);
  margin-inline: 0.8em;
  padding: 2em;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

@media (min-width: 50em) {
  .intro-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.intro-center {
  margin-inline: auto;
}

.intro-card-photo {
  max-width: 242px;
  margin-inline: auto;
}

.professions {
  font-size: var(--fs-300);
  line-height: 1.5;
  margin-top: 1em;
}

.systemische_beratung h2 {
  color: var(--clr-1);
}

.about_me {
  background-color: var(--clr-1);
  color: var(--clr-dark-light);
}

.grid {
  display: grid;
  gap: 3em;
}

@media (min-width: 50em) {
  .grid {
    grid-template-areas:
      "grid-image grid-heading"
      "grid-image grid-text";
  }
  .grid-heading {
    grid-area: grid-heading;
  }
  .grid-image {
    grid-area: grid-image;
    align-self: center;
  }
  .grid-text {
    grid-area: grid-text;
  }
}

.contact {
  text-align: center;
  background-color: var(--clr-dark-light);
  color: var(--clr-light);
}

.contact h2 {
  color: var(--clr-1);
}

.contact a {
  color: var(--clr-2);
}

.contact_options {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.contact_option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

@media (min-width: 50em) {
  .contact_options {
    flex-direction: row;
    justify-content: space-evenly;
  }

  .contact_option {
    flex-direction: row;
    gap: 0.8em;
  }
}

.contact_icon {
  width: 32px;
  fill: var(--clr-2);
}

.contact_option:hover,
.contact_option:focus {
  color: var(--clr-2-light);
}

.contact_option:hover .contact_icon,
.contact_option:focus .contact_icon {
  fill: var(--clr-2-light);
}

.flow > * + * {
  margin-top: 2em;
}

footer {
  padding: 2em 0;
}

#footer-nav ul {
  display: flex;
  gap: 2em;
  justify-content: space-evenly;
}

.impressum {
  line-height: 1.1;
}

.impressum h1,
.datenschutz h1 {
  color: var(--clr-dark);
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: var(--fs-900);
}

.datenschutz h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

.datenschutz h3 {
  font-family: var(--ff-secondary);
  font-size: var(--fs-600);
  margin-bottom: 1em;
}

.datenschutz h4 {
  font-family: var(--ff-secondary);
  font-size: var(--fs-500);
}

.datenschutz ul {
  list-style-type: circle;
}
