/*****************************/

/* CSS Variablen */
:root {
  --color-bg: #111110;
  --color-surface: #1a1a19;
  --color-accent: #ea5820;
  --color-text: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.4);
  --radius-sm: 2px;
  --radius-md: 16px;
  --radius-pill: 20px;
  --header-height: 80px;
  --font-title: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-quote: "Cormorant Garamond", serif;

  /* Typografie-Grössen */
  --text-label: 14px;
  --text-cat: 11px;
  --text-body: 18px;
  --text-quote: 26px;
  --text-title: 24px;
  --text-small: 10px;
}

/*****************************/
/* Global Styles */
* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  width: 100%;
  color: var(--color-text);
}

object {
  pointer-events: none;
}

body,
p {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.tile-label,
.filterButton,
.btn {
  font-family: var(--font-title);
}

.tile-text-quote {
  font-family: var(--font-quote);
  font-size: var(--text-quote);
  font-style: italic;
  font-weight: 700;
}

/*****************************/
/* Header */
header {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  transition: all 0.4s ease;

  /* === Kombiniert: Glaseffekt + Accent-Border === */
  background: rgba(17, 17, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid
    color-mix(in srgb, var(--color-accent) 50%, transparent);
}

.noTransition {
  transition: none !important;
}

.headerUp {
  transform: translate(0px, -100%);
}

.home {
  width: auto;
  display: flex;
  align-items: center;
}

.home object,
.home img {
  height: 32px;
  width: auto;
  pointer-events: none;
}

.home-name {
  margin-left: 12px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-name-first {
  color: rgba(255, 255, 255, 0.9);
}

.home-name-slash {
  margin: 0 5px;
  color: var(--color-accent);
}

.home-name-brand {
  color: rgba(255, 255, 255, 0.55);
}

/*****************************/
/* Globale Button-Styles */
.btn {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow:
    3px 3px 6px #0d0d0d,
    -2px -2px 5px #272725;
  white-space: nowrap;
  display: inline-block;
}

.btn:hover {
  color: var(--color-text);
}

.btn--active {
  color: var(--color-accent);
  box-shadow:
    inset 3px 3px 6px #0d0d0d,
    inset -2px -2px 5px #272725;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  background: #c94a1a;
  color: #fff;
}

/*****************************/
/* Filter Buttons */
.filterButton {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 10px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    3px 3px 6px #0d0d0d,
    -2px -2px 5px #272725;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filterButton.is-checked {
  background: var(--color-accent);
  color: #fff;
  box-shadow: none;
}

.filterButton:hover {
  color: var(--color-accent);
}

.filterButton:focus {
  outline: none;
}

/*****************************/
/* Desktop Nav (versteckt auf Mobile) */
.btn-group {
  display: none;
}

.nav-indicator {
  position: absolute;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition:
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

/*****************************/
/* Mobile Nav – Floating Pill */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 6px;
  gap: 2px;
  z-index: 99;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav .filterButton {
  box-shadow: none;
  padding: 11px 20px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.mobile-nav .filterButton.is-checked {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.mobile-nav .filterButton {
  font-size: 11px;
}

/*****************************/
/* Main Container */
#main {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  padding-top: var(--header-height);
}

/*****************************/
/* Kachel Grid */
.grid {
  position: relative;
  width: 100%;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.grid-sizer,
.element-item {
  width: calc(50% - 10px);
  border-radius: var(--radius-sm);
}

.element-item {
  height: 0;
  padding-bottom: calc(50% - 10px);
  margin: 5px;
  overflow: hidden;
  position: relative;
}

.element-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.25s ease;
}

.element-item a {
  touch-action: manipulation;
}

.element-item:hover img {
  transform: scale(1.05);
}

/* Kachelgrössen Mobile */
.item--gross {
  width: calc(100% - 10px);
  padding-bottom: calc(100% - 10px);
}

.item--breit {
  width: calc(100% - 10px);
  padding-bottom: calc(50% - 10px);
}

.item--hoch {
  width: calc(50% - 10px);
  padding-bottom: calc(100% - 10px);
}

/*****************************/
/* Kachel Inhalt */
.tile-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.item--gross .tile-grad {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    transparent 80%
  );
}

.tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px 12px;
  color: #fff;
  font-size: var(--text-title);
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
}

.tile-title-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-cat {
  display: block;
  font-size: var(--text-cat);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 4px;
}

.tile-hero-text {
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.8;
  margin-top: 6px;
}

/* Text-Kacheln */
.item--weiss {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e0e0e0;
}

.item--orange {
  background: var(--color-accent);
}

.tile-text-inner {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.item--weiss .tile-text-inner {
  color: #111;
}

.item--orange .tile-text-inner {
  color: #fff;
}

.item--weiss:hover .tile-text-inner,
.item--orange:hover .tile-text-inner {
  transform: scale(1.05);
}

.tile-text-quote {
  text-align: center;
}

.item--gross .tile-text-quote {
  font-size: var(--text-quote);
}

/*****************************/
/* CV Seite */
.cv-page {
  display: flex;
  justify-content: center;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.cv-page .visitenkarte {
  width: 100%;
  max-width: 600px;
}

.visitenkarte {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0px;
}

.portrait {
  width: 100%;
  text-align: center;
}

.portrait div {
  background-color: #fff;
}

.portrait img {
  width: 50%;
  border-radius: 50%;
  margin-top: 40px;
}

.textVisit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5vw;
  color: #000;
  border-bottom: 1px outset #fff;
  background-color: #fff;
}

.textVisit div,
.textVisit p {
  font-size: 1rem;
}

.textVisit h1 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.3rem;
}

.textVisit p {
  margin-top: 15px;
  margin-bottom: 3px;
}

.rating {
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
}

.visitTitle {
  margin-top: 5px;
  margin-bottom: 10px;
}

.bar,
.bar-bg {
  height: 5px;
  border-radius: 10px;
}

.bar-bg {
  background-color: #eee;
  width: 100%;
}

.bar {
  background-color: var(--color-accent);
  opacity: 0.7;
  width: 50%;
}

.skill,
.language-skill {
  width: 100%;
}

.visitKachel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  width: 100%;
  padding-bottom: 15px;
  border-radius: var(--radius-sm);
  box-shadow: rgb(0 0 0 / 20%) 0 0 20px 0px;
}

.visitKachel-title {
  box-sizing: border-box;
  text-align: left;
  padding: 20px 0;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  border-bottom: 4px solid var(--color-accent);
  color: #000;
  font-weight: 600;
}

.visitKachel p,
.visitKachel-title {
  padding-left: 20px;
}

.fa {
  color: #000;
  font-size: 35px;
  text-decoration: none;
  padding: 0px 12px;
  text-align: center;
  margin: 2px;
}

/*****************************/
/* Utility */
.none {
  display: none !important;
}

.hidden {
  display: none;
}

/*****************************/
/* Desktop */
@media only screen and (min-width: 600px) {
  :root {
    --header-height: 90px;
  }

  .home object,
  .home img {
    height: 36px;
  }

  #main {
    max-width: min(calc(2 * (100vh - var(--header-height))), 1400px);
  }

  /* Header */
  header {
    padding: 27px 20px;
    justify-content: space-between;
  }

  /* Filter Nav */
  .btn-group {
    display: flex;
    gap: 4px;
    background: #0d0d0d;
    border-radius: 30px;
    padding: 4px;
    align-items: center;
    position: relative;
  }

  .btn-group .filterButton {
    position: relative;
    z-index: 1;
  }

  .btn-group .filterButton.is-checked {
    background: transparent;
    color: #fff;
  }

  .mobile-nav {
    display: none;
  }

  .filterButton {
    background: transparent;
    border: none;
    font-size: 10px;
    padding: 7px 16px;
    border-radius: 24px;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: var(--font-title);
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: none;
  }

  .filterButton:focus {
    outline: none;
  }

  /* Kacheln Desktop */
  .grid-sizer,
  .element-item {
    width: calc(25% - 10px);
  }

  .element-item {
    padding-bottom: calc(25% - 10px);
  }

  .item--gross {
    width: calc(50% - 10px);
    padding-bottom: calc(50% - 10px);
  }

  .item--breit {
    width: calc(50% - 10px);
    padding-bottom: calc(25% - 10px);
  }

  .item--hoch {
    width: calc(25% - 10px);
    padding-bottom: calc(50% - 10px);
  }

  .item--gross .tile-grad {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 20%,
      transparent 30%
    );
  }

  .item--gross .tile-cat {
    display: none;
  }

  /* CV */
  .visitenkarte {
    width: 33vw;
    box-shadow: 0px 0px 11px 0px #000;
    overflow: hidden;
  }

  .cv-page .visitenkarte {
    width: 33vw;
  }

  .textVisit {
    padding: 2vw;
  }

  .fa {
    font-size: 50px;
    padding: 0px 20px;
  }
}
