
/***************************************************************/
/***************************************************************/

/* ===== BRAND BARVY ===== */
:root {
    --primary: #0a3d62;
    --primary2: #af3367;
    --accent: #1e90ff;
    --bg: #f4f6f8;
    --text: #333;
    --text2: #fff;

    --narex1: #003a8f;
    --narex2: #ff7a00;
    --makita: #007bc1;
    --dewalt1: #f7c600;
    --dewalt2: #000;
    --blackdecker: #ff6a00;
    --parkside: #cc0000;
    --foc: #0aa13c;
}

.narex { background: linear-gradient(135deg, var(--narex1), var(--narex2)); }
.makita { background: var(--makita); }
.dewalt { background: var(--dewalt1); color: var(--dewalt2); }
.blackdecker { background: var(--blackdecker); }
.parkside { background: var(--parkside); }

/***************************************************************/
/***************************************************************/

/* ===== NAVIGACE ===== */
header {
    color: var(--text2);
    text-align: center;
    top: 0;
    z-index: 1000;
    position: sticky;
    backdrop-filter: blur(6px);
}

.header-index {
    background: var(--primary);
}

/***************************************************************/
/***************************************************************/
/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary), #123f6e);
    color: #fff;
    padding: 0px 10px;
    text-align: center;
    position: relative;
    /*height: 420px;*/
    min-height: 50vh;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 5px;
}
.hero p {
    font-size: 1.3em;
    max-width: 800px;
    margin: auto;
}
.hero a {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 30px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 6px;
    font-weight: bold;
}
.hero a:hover {
    background: #0f78d1;
}

/* ===== HERO - OBRÁZKY V ZÁHLAVÍ INDEX.HTML ===== */

/* text */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 40px;
  /*max-width: 900px;*/
}
.hero-image {
  position: absolute;
  inset: 0;                 /* ← vyplní celý hero */
  background-size: cover;   /* ← klíčové */
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 1s ease-in-out;
  will-change: transform;
}

/***************************************************************/
/***************************************************************/

/* ===== HERO2 ===== */
.hero2 {
    color: var(--text2);
    text-align: center;
    top: 0;
    z-index: 1000;
}

.hero2-narex {
    background: linear-gradient(135deg, var(--narex1), var(--narex2));
    padding: 50px 20px;
}
.hero2-narex h1 {
    margin-bottom: 10px;
}

.hero2-makita {
    background: var(--makita);
    padding: 50px 20px;
}
.hero2-makita h1 {
    margin-bottom: 10px;
}

.hero2-dewalt {
    background: var(--dewalt1); color: var(--dewalt2);
    padding: 50px 20px;
}
.hero2-dewalt h1 {
    margin-bottom: 10px;
}

.hero2-blackdecker {
    background: var(--blackdecker);
    padding: 50px 20px;
}
.hero2-blackdecker h1 {
    margin-bottom: 10px;
}

.hero2-parkside {
    background: var(--parkside);
    padding: 50px 20px;
}
.hero2-parkside h1 {
    margin-bottom: 10px;
}

.hero2-foc {
    background: var(--foc);
    padding: 50px 20px;
}
.hero2-foc h1 {
    margin-bottom: 10px;
}

.hero2-projekty {
    background: var(--primary);
    padding: 50px 20px;
}
.hero2-projekty h1 {
    margin-bottom: 10px;
}

.hero2-produkty-licence {
    background: var(--primary2);
    padding: 50px 20px;
}
.hero2-produkty-licence h1 {
    margin-bottom: 10px;
}
/***************************************************************/
/***************************************************************/

.product-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-section1 {
    background: #fff;
}
.product-section2 {
    background: #ddb0b0;
}
.product-section3 {
    background: #ddb0b0;
}

.license-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.license-section1 {
    background: #fff;
}
.license-section2 {
    background: #ddb0b0;
}
.license-section3 {
    background: #ddb0b0;
}

/***************************************************************/
/***************************************************************/

/* ===== SEKCE ===== */
section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

/***************************************************************/
/***************************************************************/

/* ===== PRODUCT ICONS ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.features2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.feature {
    padding: 20px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature2 {
    padding: 20px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature2 span {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.feature2:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature .detail {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.feature:hover .detail {
    opacity: 1;
    max-height: 200px;
}

/* šipka mezi kroky */
.feature:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -40px;

    transform: translateY(-50%);
    font-size: 32px;
    color: #00aaff;
    font-weight: bold;
}

/***************************************************************/
/***************************************************************/

/* ČÍSLO KROKU */
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 36px;
    height: 36px;
    border-radius: 50%;

    background: #00aaff;
    color: #fff;
    font-weight: bold;
    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
/* ===== SCHEMA ===== */
.schema {
    text-align: center;
}

