/* =============================================
   FONTS
   ============================================= */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Reddit Sans';
  src: url('../fonts/RedditSans-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   THEME VARIABLES
   ============================================= */
:root {
  --bg: #f8f8f6;
  --fg: #0a0a0a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --muted: #666666;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
  --nav-bg: rgba(248, 248, 246, 0.9);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
  --headline-font: 'Reddit Sans', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f0f0ee;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --muted: #999999;
  --card-bg: #141414;
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(10, 10, 10, 0.9);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* =============================================
   UIKIT OVERRIDES
   ============================================= */
.uk-navbar-container {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.uk-navbar-nav > li > a {
  color: var(--fg) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--transition);
}

.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li > a:focus {
  color: var(--accent) !important;
}

.uk-modal-dialog {
  background: var(--card-bg);
  color: var(--fg);
}

.uk-modal-close-default {
  color: var(--muted);
}

/* =============================================
   SITE LOGO / NAV BRAND
   ============================================= */
.nav-logo {
  font-family: var(--headline-font);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--fg) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

/* =============================================
   LANGUAGE SWITCHING
   ============================================= */
.lang-en { display: none; }
[data-lang="en"] .lang-en { display: revert; }
[data-lang="en"] .lang-de { display: none; }

/* =============================================
   LANG TOGGLE
   ============================================= */
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  padding: 0 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg);
  transition: border-color var(--transition), background var(--transition);
}

.lang-toggle:hover {
  background: var(--border);
}

/* =============================================
   OFFCANVAS NAV
   ============================================= */
#offcanvas-nav .uk-offcanvas-bar {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.5rem;
}

[data-theme="dark"] #offcanvas-nav .uk-offcanvas-bar {
  background: rgba(14, 14, 14, 0.95);
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li a {
  display: block;
  font-family: var(--headline-font);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--fg);
  text-decoration: none;
  padding: 0.4rem 0;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.offcanvas-nav-list li a:hover {
  color: var(--accent);
}

.offcanvas-toggles {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.offcanvas-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  cursor: pointer;
  transition: background var(--transition);
}

.offcanvas-close:hover {
  background: var(--border);
}

/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.375rem;
  height: 1rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: border-color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  background: var(--border);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 1.125rem;
  height: 1.125rem;
}

[data-theme="light"] .icon-sun,
:root .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:root .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* =============================================
   SECTION BACKGROUNDS (alternating)
   ============================================= */
section:nth-of-type(odd)  { background: var(--card-bg); }
section:nth-of-type(even) { background: var(--bg); }
[data-theme="dark"] section:nth-of-type(even) { background: #2b2b2b; }

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 2rem 0 5rem;
}

.hero-content {
  max-width: 50rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--headline-font);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin: 0 0 1.5rem;
}

.hero-subline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 35rem;
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.8rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-photo {
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--headline-font);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 35rem;
}

/* =============================================
   WORK SECTION
   ============================================= */
#work, #about, #contact {
  padding: 4.5rem 0;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  overflow: hidden;
}

.project-card-cover .uk-slideshow-items {
  height: 100%;
  min-height: unset !important;
}

.project-card-cover img,
.project-card-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-dotnav {
  padding: 0.5rem 0 0.25rem;
}

.project-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0.75rem 0 0;
}

.project-card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-family: var(--headline-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.project-card-tags,
.skills-grid {
  display: flex;
  flex-wrap: wrap;
}

.tag,
.skill-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  margin: 0.2rem;
  border-radius: 0.375rem;
  border: 1px solid #888;
  color: #888;
  letter-spacing: 0.03em;
}



/* =============================================
   ABOUT SECTION
   ============================================= */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 2rem;
}

/* =============================================
   TISCHLER INFOBOX
   ============================================= */
.tischler-box {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dotted #888;
}

.tischler-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.tischler-media {
  flex: 0 0 35%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 4/3;
}

.tischler-content {
  flex: 1;
  min-width: 0;
}

.tischler-slideshow,
.tischler-slideshow .uk-slideshow-items {
  height: 100%;
}

