/* CSS-Reset */
*{
    box-sizing: border-box;
    margin:0; 
    padding:0;
}
/* asap-condensed-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Asap Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../font/asap-condensed-v17-latin-regular.woff2') format('woff2'); 
}
/* catamaran-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Catamaran';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/catamaran-v27-latin-regular.woff2') format('woff2'); 
}

html{ 
    font-size: 18px;
}
body{
    font-size:1.2rem;
    font-family: 'Roboto', sans-serif;
    color:#363636;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    min-height: 100vh;
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.203);
    z-index: 2;
    pointer-events: none;
}
/* Überschriften */
h1{
    font-family:'Asap Condensed';
    font-size: 3rem;
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    text-align: center; 
    flex-grow: 0; 
    width: auto; 
    max-width: calc(100% - 4rem); 
}
h3{
    font-size:1.8rem;
    text-align: center;
}
/* Fliesstext */
p{
    line-height: 1.2;
    letter-spacing: 1px;
    font-family: 'Catamaran';
}
/* Header */
header{
    z-index: 2;
    grid-column: 1 / 6;
    padding: 1rem;
    margin-bottom: auto;
    background-color: rgb(125, 124, 124);
    color:#ffffff;
    display:flex;
    justify-content: space-between; 
    align-items: flex-end;
    border-radius: 0 0 15px 15px;
    border:4px solid #363636;
    position: relative; 
}
/* Logo Rotor Vision */
.logo {
    height: 5rem;
    width: auto;
    margin-right: auto;
}

/* Navigation */
a:hover {
    color: #07991fcc;
    cursor: url('../img/drone-neu.cur?v=1.0'), auto;
}
ul{
    padding:0;
}
nav{
    padding:0rem; 
    align-items: flex-end;
}
nav ul li{
    display: inline;
    margin-left: 0.6rem;
}
nav ul li a{
    text-decoration: none;
    background-color: #b4d0e9;
    color:#363636;
    padding:0.3rem;
    border:2px solid black;
    border-radius: 0 0 10px 0;
    position: relative;
}
nav ul li a:hover{
    color:#000000;
    background-color: rgb(216, 216, 216);
}
.single ul li a {
    border-radius: 0 0 10px 0;
}

/* Bereiche */
main{
  grid-column: 1 / 6;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

section{
   padding: 1rem 0;
   display:grid;
   grid-template-columns: 1fr 1fr;
   gap:0.5rem;
}

article {
    padding: 1rem;
    background-color: rgb(125, 124, 124);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.erste{
   grid-column: 1/2;
   border:4px solid #363636;
   border-radius: 0 4.5rem 4.5rem 0;
   align-self: start;
   margin-top: 8rem;
}

.zweite{
    grid-column: 2/3;
    border:4px solid #363636;
    border-radius: 4.5rem 0 0 4.5rem;
    align-self: end;
    margin-bottom: 8rem; 
}
/* Eigenschaften Videos im Grid */
video{
   width:30vw;
   height:auto;
   max-width: 100%;
   border-radius: 15px;
}
/* Eigenschaften Bilder in Galerie */
figure{
   width: 10vw;
   margin:0 auto;
   display:block;
}
img{
    max-width:100%;
}
/* Galerie Grid*/
.galerie-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 2rem;
    background-color: rgb(125, 124, 124);
    border: 4px solid #363636;
    border-radius: 4.5rem; 
    margin: 0.5rem auto;
    width: 70vw; 
    max-width: 100%;
}

.galerie-item {
    border: 2px solid #363636;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer; 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
}

.galerie-item img {
    display: block;
    width: 100%;
    height: auto;
}

.galerie-page nav ul li:nth-child(1) a {
    border-radius: 0 0 0 10px;
}
.galerie-item:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); 
}
/* Footer */
footer{
    z-index: 2;
    background-color: rgb(125, 124, 124);
    padding: 1rem;
    margin-top: auto;
    grid-column: 1 / 6;
    border:4px solid #363636;
    border-radius: 15px 15px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.footer-contact {
    padding: 0 1rem;
    text-align: left;
    justify-self: center;
}

.footer-contact p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-link a {
    text-decoration: none;
    color: #b4d0e9;
    background-color: #363636;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid #b4d0e9;
}

.footer-link a:hover {
    background-color: #555555;
    color: #ffffff;
}

/* Style für Einzelbild-Ansicht */
.einzelbild-container {
    grid-column: 1 / 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 60vh;
}
.einzelbild-container img {
    max-width: 90vw;
    max-height: 70vh;
    border: 4px solid #363636;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}
.zurueck-link {
    background-color: #363636;
    color: #b4d0e9;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #b4d0e9;
    font-weight: bold;
    transition: all 0.3s;
}
.zurueck-link:hover {
    background-color: #b4d0e9;
    color: #363636;
    cursor: pointer;
}