.schema img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

.schema2 {
  display: flex;
  gap: 40px;              /* mezera mezi obrázky */
  align-items: flex-start;
}
.schema2 figure {
  margin: 0;
  text-align: center;
}
.schema2 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: var(--text2);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: var(--text2);
    text-decoration: underline;
}

/***************************************************************/
/***************************************************************/

/* ===== REALIZOVANÉ PROJEKTY ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-btn {
    display: block;
    padding: 25px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text2);
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-btn span {
    font-size: 1.4em;
    display: block;
}

.project-btn small {
    font-weight: normal;
    opacity: 0.9;
}

.project-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/***************************************************************/
/***************************************************************/

/* ===== SPUSTITELNÉ AUDIO MP3 ===== */
.audio-item {
  margin-bottom: 20px;
}
.audio-item p {
  margin-bottom: 6px;
  color: #000000;
  font-size: 14px;
}
audio {
  width: 100%;
  max-width: 480px;
}

/************************************************************/
/* ===== NÍŽE JE NASTAVENÍ PRO SOUBORY MIMO idex.html ===== */
/* ===== SPOLEČNÉ JE NASTAVENÍ: 
    ZÁKLAD, BRAND BARVY, NAVIGACE ===== */
/************************************************************/

/* ===== ZÁKLAD ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
}

/* ===== NAVIGACE ===== */
nav {
    background: #003a8f;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--text2);
    text-decoration: none;
    font-weight: bold;
    margin-right: 20px;
}

nav a:hover {
    text-decoration: underline;
}

/***************************************************************/
/***************************************************************/

/* ===== OBSAH ===== */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== OBSAH PROJEKTU ===== */
.block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.block:nth-child(even) {
    direction: rtl;
}

.block:nth-child(even) > * {
    direction: ltr;
}

.block img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/***************************************************************/
/***************************************************************/

/* ===== OBSAH narex-vrtacka.html ===== */

