/*!
Theme Name: TD-Theme
Author: Daniela Ramminger
Description: Thomas Diebald
Tested up to: 6.8.1

Requires PHP: 8.3
*/

@charset "UTF-8";

:root {
  --base-bg-color: #070707;
  --base-color: #ece3e3;
  --button-color: #363536;
  --navbar-bg-color: #000000;
  --primary-color: #d0aa6b;
  --primary-rgb: 0, 192, 255;
  --secondary-color: #272521;
  --nav-height-mobile: 60px;
  --nav-height-desktop: 100px;
  --parallax-bg-color: #ffffff;
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.5px;
  scroll-behavior: smooth;
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 20px;
  }
}
body {
  margin: 0;
  padding-top: var(--nav-height-mobile);
  background: linear-gradient(
    180deg,
    var(--navbar-bg-color) 0,
    var(--secondary-color) 100%
  );
  background-attachment: fixed;
  color: var(--base-color);
  font-family: "Segoe UI", sans-serif;
  font-weight: normal;
  font-style: normal;
  overflow-x: hidden;
}

@media screen and (min-width: 900px) {
  body {
    padding-top: var(--nav-height-desktop);
  }
}

h1 {
  font-weight: 600;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif !important;
}

h1 {
  font-size: clamp(1.965em, 7vw, 70px);
  line-height: 1.2;
  margin-top: 1.5em;
}

h2 {
  font-size: clamp(1.53em, 4vw, 40px);
  line-height: 1.1;
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1.2em;
}

h5 {
  font-size: 1.1em;
}

h6 {
  font-size: 1em;
}

.hero-h1,
.hero {
  font-family: "Segoe UI Bold", sans-serif !important;
}
.wp-block-heading.hero-h1,
.hero-h1 {
  font-size: clamp(2.1rem, 6vw, 105px) !important;
  line-height: 1;
}
.wp-block-heading.hero2-h3 {
  font-size: clamp(1.8rem, 6vw, 105px) !important;
  line-height: 1;
}
.wp-block-heading.keynote-h3 {
  font-size: clamp(1.6rem, 5vw, 105px) !important;
  line-height: 1;
}
.wp-block-heading.b2b-h3 {
  font-size: clamp(2.5rem, 6vw, 105px) !important;
  line-height: 1;
}

.is-style-headline::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  transform: translateX(-10px);
}

img:not([src$="svg"]) {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

figure {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
}

a:active {
  color: var(--base-color);
}

.container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5px;
  padding-right: 5px;
}

@media screen and (min-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.columns > .column {
  margin-top: 15px;
}

@media screen and (min-width: 768px) {
  .columns {
    display: flex;
    gap: 15px;
  }

  .columns > .column {
    flex-basis: 0;
    flex-grow: 1;
  }
}

@media screen and (min-width: 1200px) {
  .columns {
    gap: 30px;
  }
}

.actions {
  text-align: center;
  margin-top: 2em;
}

/* ===== Button Base Style ===== */
.wp-block-button__link {
  border-radius: 999px;
  font-weight: 400;
  padding: 0.6em 1.6em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.3s ease;
}

/* ===== Custom Button Styles ===== */
.wp-block-button.is-style-primary .wp-block-button__link {
  border: 1px solid var(--base-color) !important;
  background: transparent !important;
}

.wp-block-button.is-style-secondary .wp-block-button__link {
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  background: transparent !important;
}

/* ===== Button Hover  ===== */
.wp-block-button.is-style-primary .wp-block-button__link:hover {
  background: var(--base-color) !important;
  color: var(--base-bg-color) !important;
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
  background: var(--primary-color) !important;
  color: var(--base-bg-color) !important;
}

/* ===== Arrow Icon inside Button ===== */
.wp-block-button .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  background-color: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.25 12l-6.5-6.5-1.5 1.5 4.72 4.75H5.5v2h9.97l-4.72 4.75 1.5 1.5 6.5-6.5z"/></svg>');
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.25 12l-6.5-6.5-1.5 1.5 4.72 4.75H5.5v2h9.97l-4.72 4.75 1.5 1.5 6.5-6.5z"/></svg>');
  transition: transform 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover::after {
  transform: translateX(4px);
}

.wp-block-media-text .wp-block-media-text__content {
  padding: 0;
}

#to-top {
  width: 40px;
  height: 40px;
  background-color: transparent;
  backdrop-filter: blur(28px);
  color: var(--base-color);
  box-shadow:
    inset 8px -3px 5px #0d0d0d,
    inset -8px 8px 16px hsl(0, 0%, 18%);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 1rem;
  text-transform: uppercase;
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 400ms ease-in-out,
    transform 300ms ease-in;
}