.tischler-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.membership-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dotted #888;
}

.membership-logo {
  height: 2.5rem;
  width: auto;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.membership-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.tischler-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tischler-title {
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin: 0 0 0.4rem;
}

.tischler-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item .contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item .contact-icon svg {
  width: 100%;
  height: 100%;
}

/* =============================================
   ERROR PAGE
   ============================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-inner {
  max-width: 37.5rem;
  padding: 4rem 0;
}

.error-headline {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--fg);
}

.error-text {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.error-home-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.error-home-link:hover {
  opacity: 0.75;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 2rem 0;
  background: #1d4ed8;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-copy a {
  color: #fff;
}


/* =============================================
   UTILITY
   ============================================= */
.uk-container {
  max-width: 75rem;
}

@media (max-width: 959px) {
  #hero .uk-grid > :nth-child(1) { order: 2; }
  #hero .uk-grid > :nth-child(2) { order: 1; }
}

@media (max-width: 640px) {
  #hero {
    padding: 1rem 0 3.75rem;
  }
  #work, #about, #contact {
    padding: 6.25rem 0;
  }
  .hero-photo {
    aspect-ratio: 1/1;
  }
}

/* =============================================
   FAVOURITES BUTTON
   ============================================= */
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition);
}

.fav-btn:hover {
  color: #e11d48;
}

.fav-heart {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.fav-btn.is-faved .fav-heart {
  fill: #e11d48;
  stroke: #e11d48;
}

.fav-btn.is-faved {
  color: #e11d48;
}

@keyframes heart-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.45); }
  60%  { transform: scale(0.95); }
  80%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.fav-btn.pulse .fav-heart {
  animation: heart-pulse 0.5s ease forwards;
}

/* =============================================
   WISHLIST MODAL
   ============================================= */
.wl-modal {
  padding: 1.5rem !important;
  max-width: 26.25rem !important;
  width: calc(100vw - 2rem) !important;
  margin: 1rem auto !important;
  box-sizing: border-box;
}

.wl-confirm {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e11d48;
  margin: 0 0 1.25rem;
}

.wl-product {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.wl-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.wl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wl-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wl-info strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.wl-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.wl-stars {
  color: #f59e0b;
  font-size: 0.85rem;
}

.wl-stars span {
  color: var(--muted);
  font-size: 0.8rem;
}

.wl-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wl-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.wl-row > span:first-child,
.wl-row > span:nth-child(2) {
  color: var(--muted);
}

.wl-row > span:last-child,
.wl-row > span:nth-child(4) {
  color: var(--fg);
  font-weight: 500;
}

.wl-badge {
  color: #16a34a !important;
  font-weight: 600 !important;
}

.wl-hot {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.wl-actions {
  display: flex;
  gap: 0.75rem;
}

.wl-btn-cart {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background var(--transition), opacity var(--transition);
}

.wl-btn-cart:hover {
  background: var(--accent);
  color: #fff !important;
  text-decoration: underline;
}


.wl-btn-contact {
  flex: 1;
  padding: 0.7rem 1rem;
  background: var(--border);
  color: var(--fg) !important;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.wl-btn-contact:hover {
  background: var(--muted);
  color: var(--bg) !important;
}

/* =============================================
   DO NOT KLICK MODAL
   ============================================= */
.dnk-modal {
  text-align: center;
  padding: 3rem 2.5rem !important;
}

.dnk-emoji {
  font-size: 3rem;
  margin: 0 0 1rem;
  line-height: 1;
}

.dnk-title {
  font-family: var(--headline-font);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 0.75rem;
}

.dnk-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 2rem;
}

.dnk-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dnk-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.dnk-btn:hover {
  transform: translateY(-1px);
}

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

.dnk-btn-primary:hover {
  background: var(--accent-hover);
}

.dnk-btn-secondary {
  background: var(--border);
  color: var(--fg);
}

.dnk-btn-secondary:hover {
  background: var(--muted);
  color: var(--bg);
}