.section {
  padding: 80px 0;
}
.section-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section-stand { background: #d6d1cd; }
.section-dc    { background: #dbcdc4; }
.section-6step { background: #cfbcae; }
.section-foc   { background: #ccb2a1; }
.section-audio  { background: #dfb6a7; }
.section-summary { background: #ebc0a2; }

.section-content h2 {
  color: var(--text);
  margin-bottom: 20px;
}
.measurement-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}
.measurement-table th,
.measurement-table td {
  border: 1px solid #3a3a3a;
  padding: 8px 12px;
  text-align: center;
}
.measurement-table th {
  background: #e7ee8a;
}
.measurement-table .unlimited {
  background: #ee8a8a;
}

/* === TMAVÝ GRAF (default) === */
.efficiency-chart.dark .chart-bg { fill: #151515; }
.efficiency-chart.dark .axis     { stroke: #888; }
.efficiency-chart.dark .grid     { stroke: #2f2f2f; }
.efficiency-chart.dark .labels   { fill: #aaa; }
/* === SVĚTLÝ GRAF === */
.efficiency-chart.light .chart-bg { fill: #f5f5f5; }
.efficiency-chart.light .axis     { stroke: #444; }
.efficiency-chart.light .grid     { stroke: #d0d0d0; }
.efficiency-chart.light .labels   { fill: #333; }

.chart-toggle {
  border: 1px solid #3a3a3a;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}
/* TMAVÝ GRAF → SVĚTLÉ TLAČÍTKO */
.chart-toggle.light {
  background: #ffffff;
  color: #070707;
}
/* SVĚTLÝ GRAF → TMAVÉ TLAČÍTKO */
.chart-toggle.dark {
  background: #2a2a2a;
  color: #ccc;
}
/* TMAVÝ GRAF */
.efficiency-chart.dark text.axis-label {
  fill: #aaa;
}
/* SVĚTLÝ GRAF */
.efficiency-chart.light text.axis-label {
  fill: #333;
}

/***************************************************************/
/***************************************************************/

/* ===== KONTAKT - Vedlejší stránky ===== */
.contact {
    background: #003a8f;
    color: var(--text2);
    padding: 20px 20px;
    text-align: center;
}
.contact h2 {
    color: var(--text2);
}
.contact a {
    color: var(--text2)fff;
    font-weight: bold;
    text-decoration: none;
}
.contact p {
    margin: 15px;
}
footer {
    margin: 0;
    padding: 15px 0;
}
.contact a:hover {
    text-decoration: underline;
}

/* ===== KONTAKT - Hlavní strana ===== */
#contact {
  margin-top: 60px;
}
.contact-block p {
  margin: 6px 0;
  font-size: 15px;
}
.origin-block {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #636769;
}
.flags {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.flags img {
  height: 22px;
  width: auto;
}
.origin-text {
  font-size: 14px;
  margin: 4px 0;
}
.origin-note {
  font-size: 13px;
  color: #555;
}
.contact-section {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #d1dbe9dc;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: #ccc;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    .block {
        grid-template-columns: 1fr;
    }
    .block:nth-child(even) {
        direction: ltr;
    }
}

/***************************************************************/
/***************************************************************/

.menu-link {
  padding: 10px 16px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
}

.menu-link:hover {
  color: #fff;
}

/* ===== AKTIVNÍ STRÁNKA ===== */
body.home .page-home,
body.tech .page-tech,
body.projects .page-projects,
body.products .page-products,
body.license .page-license,
body.contact .page-contact {
  color: #00bcd4;
  border-bottom: 2px solid #00bcd4;
  background: rgba(0,188,212,0.15);
  border-radius: 6px;
}

/***************************************************************/
/***************************************************************/

/* ===== ROTUJÍCÍ BLDC MOTOR ===== */

.motor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes spin {
  from { transform: translate(-0%, -0%) rotate(0deg); }
  to   { transform: translate(-0%, -0%) rotate(360deg); }
}

/* ===== VYKRESLOVÁNÍ GRAFŮ PRODŮ A MOMENTU ===== */

.motor-with-currents {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.motor-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.motor-column {
  flex: 0 0 auto;
}
.motor {
  position: relative;
  width: 360px;
  height: 360px;
}
.visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.controls-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 180px;
}
.controls-column button.active {
  background: #333;
  color: #fff;
}
.graphs-column {
  flex: 1;
}
#currents {
  width: 500px;
  max-width: 100%;
}
.axis {
  stroke: #aaa;
  stroke-width: 1;
}
.torque {
  stroke: #000;
  fill: none;
  stroke-width: 2.5;
}
.torque-axis {
  stroke: #999;
  stroke-dasharray: 4 4;
}

.grid {
  stroke: #eee;
  stroke-width: 1;
}

.ia { stroke: red;   fill: none; stroke-width: 2; }
.ib { stroke: green; fill: none; stroke-width: 2; }
.ic { stroke: blue;  fill: none; stroke-width: 2; }
.torque { stroke: rgb(27, 19, 19);  fill: none; stroke-width: 2; }

.label {
  font-size: 20px;
  fill: #050505;
}

/* ===== PŘEPÍNAČ MEZI FOC A 6-STEP ===== */

.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* tlačítka */
.controls button {
  padding: 10px 18px;
  font-size: 16px;
  cursor: pointer;
}

.controls button.active {
  background: #222;
  color: white;
}

/* ===== slider pro zadávání rychlosti otáčení motoru ===== */

.rpm-slider {
  margin-top: 20px;
  width: 220px;
}
.rpm-slider label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.rpm-slider input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.freq-info {
  margin-top: 8px;
  font-size: 13px;
  color: #444;
}
.freq-info div {
  line-height: 1.4;
}

/* ===== CSS pro svg obrázky z GUI ===== */
svg.graph {
  font-family: system-ui, Segoe UI, sans-serif;
}
/* ---------- DARK ---------- */
svg.graph.dark {
  --bg: #111;
  --frame: #aaa;
  --grid: #444;
  --text: #ddd;
  --title: #fff;
  --curve: #7399c0; 
  --pin: #ff7777;
  --pout: #77ff77;
}
/* ---------- LIGHT ---------- */
svg.graph.light {
  --bg: #fff;
  --frame: #333;
  --grid: #ccc;
  --text: #222;
  --title: #000;
  --curve: #0066cc; 
  --pin: #c00000;
  --pout: #006600;
}
/* ---------- PRINT ---------- */
svg.graph.print {
  --bg: #fff;
  --frame: #000;
  --grid: #bbb;
  --text: #000;
  --title: #000;
  --curve: #000; 
  --pin: #000;
  --pout: #000;
}
/* ---------- AXIS ---------- */
.axis-label {
  fill: #000;
  font-size: 12px;
  font-family: sans-serif;
}
.axis-title {
  fill: #000;
  font-size: 13px;
  font-family: sans-serif;
}
/* ---------- APPLY ---------- */
svg .bg        { fill: var(--bg); }
svg .frame    { stroke: var(--frame); fill: none; }
svg .grid line{ stroke: var(--grid); stroke-width: 1; }

svg .title,
svg .axis-x,
svg .axis-y   { fill: var(--text); }

svg .curve { stroke: var(--curve); fill: none; stroke-width: 2;}
svg .curve-pin  { stroke: var(--pin); fill: none; stroke-width: 2; }
svg .curve-pout { stroke: var(--pout); fill: none; stroke-width: 2; }