#to-top.show {
  opacity: 1;
  pointer-events: all;
}

#to-top:hover {
  transform: translateY(-10%);
}

#top-top:active {
  color: var(--base-bg-color);
  box-shadow: inset 0 0 5px rgba(211, 208, 208, 0.6);
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--nav-height-mobile);
  background-color: var(--navbar-bg-color);
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height-mobile);
}

@media screen and (min-width: 900px) {
  #navbar,
  #navbar .container {
    height: var(--nav-height-desktop);
  }
}

#brand {
  height: 60px;
}

@media screen and (min-width: 900px) {
  #brand {
    height: 100px;
  }
}

#brand img {
  height: 100%;
}

#brand img:not([src$="svg"]) {
  width: auto;
}

.nav-menu,
.sub-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#nav-main {
  position: fixed;
  top: var(--nav-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navbar-bg-color);
  padding: 2rem 15px;
  text-align: center;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-in-out;
}

@media screen and (min-width: 900px) {
  #nav-main {
    position: static;
    opacity: 1;
    pointer-events: all;
    background-color: transparent;
    padding: 0;
    display: flex;
    gap: 2em;
    overflow: visible;
  }
}

#nav-main a {
  display: inline-block;
  color: var(--base-color);
  text-decoration: none;
  padding: 1em 0;
  font-weight: 500;
  text-transform: uppercase;
}

#nav-main a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

#nav-main a:active {
  color: var(--secondary-color);
}

#nav-main .current-menu-item > a {
  color: var(--primary-color);
}

#nav-main > li > a {
  font-size: 1.765em;
}

@media screen and (min-width: 900px) {
  #nav-main > li {
    position: relative;
  }

  #nav-main > li > a {
    font-size: 1em;
    padding: 0;
    line-height: var(--nav-height-desktop);
  }

  #nav-main .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 200px;
    background-color: var(--base-bg-color);
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-in-out;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    padding: 0.5em 0;
  }

  #nav-main .sub-menu::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 16px 10px;
    border-color: transparent transparent var(--base-bg-color) transparent;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
  }

  #nav-main li:hover > .sub-menu {
    opacity: 1;
    pointer-events: all;
  }
}

#menu-button {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  margin-right: 10px;
}

@media screen and (min-width: 900px) {
  #menu-button {
    display: none;
  }
}

#menu-button-icon,
#menu-button-icon::before,
#menu-button-icon::after {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

#menu-button-icon {
  position: relative;
  transition: background-color 250ms linear;
}

#menu-button-icon::before,
#menu-button-icon::after {
  content: "";
  transition: transform 250ms linear;
  position: absolute;
  left: 0;
  top: 0;
}

#menu-button-icon::before {
  transform: translateY(-10px);
}

#menu-button-icon::after {
  transform: translateY(10px);
}

#nav-toggle {
  display: none;
}

#nav-toggle:checked ~ #menu-button #menu-button-icon {
  background-color: transparent;
}

#nav-toggle:checked ~ #menu-button #menu-button-icon::before {
  transform: rotate(-45deg);
}

#nav-toggle:checked ~ #menu-button #menu-button-icon::after {
  transform: rotate(45deg);
}

#nav-toggle:checked ~ #nav-main {
  opacity: 1;
  pointer-events: all;
}

.grid-container {
  display: grid;
  grid-template-columns: (1, 1fr);
  gap: 15px;
}

