/* Modern Portfolio Stylesheet - Replaces Tailwind CSS */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: #101010;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #101010;
  margin-bottom: 2rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: #101010;
    margin-bottom: 2rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
}

b {
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* Color Classes */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-dark { color: #2d3748; }
.text-gray-light { color: #718096; }
.text-gray-lighter { color: #cbd5e0; }
.text-primary { color: #51b3bb; }
.text-secondary { color: #51b3bb; }

.bg-gray-dark { background-color: #2d3748; }
.bg-secondary { background-color: #bd000c; }

/* Layout Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.block { display: block; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.content-center { align-content: center; }
.content-end { align-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.self-end { align-self: flex-end; }

/* Gap */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Transitions */
.transition-colors { transition: color 0.2s ease-in-out; }

/* Positioning */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.top-0 { top: 0; }
.top-24 { top: 6rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Spacing - Padding */
.p-8 { padding: 2rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.pr-4 { padding-right: 1rem; }
.pr-12 { padding-right: 3rem; }
.pl-8 { padding-left: 2rem; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mx-12 { margin-left: 3rem; margin-right: 3rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mt-32 { margin-top: 8rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-8 { margin-left: 2rem; }
.ml-12 { margin-left: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }
.mr-10 { margin-right: 2.5rem; }

/* Width */
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-auto { width: auto; }
.w-20 { width: 5rem; }
.w-10 { width: 2.5rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.max-w-4xl { max-width: 56rem; }

/* Height */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-64 { height: 16rem; }
.h-20 { height: 5rem; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.max-h-screen { max-height: 100vh; }

/* Z-Index */
.z-50 { z-index: 50; }

/* Text */
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 4rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.leading-tight { line-height: 1.25; }

.break-all { word-break: break-all; }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-tl-xl { border-top-left-radius: 0.75rem; }
.rounded-tr-xl { border-top-right-radius: 0.75rem; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Shadow */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Section Styling */
section {
  display: flex;
  flex-wrap: wrap;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Container */
.container {
  margin-left: auto;
  margin-right: auto;
  padding-top: 6rem;
  padding-bottom: 4rem;
  width: 83.333333%; /* w-10/12 */
}

/* Custom Component Styles */

/* Menu Bar */
#menubar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 30;
}

#menubar > div:first-child {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#menubar img {
  width: 1.5rem;
  height: 1.5rem;
}

/* Side Menu */
#sidemenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#sidemenu.open {
  pointer-events: auto;
  opacity: 1;
}

/* Backdrop */
#sidemenu > div:first-child {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#sidemenu.open > div:first-child {
  opacity: 0.5;
}

/* Menu panel */
#sidemenu > div:nth-child(2) {
  background-color: #1a202c;
  height: 100vh;
  padding: 4rem;
  padding-top: 6rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  pointer-events: auto;
  z-index: 200;
}

#sidemenu.open > div:nth-child(2) {
  transform: translateX(0);
}

#sidemenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidemenu li {
  color: #cbd5e0;
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

#sidemenu a {
  color: inherit;
}

#sidemenu a:hover {
  color: #51b3bb;
}
/* Portfolio Desktop */
.portfolio-desktop {
  margin-left: -1rem;
  clear: both;
}

.portfolio-item {
  margin-right: -4rem;
  width: 233px;
  height: 525px;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(0.29) sepia(0.29);
  -webkit-filter: grayscale(0.29) sepia(0.29);
  transition: 250ms ease-in-out all;
  position: relative;
  float: left;
}

.portfolio-item:hover {
  margin-top: -8rem;
  filter: none;
  -webkit-filter: none;
}

/* Portfolio Modal */
#portfolio-modal {
  background-color: rgba(81, 179, 187, 0.95);
  animation: fadeIn 0.3s ease-in-out;
  z-index: 200;
}

#portfolio-modal .modal-content {
  display: flex;
  flex-wrap: wrap;
}

#portfolio-modal .modal-left {
  width: 50%;
  padding-right: 2rem;
}

#portfolio-modal .modal-right {
  width: 50%;
}

#portfolio-modal .modal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#portfolio-modal .modal-nav .index {
  margin: 0 1rem;
  font-size: 1.25rem;
}

#portfolio-modal .modal-nav .left,
#portfolio-modal .modal-nav .right {
  cursor: pointer;
  width: 2.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer Bar */
#footerbar {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  width: 100%;
  justify-content: space-between;
  z-index: 10;
}

/* Background Images */
#start {
  background-image: url('assets/img/start-bg.jpg');
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#about {
  background-image: url('assets/img/concrete-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#portfolio {
  background-image: url('assets/img/concrete-teal-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.kontakt-bg {
  background-image: url('assets/img/schwerpunkte-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Portfolio Items */
.portfolio-item {
  width: 233px;
  height: 525px;
  background-repeat: no-repeat;
  background-position: center;
  filter: grayscale(0.29) sepia(0.29);
  transition: 250ms ease-in-out all;
}

.portfolio-item:hover {
  filter: none;
  margin-top: -8rem;
}

/* Modal */
.modal-overlay {
  background-color: rgba(81, 179, 187, 0.95);
}

/* Responsive Design - Tablets and up (768px+) */
@media (min-width: 768px) {
  h1, h2 {
    font-size: 3rem;
  }

  .text-4xl { font-size: 2.25rem; }
  .text-5xl { font-size: 3rem; }

  #start {
    background-attachment: fixed;
  }

  .container {
    padding-left: 3rem;
  }

  #menubar img {
    margin-left: 3rem;
  }

  /* md: prefix classes */
  .md\:inline { display: inline; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:hidden { display: none; }
  .md\:w-full { width: 100%; }
  .md\:w-1\/2 { width: 50%; }
  .md\:h-auto { height: auto; }
  .md\:h-8 { height: 2rem; }
  .md\:text-lg { font-size: 1.125rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:ml-12 { margin-left: 3rem; }
  .md\:mr-4 { margin-right: 1rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:mt-2 { margin-top: 0.5rem; }
  .md\:mt-32 { margin-top: 8rem; }
  .md\:pl-12 { padding-left: 3rem; }
  .md\:flex-1 { flex: 1; }
}

/* Responsive Design - Desktops (1024px+) */
@media (min-width: 1024px) {
  section {
    height: 100%;
    width: 100vw;
    min-height: 100vh;
  }

  .container {
    padding-left: 2rem;
  }

  #sidemenu > div:nth-child(2) {
    width: 40%; /* lg:w-2/5 */
  }

  /* lg: prefix classes */
  .lg\:flex { display: flex; }
  .lg\:flex-wrap { flex-wrap: wrap; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:w-2\/5 { width: 40%; }
  .lg\:w-3\/5 { width: 60%; }
  .lg\:pr-24 { padding-right: 6rem; }
  .lg\:ml-12 { margin-left: 3rem; }
  .lg\:mt-48 { margin-top: 12rem; }
  .lg\:text-right { text-align: right; }
}

/* Responsive Design - Large Desktops (1280px+) */
@media (min-width: 1280px) {
  .container {
    width: 83.333333%; /* xl:w-10/12 */
  }

  #sidemenu > div:nth-child(2) {
    width: 33.333333%; /* xl:w-1/3 */
  }

  /* xl: prefix classes */
  .xl\:text-2xl { font-size: 1.5rem; }
  .xl\:text-6xl { font-size: 4rem; }
  .xl\:mt-5 { margin-top: 1.25rem; }
  .xl\:mt-16 { margin-top: 4rem; }
  .xl\:w-10\/12 { width: 83.333333%; }
}

/* Width percentages for all screen sizes */
.w-1\/2 { width: 50%; }
.w-2\/5 { width: 40%; }
.w-3\/5 { width: 60%; }
.w-10\/12 { width: 83.333333%; }
.w-2\/12 { width: 16.666667%; }

/* Additional utility overrides for mobile */
@media (max-width: 767px) {
  .md\:inline { display: none; }
  .md\:block { display: none; }
  .md\:flex { display: none; }
  .md\:hidden { display: block; }
  
  .w-1\/2,
  .w-2\/5,
  .w-3\/5,
  .lg\:w-1\/2,
  .lg\:w-2\/5,
  .lg\:w-3\/5 {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .lg\:flex,
  .lg\:block {
    display: none;
  }
  
  .lg\:hidden {
    display: block;
  }
}

/* Lead text styling */
.lead {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-top: 1.5rem;
}

.lead span {
  color: #51b3bb;
}

@media (min-width: 1280px) {
  .lead {
    font-size: 1.5rem;
  }
}

