/*-----------------Startseite---------------------------*/

body {
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* HERO Hintergrund */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;

    background-image: url('https://blog.flipsnack.com/wp-content/uploads/2019/06/cover-Customizable-Portfolio-Templates-for-Every-Industry-_BlogArticle_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    padding-top: 70px;
}

/* Text im Hero-Header */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; 
}
.content {
    background-color: white;
    padding: 40px;
}

/*Scroll FUnktion*/
.horizontal-scroll-container {
    overflow-x: auto; 
    overflow-y: hidden; 
    padding-bottom: 20px; 
}

/*Breite jedem Element*/
.portfolio-item {
    width: 320px; 
    flex-shrink: 0;  
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/*Linkbox*/
.portfolio-link-placeholder {
    display: block;
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    border-radius: 0.25rem 0.25rem 0 0;/*runde ecke*/
    
    text-align: center;
    line-height: 200px; /* Zentriert den Text vertikal */
    
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
    text-decoration: none;
    transition: background-color 0.2s;
}

.portfolio-link-placeholder:hover {
    background-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

/*footer style*/
.footer-link {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.2s;
    font-size: 0.95rem;
}

/* Hover-Effekt für die Links */
.footer-link:hover {
    color: #fff; 
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/



/*--------------------------NAVBAR-------------------------*/
.offcanvas .btn-close {
    background-image: none !important; /*entfernt schatten X*/
    opacity: 1; 
}


.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-hover-glow {
    transition: transform 0.25s, background-color 0.25s;
}

.btn-hover-glow:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.07);
}

/* Hover-Effekt für Login & Registrieren rechts */
.nav-link-hover {
    transition: color 0.2s;
}

.nav-link-hover:hover {
    color: #5bc0ff !important;
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

/*--------------------------------THEMESs-------------------------------------*/
/* Die Karten und Bilder */
.theme-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /*Bild abrunden*/
}

.theme-card:hover {
    transform: translateY(-5px); /* Leichter Schwebe-Effekt */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important; /*Stärker Schatten-Hovern */
}

/* Platzhalter für die Theme-Vorschau (nutzt Hintergrundbild für Cover-Effekt) */
.theme-preview-placeholder {
    width: 100%;
    /* Setzt das Seitenverhältnis auf quadratisch (z.B. 1:1) */
    padding-top: 75%; /* 75% Höhe der Breite (ergibt 4:3 Seitenverhältnis, wie in den Beispielen) */
    
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem 0.5rem 0 0; /* Obere Ecken gerundet */
}


.theme-gallery-container {
    max-width: 1400px;
}
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

/* Optional: Hover für Portfolio-Artikel */
#featured-portfolios article {
    transition: transform 0.2s, box-shadow 0.2s;
}

#featured-portfolios article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


:root{
    --cream-1: #FFF3D9;
    --sand: #FFE6B3;
    --blue-mid: #47AAD9;
    --blue-deep: #2E6E8D;
    --ocean: #153240;

    --standard-white: #F8F8F8;
}


/* !!!!!Auth Pages Styles (Login & Register)!!!!!  */
html,body{
    height:100%;
    background: var(--standard-white);/* linear-gradient(135deg, var(--cream-1) 0%, var(--sand) 60%);*/
    color: var(--ocean);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.signin-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:2rem;
}

.card-signin{
    width:100%;
    max-width:420px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(21,50,64,0.12);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), #ffffff);
    position: relative;
}

.card-accent{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:6px;
    background: linear-gradient(180deg,var(--blue-mid),var(--blue-deep));
}

.card-body{
    padding:2rem;
}

.brand{
    display:flex;
    gap:.75rem;
    align-items:center;
    margin-bottom:1rem;
}

.brand-dot{
    width:40px;
    height:40px;
    border-radius:10px;
    background: linear-gradient(135deg,var(--blue-mid),var(--blue-deep));
    box-shadow: 0 4px 18px rgba(46,110,141,0.18);
}

h1{
    font-size:1.25rem;
    margin:0;
    color:var(--ocean);
    font-weight:600;
}

p.lead{
    color: rgba(21,50,64,0.7);
    margin-bottom:1.25rem;
}

.form-control:focus{
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 .15rem rgba(71,170,217,0.15);
}

.btn-primary{
    background: linear-gradient(90deg,var(--blue-mid),var(--blue-deep));
    border: none;
    padding: .6rem .9rem;
    font-weight:600;
    border-radius: .6rem;
}

.btn-primary:hover, .btn-primary:focus{
    background: linear-gradient(90deg,var(--blue-deep),var(--ocean));
    box-shadow: 0 6px 20px rgba(21,50,64,0.12);
}

.forgot-link{
    color: var(--blue-mid);
    font-weight:500;
    text-decoration: none;
}

.forgot-link:hover{
    color: var(--blue-deep);
    text-decoration: underline;
}

.input-group-text{
    background: transparent;
    border: none;
    color: var(--blue-deep);
}

/* Error Page Styles */
.error-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-card {
  width: 100%;
  max-width: 500px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21, 50, 64, 0.12);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
  position: relative;
  text-align: center;
}

.error-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--blue-mid), var(--blue-deep));
}

.error-body {
  padding: 3rem 2rem;
}

.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 20px rgba(71, 170, 217, 0.2);
  font-size: 2.5rem;
}

.error-code {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--blue-mid);
  margin: 1rem 0 0.5rem;
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 1rem;
}

.error-message {
  color: rgba(21, 50, 64, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn-back {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  border: none;
  color: white;
  padding: 0.7rem 2rem;
  font-weight: 600;
  border-radius: 0.6rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-back:hover {
  background: linear-gradient(90deg, var(--blue-deep), var(--ocean));
  box-shadow: 0 6px 20px rgba(21, 50, 64, 0.12);
  transform: scale(1.05);
  color: white;
}

.btn-home {
  background: transparent;
  border: 2px solid var(--blue-mid);
  color: var(--blue-mid);
  padding: 0.6rem 2rem;
  font-weight: 600;
  border-radius: 0.6rem;
  text-decoration: none;
  display: inline-block;
  margin-left: 0.5rem;
  transition: all 0.25s;
}

.btn-home:hover {
  background: var(--blue-mid);
  color: white;
  border-color: var(--blue-mid);
}

.button-group {
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .error-body {
    padding: 2rem 1.5rem;
  }

  .error-code {
    font-size: 2.5rem;
  }

  .error-title {
    font-size: 1.25rem;
  }

  .btn-back, .btn-home {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width:420px){
    .card-body{ padding:1.25rem; }
}