/* ist eine vorlage, im Moment nicht angepasst */
/* Standardteil */

body {
    font-family:'Lato', sans-serif;
    font-size:1em;
    color:#777;
    font-weight:300;
    line-height:1.7;
    overflow-x:hidden;
}
 
h1,h2,h3,h4,h5,h6 {
    color:#333;
    line-height:1.4;
    font-weight:700;
}
 
.mx-width {
    max-width:960px;
    margin:0 auto;
}
 
a,a:hover {
    color:#563d7c;
    text-decoration:none;
}
 
img{
  width:100%;
  max-width: 100%;
  height:auto;
}
 
.card-img-top{
  width:100%;
  height:auto;
}
 
header {
    padding-bottom:50px;
}
 
.display-2 {
    font-family:'Lato';
    font-size:60px;
    line-height:1;
    font-weight:300;
    color:#fff
}
 
.learn {
    font-family:'Lato';
    font-size:27px;
    line-height:1.4;
    font-weight:300;
    color:#fff;
}
 
.jumbotron-fluid {
    padding:0;
}

/* parallax */
.parallax {
    text-align:center;
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover;
    background-attachment:fixed!important;
    overflow:hidden;
}
 
.parallax-pattern-overlay {
    background-image:url(../img/pattern.png);
    background-repeat:repeat;
}

/*heading*/
.heading {
    padding-bottom:15px;
    text-align:center;
    max-width:960px;
    margin:0 auto;
    padding-top:80px;
}
 
.heading h2 {
    font-weight:600;
    font-family:'Raleway';
    font-size:40px;
    color:#333;
    margin:0;
    padding:5px;
}
 
.heading h3 {
    font-size:1em;
    line-height:1.7;
}
 
#site-title {
    max-width:150px;
}

/*forms*/
input.form-control {
    background:#fff;
    border:solid 1px #ddd;
    color:#000;
    padding:15px 30px;
    margin-right:3%;
    margin-bottom:30px;
    outline:none;
    border-radius: 0;
}
 
textarea.form-control {
    background:#fff;
    color:#000;
    border:solid 1px #ddd;
    padding:15px 30px;
    margin-bottom:40px;
    outline:none;
    height:200px;
    border-radius: 0;
}
 
button.contact.submit {
    background:#333;
    font-family:'Lato',sans-serif;
    color:#fff;
    font-size:1em;
    font-weight:400;
    text-align:center;
    margin:0;
    border:none!important;
    border-radius:3px;
    padding:15px 45px;
}
 
button.contact.submit:hover {
    background:#563d7c;
}
 
.form-control:focus{
    border-color: #563d7c;
    outline: 0;
}
 
.done {
    display:none;
}

/*background and colors*/
.footer {
    background:#563d7c;
    margin-top:120px;
    position:relative
}
 
.footer .container {
    padding:60px 0 20px;
}
 
.footer ul {
    margin:0 auto;
    margin-bottom:30px;
    margin-top:10px;
    text-align:center;
    list-style-type:none;
    padding-left:0;
}
 
.footer ul li {
    text-align:center;
    display:inline-block;
    background:rgba(0,0,0,0.2);
    color:#fff;
    line-height:45px;
    margin:0 4px;
    width:45px!important;
    height:45px!important;
    -webkit-border-radius:3px;
    border-radius:3px;
}
 
.footer ul li:hover {
    background:#2a2a2a;
}
 
.footer ul li:hover a {
    color:#fff;
}
 
.footer ul li a {
    color:#fff;
    width:42px!important;
    height:42px!important;
}
 
.footer ul li a i {
    line-height:45px;
    color:#fff;
}
 
.footer p {
    color:#fff;
    font-size:.9em;
    line-height:24px;
    font-weight:300;
    text-align:center;
    text-transform:uppercase;
}
 
.footer a,.footer a:hover {
    color:#fff;
}

/*viewport*/
@media screen and (max-width:768px) {
 
input.contact.col-md-6{
    width:40.5%;
    margin: 15px 15px 0 58px;
}
 
textarea.contact.col-md-12 {
     margin: 15px 15px 0 58px;
}
 
button#submit.contact.submit{
    margin: 15px 15px 0 42px;
}
 
} 