@media screen and (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-item {
  border-radius: 25px;
  padding: 20px;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.post-title {
  margin-top: 10px;
  font-size: 20px;
  font-family: "Segoe UI Bold", sans-serif !important;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: box-shadow 200ms linear;
}

.project .project-caption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  background-color: var(--secondary-color);
  padding: 0.4em 0.6em;
  border-radius: 8px;
  text-align: center;
  transform: translateY(200%);
  transition: transform 200ms ease-in-out;
}

.project .project-title {
  font-weight: 500;
  margin: 0;
  font-size: 1em;
}

.project .project-title a {
  color: var(--base-color);
  text-decoration: none;
}

.project:hover {
  box-shadow: 0 3px 6px rgba(255, 255, 255, 0.2);
}

.project:hover .project-caption {
  transform: translateY(0);
}

@media screen and (hover: none) {
  .project .project-caption {
    transform: translateY(0);
  }
}

.projects-grid {
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

@media screen and (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post {
  border-radius: 25px;
  background: var(--base-bg-color);
  box-shadow:
    inset 8px -8px 16px #0d0d0d,
    inset -8px 8px 16px #2f2f2f;
  padding: 1rem;
  margin-top: 1.5em;
  transition: box-shadow 200ms linear;
}

.post:hover {
  box-shadow: 0 3px 6px rgba(255, 255, 255, 0.2);
}

.post .post-title {
  margin: 20px 0;
  font-weight: 500;
}

.post .post-title a {
  color: var(--base-color);
}

.post .meta > *,
.single-post .meta > * {
  display: inline-block;
  font-size: 0.85em;
}

.post .meta .date,
.single-post .meta .date {
  margin-right: 0.6em;
  padding-right: 0.6em;
  border-right: 1px solid var(--base-color);
}

.single-post .meta {
  margin-bottom: 4em;
}

.single-post .meta.tags {
  margin-top: 4em;
}

.attachment-medium {
  width: 600px;
  height: 300px;
}

.pagination {
  margin-top: 2em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
}

.pagination > * {
  display: inline-block;
  padding: 0.2em 0.4em;
}

.pagination a {
  color: var(--base-color);
  text-decoration: none;
}

.pagination a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.pagination .current {
  color: var(--primary-color);
  font-weight: 600;
}

#footer-page {
  margin-top: 120px;
  border-top: 1px solid var(--navbar-bg-color);
  padding-top: 15px;
  padding-bottom: 30px;
  text-align: center;
  align-items: center;
  line-height: 42px;
}

#footer-page a {
  color: var(--base-color);
  text-decoration: none;
}

#footer-page a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  font-size: 1.6em;
  margin: 0.2em;
}

#nav-footer {
  order: -1;
}

#nav-footer li {
  display: inline-block;
  padding: 0 0.2em;
}

@media screen and (min-width: 768px) {
  #footer-page #nav-footer {
    text-align: left;
  }

  #footer-page .copyright {
    text-align: right;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.hasborderradius img {
  border-radius: 25px;
  transition: transform 0.2s;
  margin: 0 auto;
  display: block;
}

.hasborderradius img:hover {
  transform: scale(1.05);
  box-shadow: 10px 10px 53px -16px rgba(219, 218, 210, 0.195);
}

.logoshadow img {
  transition: transform 0.2s;
  margin: 0 auto;
  display: block;
}

.logoshadow img:hover {
  filter: drop-shadow(16px 5px 30px #5a585842);
  transform: scale(0.5);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% 50vw);
  width: 100vw;
  max-width: 100vw;
}

.alignwide {
  margin-left: calc(25% - 25vw);
  margin-right: calc(25% - 25vw);
}

.animate {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.animated {
  opacity: 1;
}

.container-logo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.container-logo img {
  width: 100%;
  height: auto;
}

.container-logo img:hover {
  filter: drop-shadow(5px 5px 10px rgba(189, 160, 67, 0.821));
}

@media (max-width: 480px) {
  .container-logo {
    grid-template-columns: repeat(2, 1fr);
  }

  .container-logo img {
    transform: scale(1.2);
    padding: 1rem;
  }
}

.container404 {
  position: relative;
  width: 100%;
  text-align: center;
}

.bubble {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: inset 0 0 25px var(--primary-color);
  animation: animate_4010 8s ease-in-out infinite;
  z-index: -1;
  margin-top: 100px;
}

.bubble:nth-child(1) {
  left: 20%;
  top: 50px;
}

.bubble:nth-child(2) {
  left: 20%;
  top: 10px;
  animation-delay: -4s;
}

.bubble:nth-child(3) {
  left: 15%;
  top: 20px;
  animation-delay: -6s;
}

.bubble:nth-child(4) {
  left: 40%;
  top: 70px;
  animation-delay: -3s;
}

.bubble:nth-child(5) {
  left: 50%;
  top: 50px;
  animation-delay: -5s;
}

@keyframes animate_4010 {
  0%,
  100% {
    transform: translateY(-20px);
  }

  50% {
    transform: translateY(20px);
  }
}

.haspadding {
  padding: 0 25px;
}

.nomargin {
  margin-top: 0;
}

.overlay {
  filter: brightness(80%);
}

.transparent {
  color: transparent;
}
.center {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