/* EIGENE STYLES LJ*/

.selector-for-some-widget {
    box-sizing: border-box;
}      

.marginbot {
    margin-bottom: 10px;
}

.icon16 {
    height: 16px;
    width: 16px;
    object-fit: contain;
    display: inline-block;
}

.icon32 {
    width: 48px;
    min-width: 48px;
    height: 48px;
    object-fit: contain;
}


/* Trend Indicators */
.trend-indicator {
    font-size: 0.9em;
    margin-left: 0;
    margin-top: 4px;
    font-weight: bold;
    display: inline-block;
    flex-basis: 100%;
    text-align: center;
    width: 100%;
}

.trend-indicator span {
    margin: 0 2px;
}

.trend-up {
    color: #e74c3c;
}

.trend-down {
    color: #27ae60;
}

.trend-stable {
    color: #95a5a6;
}

.table-responsive {
    font-size: 80%;    
}

/* Design-Verbesserungen */
body {
    background: linear-gradient(135deg, #4a9f8e 0%, #52b788 100%);
    background-attachment: fixed;
    min-height: 100vh;
    /* Pull-to-Refresh verhindern */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

html {
    /* Pull-to-Refresh verhindern */
    overscroll-behavior-y: none;
}

.navbar {
    background: transparent !important;
    box-shadow: none;
    padding: 15px 0;
}

.navbar-brand h3 {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-text {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-nav .nav-link.active {
    color: white !important;
    font-weight: 700;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.card-header {
    background: linear-gradient(135deg, #4a9f8e 0%, #52b788 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

.nav-tabs {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
}

.nav-tabs .nav-link {
    color: #4a9f8e;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.3s;
    margin: 0 2px;
}

.nav-tabs .nav-link:hover {
    background: rgba(74, 159, 142, 0.1);
    color: #2d7a6a;
}

.nav-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #4a9f8e 0%, #52b788 100%);
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Weather Data Styling */
.weather-current {
    text-align: center;
    padding: 20px;
}

.weather-icon-large {
    width: 64px;
    height: 64px;
    margin: 10px auto;
    object-fit: contain;
}

.weather-temp {
    font-size: 4em;
    font-weight: 700;
    color: #2d7a6a;
    margin: 20px 0;
    line-height: 1;
}

.weather-desc {
    font-size: 1.3em;
    color: #666;
    text-transform: capitalize;
    margin-bottom: 30px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.weather-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.weather-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.weather-item-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-item-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

/* Einheiten immer sichtbar machen */
.weather-item-value span[style*="font-size: 0.85em"] {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.weather-item-value.pressure {
    color: #2d7a6a;
    font-size: 1.8em;
}

.weather-item-value.temp {
    color: #f39c12;
}

.weather-item-value.rain {
    color: #3498db;
}

.form-control {
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: #4a9f8e;
    box-shadow: 0 0 0 0.2rem rgba(74, 159, 142, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

.btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary {
    background: linear-gradient(135deg, #4a9f8e 0%, #52b788 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 159, 142, 0.4);
    color: white;
    background: linear-gradient(135deg, #3d8a79 0%, #45a876 100%);
}

/* Hourly Forecast Scroll */
.hourly-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.hourly-item {
    display: inline-block;
    width: 120px;
    text-align: center;
    padding: 15px;
    margin-right: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    vertical-align: top;
}

.hourly-time {
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.hourly-icon {
    width: 32px;
    height: 32px;
    margin: 5px auto;
    object-fit: contain;
}

.hourly-temp {
    font-size: 1.3em;
    font-weight: 700;
    color: #f39c12;
    margin: 10px 0;
}

.hourly-pressure {
    font-size: 0.9em;
    color: #2d7a6a;
    font-weight: 600;
}

.hourly-rain {
    font-size: 0.9em;
    color: #3498db;
    margin-top: 5px;
}

/* Charts Container */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    /* Mobile Hintergrundfarbe sicherstellen */
    body {
        background: linear-gradient(135deg, #4a9f8e 0%, #52b788 100%) !important;
    }
    
    .weather-temp {
        font-size: 3em;
    }
    
    .weather-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .weather-item {
        padding: 10px;
    }
    
    /* Icons auf Mobile kleiner */
    .weather-icon-large {
        width: 48px !important;
        height: 48px !important;
    }
    
    .hourly-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    .icon16 {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Windy.com iframe - Klick-Schutz und Menü-Sichtbarkeit */
    #radar-map-container {
        position: relative;
    }
    
    #radar-map {
        pointer-events: auto; /* Ermöglicht Interaktion mit der Karte */
    }
    
    /* Zusätzlicher Schutz vor externen Links (falls möglich) */
    #radar-map::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        z-index: -1;
    }
    
    .hourly-item {
        width: 90px;
        padding: 8px;
    }
    
    .hourly-temp {
        font-size: 1.1em;
    }
    
    .nav-tabs {
        padding: 3px;
        font-size: 0.9em;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
    }
    
    .navbar-brand h3 {
        font-size: 1.1em;
        line-height: 1.3;
    }
    
    /* Mobile: Header-Location kleiner machen */
    .navbar-brand h3 #header-location {
        font-size: 0.7em !important;
        display: inline !important;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: baseline;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile: Sicherstellen, dass Header-Location sichtbar ist */
    .navbar-brand h3 {
        white-space: nowrap;
        overflow: visible;
    }
    
    /* Mobile: Trend-Indikatoren sicherstellen */
    .trend-indicator {
        display: block !important;
        width: 100% !important;
        flex-basis: 100% !important;
        text-align: center;
        margin-top: 5px;
    }
    
    /* Mobile: Forecast Tab-Inhalte sichtbar machen - Bootstrap Tab Handling */
    .tab-pane.fade {
        transition: opacity 0.15s linear;
    }
    
    .tab-pane.fade:not(.show) {
        opacity: 0;
        display: none !important;
    }
    
    .tab-pane.fade.show {
        opacity: 1;
        display: block !important;
    }
    
    /* Mobile: Hourly-Scroll sicherstellen */
    #hourly-forecast {
        display: block !important;
    }
    
    #hourly-forecast.show {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hourly-scroll {
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 20px 10px !important;
        display: block !important;
        visibility: visible !important;
        min-height: 200px;
    }
    
    /* Mobile: Forecast Cards sicherstellen */
    #forecast-overview {
        display: block !important;
    }
    
    #forecast-overview.show {
        display: block !important;
        opacity: 1 !important;
    }
    
    #forecast-overview .card {
        display: block !important;
        visibility: visible !important;
    }
    
    #forecast-overview .row {
        display: block !important;
    }
    
    #forecast-overview .col-sm {
        display: block !important;
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Mobile: Einheiten sicherstellen */
    .weather-item-value span[style*="font-size: 0.85em"] {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.85em !important;
    }
}

/* 5-Tage: Abstand zwischen Menu und Content reduzieren (Desktop & Mobile) */
#forecast-overview .card-body {
    padding-top: 10px;
}

#forecast-overview-title {
    margin-bottom: 10px;
    margin-top: 0;
}

#forecast-overview .container-fluid {
    padding-top: 0;
}

/* Overlay-Buttons (Regen, Wind, etc.) mit weißem Rahmen und Text für bessere Sichtbarkeit */
.card-header .btn-outline-primary {
    color: white !important;
    border-color: white !important;
    background-color: transparent !important;
}

.card-header .btn-outline-primary:hover,
.card-header .btn-outline-primary:focus,
.card-header .btn-outline-primary:active,
.card-header .btn-outline-primary.active {
    color: #2a7e3e !important;
    background-color: white !important;
    border-color: white !important;
}

@media screen and (max-width:768px) {
    /* Mobile: Bessere Touch-Targets */
    .btn {
        min-height: 44px;
        padding: 10px 20px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    /* Mobile: Cards kompakter */
    .card-body {
        padding: 15px;
    }
    
    .weather-current {
        padding: 15px;
    }
    
    /* Mobile: Container Padding reduzieren */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}